From 15153316d34499faf56b2f5edd8f9c4a86caf7a9 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Fri, 30 Jun 2023 11:19:07 -0400 Subject: [PATCH 1/6] initial stab at compiling vtproto defs for collector connections --- Rakefile | 9 + contimage/contimage.pb.go | 2 +- contlcycle/contlcycle.pb.go | 2 +- cws/dumpsv1/activity_dump.pb.go | 2 +- cyclonedx_v1_4/bom-1.4.pb.go | 2 +- .../process_agent/ConnectionsOuterClass.java | 29541 ++++++++++++++++ process/connections.pb.go | 11006 ++---- process/connections_vtproto.pb.go | 8508 +++++ sbom/sbom.pb.go | 2 +- 9 files changed, 40759 insertions(+), 8315 deletions(-) create mode 100644 java/datadog/process_agent/ConnectionsOuterClass.java create mode 100644 process/connections_vtproto.pb.go diff --git a/Rakefile b/Rakefile index 45b24d82..92672736 100644 --- a/Rakefile +++ b/Rakefile @@ -119,6 +119,15 @@ BASH --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessInfo \ proto/cws/dumpsv1/activity_dump.proto + echo "Generating NPM CollectorConnections" + PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ + --java_out=java \ + --go_out=$GOPATH/src \ + --go-vtproto_out=$GOPATH/src \ + --go-vtproto_opt=features=pool+marshal+unmarshal+size \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.CollectorConnections \ + proto/process/connections.proto + cp -r v5/* . rm -rf v5 BASH diff --git a/contimage/contimage.pb.go b/contimage/contimage.pb.go index 2575d505..97b73fd5 100644 --- a/contimage/contimage.pb.go +++ b/contimage/contimage.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc v3.21.12 // source: proto/contimage/contimage.proto diff --git a/contlcycle/contlcycle.pb.go b/contlcycle/contlcycle.pb.go index a7cf12bc..a89d1195 100644 --- a/contlcycle/contlcycle.pb.go +++ b/contlcycle/contlcycle.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc v3.21.12 // source: proto/contlcycle/contlcycle.proto diff --git a/cws/dumpsv1/activity_dump.pb.go b/cws/dumpsv1/activity_dump.pb.go index 5d35d585..d1a1f35f 100644 --- a/cws/dumpsv1/activity_dump.pb.go +++ b/cws/dumpsv1/activity_dump.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc v3.21.12 // source: proto/cws/dumpsv1/activity_dump.proto diff --git a/cyclonedx_v1_4/bom-1.4.pb.go b/cyclonedx_v1_4/bom-1.4.pb.go index a2acb8e4..deb19aa5 100644 --- a/cyclonedx_v1_4/bom-1.4.pb.go +++ b/cyclonedx_v1_4/bom-1.4.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc v3.21.12 // source: proto/deps/github.com/CycloneDX/specification/schema/bom-1.4.proto diff --git a/java/datadog/process_agent/ConnectionsOuterClass.java b/java/datadog/process_agent/ConnectionsOuterClass.java new file mode 100644 index 00000000..894e5918 --- /dev/null +++ b/java/datadog/process_agent/ConnectionsOuterClass.java @@ -0,0 +1,29541 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: proto/process/connections.proto + +package datadog.process_agent; + +public final class ConnectionsOuterClass { + private ConnectionsOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code datadog.process_agent.RuntimeCompilationResult} + */ + public enum RuntimeCompilationResult + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NotAttempted = 0; + */ + NotAttempted(0), + /** + * CompilationSuccess = 1; + */ + CompilationSuccess(1), + /** + * KernelVersionErr = 2; + */ + KernelVersionErr(2), + /** + * VerificationError = 3; + */ + VerificationError(3), + /** + * OutputDirErr = 4; + */ + OutputDirErr(4), + /** + * OutputFileErr = 5; + */ + OutputFileErr(5), + /** + * NewCompilerErr = 6; + */ + NewCompilerErr(6), + /** + * CompilationErr = 7; + */ + CompilationErr(7), + /** + * ResultReadErr = 8; + */ + ResultReadErr(8), + /** + * HeaderFetchErr = 9; + */ + HeaderFetchErr(9), + /** + * CompiledOutputFound = 10; + */ + CompiledOutputFound(10), + /** + * InputHashError = 11; + */ + InputHashError(11), + UNRECOGNIZED(-1), + ; + + /** + * NotAttempted = 0; + */ + public static final int NotAttempted_VALUE = 0; + /** + * CompilationSuccess = 1; + */ + public static final int CompilationSuccess_VALUE = 1; + /** + * KernelVersionErr = 2; + */ + public static final int KernelVersionErr_VALUE = 2; + /** + * VerificationError = 3; + */ + public static final int VerificationError_VALUE = 3; + /** + * OutputDirErr = 4; + */ + public static final int OutputDirErr_VALUE = 4; + /** + * OutputFileErr = 5; + */ + public static final int OutputFileErr_VALUE = 5; + /** + * NewCompilerErr = 6; + */ + public static final int NewCompilerErr_VALUE = 6; + /** + * CompilationErr = 7; + */ + public static final int CompilationErr_VALUE = 7; + /** + * ResultReadErr = 8; + */ + public static final int ResultReadErr_VALUE = 8; + /** + * HeaderFetchErr = 9; + */ + public static final int HeaderFetchErr_VALUE = 9; + /** + * CompiledOutputFound = 10; + */ + public static final int CompiledOutputFound_VALUE = 10; + /** + * InputHashError = 11; + */ + public static final int InputHashError_VALUE = 11; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeCompilationResult valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RuntimeCompilationResult forNumber(int value) { + switch (value) { + case 0: return NotAttempted; + case 1: return CompilationSuccess; + case 2: return KernelVersionErr; + case 3: return VerificationError; + case 4: return OutputDirErr; + case 5: return OutputFileErr; + case 6: return NewCompilerErr; + case 7: return CompilationErr; + case 8: return ResultReadErr; + case 9: return HeaderFetchErr; + case 10: return CompiledOutputFound; + case 11: return InputHashError; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeCompilationResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeCompilationResult findValueByNumber(int number) { + return RuntimeCompilationResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final RuntimeCompilationResult[] VALUES = values(); + + public static RuntimeCompilationResult valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RuntimeCompilationResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.RuntimeCompilationResult) + } + + /** + * Protobuf enum {@code datadog.process_agent.KernelHeaderFetchResult} + */ + public enum KernelHeaderFetchResult + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FetchNotAttempted = 0; + */ + FetchNotAttempted(0), + /** + * CustomHeadersFound = 1; + */ + CustomHeadersFound(1), + /** + * DefaultHeadersFound = 2; + */ + DefaultHeadersFound(2), + /** + * SysfsHeadersFound = 3; + */ + SysfsHeadersFound(3), + /** + * DownloadedHeadersFound = 4; + */ + DownloadedHeadersFound(4), + /** + * DownloadSuccess = 5; + */ + DownloadSuccess(5), + /** + * HostVersionErr = 6; + */ + HostVersionErr(6), + /** + * DownloadFailure = 7; + */ + DownloadFailure(7), + /** + * ValidationFailure = 8; + */ + ValidationFailure(8), + /** + * ReposDirAccessFailure = 9; + */ + ReposDirAccessFailure(9), + /** + * HeadersNotFoundDownloadDisabled = 10; + */ + HeadersNotFoundDownloadDisabled(10), + UNRECOGNIZED(-1), + ; + + /** + * FetchNotAttempted = 0; + */ + public static final int FetchNotAttempted_VALUE = 0; + /** + * CustomHeadersFound = 1; + */ + public static final int CustomHeadersFound_VALUE = 1; + /** + * DefaultHeadersFound = 2; + */ + public static final int DefaultHeadersFound_VALUE = 2; + /** + * SysfsHeadersFound = 3; + */ + public static final int SysfsHeadersFound_VALUE = 3; + /** + * DownloadedHeadersFound = 4; + */ + public static final int DownloadedHeadersFound_VALUE = 4; + /** + * DownloadSuccess = 5; + */ + public static final int DownloadSuccess_VALUE = 5; + /** + * HostVersionErr = 6; + */ + public static final int HostVersionErr_VALUE = 6; + /** + * DownloadFailure = 7; + */ + public static final int DownloadFailure_VALUE = 7; + /** + * ValidationFailure = 8; + */ + public static final int ValidationFailure_VALUE = 8; + /** + * ReposDirAccessFailure = 9; + */ + public static final int ReposDirAccessFailure_VALUE = 9; + /** + * HeadersNotFoundDownloadDisabled = 10; + */ + public static final int HeadersNotFoundDownloadDisabled_VALUE = 10; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KernelHeaderFetchResult valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static KernelHeaderFetchResult forNumber(int value) { + switch (value) { + case 0: return FetchNotAttempted; + case 1: return CustomHeadersFound; + case 2: return DefaultHeadersFound; + case 3: return SysfsHeadersFound; + case 4: return DownloadedHeadersFound; + case 5: return DownloadSuccess; + case 6: return HostVersionErr; + case 7: return DownloadFailure; + case 8: return ValidationFailure; + case 9: return ReposDirAccessFailure; + case 10: return HeadersNotFoundDownloadDisabled; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + KernelHeaderFetchResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KernelHeaderFetchResult findValueByNumber(int number) { + return KernelHeaderFetchResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(1); + } + + private static final KernelHeaderFetchResult[] VALUES = values(); + + public static KernelHeaderFetchResult valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private KernelHeaderFetchResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.KernelHeaderFetchResult) + } + + /** + * Protobuf enum {@code datadog.process_agent.COREResult} + */ + public enum COREResult + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SuccessCustomBTF = 0; + */ + SuccessCustomBTF(0), + /** + * SuccessEmbeddedBTF = 1; + */ + SuccessEmbeddedBTF(1), + /** + * SuccessDefaultBTF = 2; + */ + SuccessDefaultBTF(2), + /** + * BtfNotFound = 3; + */ + BtfNotFound(3), + /** + * AssetReadError = 4; + */ + AssetReadError(4), + /** + * VerifierError = 5; + */ + VerifierError(5), + /** + * LoaderError = 6; + */ + LoaderError(6), + UNRECOGNIZED(-1), + ; + + /** + * SuccessCustomBTF = 0; + */ + public static final int SuccessCustomBTF_VALUE = 0; + /** + * SuccessEmbeddedBTF = 1; + */ + public static final int SuccessEmbeddedBTF_VALUE = 1; + /** + * SuccessDefaultBTF = 2; + */ + public static final int SuccessDefaultBTF_VALUE = 2; + /** + * BtfNotFound = 3; + */ + public static final int BtfNotFound_VALUE = 3; + /** + * AssetReadError = 4; + */ + public static final int AssetReadError_VALUE = 4; + /** + * VerifierError = 5; + */ + public static final int VerifierError_VALUE = 5; + /** + * LoaderError = 6; + */ + public static final int LoaderError_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static COREResult valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static COREResult forNumber(int value) { + switch (value) { + case 0: return SuccessCustomBTF; + case 1: return SuccessEmbeddedBTF; + case 2: return SuccessDefaultBTF; + case 3: return BtfNotFound; + case 4: return AssetReadError; + case 5: return VerifierError; + case 6: return LoaderError; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + COREResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public COREResult findValueByNumber(int number) { + return COREResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(2); + } + + private static final COREResult[] VALUES = values(); + + public static COREResult valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private COREResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.COREResult) + } + + /** + * Protobuf enum {@code datadog.process_agent.ConnectionFamily} + */ + public enum ConnectionFamily + implements com.google.protobuf.ProtocolMessageEnum { + /** + * v4 = 0; + */ + v4(0), + /** + * v6 = 1; + */ + v6(1), + UNRECOGNIZED(-1), + ; + + /** + * v4 = 0; + */ + public static final int v4_VALUE = 0; + /** + * v6 = 1; + */ + public static final int v6_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConnectionFamily valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConnectionFamily forNumber(int value) { + switch (value) { + case 0: return v4; + case 1: return v6; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConnectionFamily> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectionFamily findValueByNumber(int number) { + return ConnectionFamily.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(3); + } + + private static final ConnectionFamily[] VALUES = values(); + + public static ConnectionFamily valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConnectionFamily(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.ConnectionFamily) + } + + /** + * Protobuf enum {@code datadog.process_agent.ConnectionDirection} + */ + public enum ConnectionDirection + implements com.google.protobuf.ProtocolMessageEnum { + /** + * unspecified = 0; + */ + unspecified(0), + /** + * incoming = 1; + */ + incoming(1), + /** + * outgoing = 2; + */ + outgoing(2), + /** + * local = 3; + */ + local(3), + /** + * none = 4; + */ + none(4), + UNRECOGNIZED(-1), + ; + + /** + * unspecified = 0; + */ + public static final int unspecified_VALUE = 0; + /** + * incoming = 1; + */ + public static final int incoming_VALUE = 1; + /** + * outgoing = 2; + */ + public static final int outgoing_VALUE = 2; + /** + * local = 3; + */ + public static final int local_VALUE = 3; + /** + * none = 4; + */ + public static final int none_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConnectionDirection valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConnectionDirection forNumber(int value) { + switch (value) { + case 0: return unspecified; + case 1: return incoming; + case 2: return outgoing; + case 3: return local; + case 4: return none; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConnectionDirection> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectionDirection findValueByNumber(int number) { + return ConnectionDirection.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(4); + } + + private static final ConnectionDirection[] VALUES = values(); + + public static ConnectionDirection valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConnectionDirection(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.ConnectionDirection) + } + + /** + * Protobuf enum {@code datadog.process_agent.EphemeralPortState} + */ + public enum EphemeralPortState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ephemeralUnspecified = 0; + */ + ephemeralUnspecified(0), + /** + * ephemeralTrue = 1; + */ + ephemeralTrue(1), + /** + * ephemeralFalse = 2; + */ + ephemeralFalse(2), + UNRECOGNIZED(-1), + ; + + /** + * ephemeralUnspecified = 0; + */ + public static final int ephemeralUnspecified_VALUE = 0; + /** + * ephemeralTrue = 1; + */ + public static final int ephemeralTrue_VALUE = 1; + /** + * ephemeralFalse = 2; + */ + public static final int ephemeralFalse_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EphemeralPortState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EphemeralPortState forNumber(int value) { + switch (value) { + case 0: return ephemeralUnspecified; + case 1: return ephemeralTrue; + case 2: return ephemeralFalse; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EphemeralPortState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EphemeralPortState findValueByNumber(int number) { + return EphemeralPortState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(5); + } + + private static final EphemeralPortState[] VALUES = values(); + + public static EphemeralPortState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EphemeralPortState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.EphemeralPortState) + } + + /** + * Protobuf enum {@code datadog.process_agent.ProtocolType} + */ + public enum ProtocolType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * protocolUnclassified = 0; + */ + protocolUnclassified(0), + /** + * protocolUnknown = 1; + */ + protocolUnknown(1), + /** + * protocolHTTP = 2; + */ + protocolHTTP(2), + /** + * protocolHTTP2 = 3; + */ + protocolHTTP2(3), + /** + * protocolTLS = 4; + */ + protocolTLS(4), + /** + * protocolKafka = 5; + */ + protocolKafka(5), + /** + * protocolMongo = 6; + */ + protocolMongo(6), + /** + * protocolPostgres = 7; + */ + protocolPostgres(7), + /** + * protocolAMQP = 8; + */ + protocolAMQP(8), + /** + * protocolRedis = 9; + */ + protocolRedis(9), + /** + * protocolMySQL = 10; + */ + protocolMySQL(10), + UNRECOGNIZED(-1), + ; + + /** + * protocolUnclassified = 0; + */ + public static final int protocolUnclassified_VALUE = 0; + /** + * protocolUnknown = 1; + */ + public static final int protocolUnknown_VALUE = 1; + /** + * protocolHTTP = 2; + */ + public static final int protocolHTTP_VALUE = 2; + /** + * protocolHTTP2 = 3; + */ + public static final int protocolHTTP2_VALUE = 3; + /** + * protocolTLS = 4; + */ + public static final int protocolTLS_VALUE = 4; + /** + * protocolKafka = 5; + */ + public static final int protocolKafka_VALUE = 5; + /** + * protocolMongo = 6; + */ + public static final int protocolMongo_VALUE = 6; + /** + * protocolPostgres = 7; + */ + public static final int protocolPostgres_VALUE = 7; + /** + * protocolAMQP = 8; + */ + public static final int protocolAMQP_VALUE = 8; + /** + * protocolRedis = 9; + */ + public static final int protocolRedis_VALUE = 9; + /** + * protocolMySQL = 10; + */ + public static final int protocolMySQL_VALUE = 10; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProtocolType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProtocolType forNumber(int value) { + switch (value) { + case 0: return protocolUnclassified; + case 1: return protocolUnknown; + case 2: return protocolHTTP; + case 3: return protocolHTTP2; + case 4: return protocolTLS; + case 5: return protocolKafka; + case 6: return protocolMongo; + case 7: return protocolPostgres; + case 8: return protocolAMQP; + case 9: return protocolRedis; + case 10: return protocolMySQL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProtocolType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProtocolType findValueByNumber(int number) { + return ProtocolType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(6); + } + + private static final ProtocolType[] VALUES = values(); + + public static ProtocolType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProtocolType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:datadog.process_agent.ProtocolType) + } + + public interface CollectorConnectionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.CollectorConnections) + com.google.protobuf.MessageOrBuilder { + + /** + * string hostName = 2; + * @return The hostName. + */ + java.lang.String getHostName(); + /** + * string hostName = 2; + * @return The bytes for hostName. + */ + com.google.protobuf.ByteString + getHostNameBytes(); + + /** + * string networkId = 12; + * @return The networkId. + */ + java.lang.String getNetworkId(); + /** + * string networkId = 12; + * @return The bytes for networkId. + */ + com.google.protobuf.ByteString + getNetworkIdBytes(); + + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + java.util.List + getConnectionsList(); + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + datadog.process_agent.ConnectionsOuterClass.Connection getConnections(int index); + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + int getConnectionsCount(); + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + java.util.List + getConnectionsOrBuilderList(); + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnectionsOrBuilder( + int index); + + /** + *
+     * Message batching metadata
+     * 
+ * + * int32 groupId = 5; + * @return The groupId. + */ + int getGroupId(); + + /** + * int32 groupSize = 6; + * @return The groupSize. + */ + int getGroupSize(); + + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + int getResolvedResourcesCount(); + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + boolean containsResolvedResources( + java.lang.String key); + /** + * Use {@link #getResolvedResourcesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResolvedResources(); + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + java.util.Map + getResolvedResourcesMap(); + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.ResourceMetadata defaultValue); + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrThrow( + java.lang.String key); + + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + int getContainerForPidCount(); + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + boolean containsContainerForPid( + int key); + /** + * Use {@link #getContainerForPidMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getContainerForPid(); + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + java.util.Map + getContainerForPidMap(); + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + /* nullable */ +java.lang.String getContainerForPidOrDefault( + int key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + java.lang.String getContainerForPidOrThrow( + int key); + + /** + *
+     * encoded bytes here are use to store a tags []string
+     * the tags encoder is more space efficient than protobuf
+     * 
+ * + * bytes encodedTags = 11; + * @return The encodedTags. + */ + com.google.protobuf.ByteString getEncodedTags(); + + /** + *
+     * All tags indexed by Connection.tags
+     * 
+ * + * bytes encodedConnectionsTags = 38; + * @return The encodedConnectionsTags. + */ + com.google.protobuf.ByteString getEncodedConnectionsTags(); + + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return The enum numeric value on the wire for containerHostType. + */ + int getContainerHostTypeValue(); + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return The containerHostType. + */ + datadog.process_agent.Agent.ContainerHostType getContainerHostType(); + + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + * @return Whether the connTelemetry field is set. + */ + boolean hasConnTelemetry(); + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + * @return The connTelemetry. + */ + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getConnTelemetry(); + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder(); + + /** + * map<string, int64> connTelemetryMap = 39; + */ + int getConnTelemetryMapCount(); + /** + * map<string, int64> connTelemetryMap = 39; + */ + boolean containsConnTelemetryMap( + java.lang.String key); + /** + * Use {@link #getConnTelemetryMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConnTelemetryMap(); + /** + * map<string, int64> connTelemetryMap = 39; + */ + java.util.Map + getConnTelemetryMapMap(); + /** + * map<string, int64> connTelemetryMap = 39; + */ + long getConnTelemetryMapOrDefault( + java.lang.String key, + long defaultValue); + /** + * map<string, int64> connTelemetryMap = 39; + */ + long getConnTelemetryMapOrThrow( + java.lang.String key); + + /** + *
+     * OS Telemetry
+     * 
+ * + * string architecture = 17; + * @return The architecture. + */ + java.lang.String getArchitecture(); + /** + *
+     * OS Telemetry
+     * 
+ * + * string architecture = 17; + * @return The bytes for architecture. + */ + com.google.protobuf.ByteString + getArchitectureBytes(); + + /** + * string kernelVersion = 18; + * @return The kernelVersion. + */ + java.lang.String getKernelVersion(); + /** + * string kernelVersion = 18; + * @return The bytes for kernelVersion. + */ + com.google.protobuf.ByteString + getKernelVersionBytes(); + + /** + * string platform = 19; + * @return The platform. + */ + java.lang.String getPlatform(); + /** + * string platform = 19; + * @return The bytes for platform. + */ + com.google.protobuf.ByteString + getPlatformBytes(); + + /** + * string platformVersion = 20; + * @return The platformVersion. + */ + java.lang.String getPlatformVersion(); + /** + * string platformVersion = 20; + * @return The bytes for platformVersion. + */ + com.google.protobuf.ByteString + getPlatformVersionBytes(); + + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + int getCompilationTelemetryByAssetCount(); + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + boolean containsCompilationTelemetryByAsset( + java.lang.String key); + /** + * Use {@link #getCompilationTelemetryByAssetMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCompilationTelemetryByAsset(); + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + java.util.Map + getCompilationTelemetryByAssetMap(); + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue); + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( + java.lang.String key); + + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + int getKernelHeaderFetchResultValue(); + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return The kernelHeaderFetchResult. + */ + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult(); + + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + int getCORETelemetryByAssetCount(); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + boolean containsCORETelemetryByAsset( + java.lang.String key); + /** + * Use {@link #getCORETelemetryByAssetMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCORETelemetryByAsset(); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + java.util.Map + getCORETelemetryByAssetMap(); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( + java.lang.String key); + /** + * Use {@link #getCORETelemetryByAssetValueMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCORETelemetryByAssetValue(); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + java.util.Map + getCORETelemetryByAssetValueMap(); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + int getCORETelemetryByAssetValueOrDefault( + java.lang.String key, + int defaultValue); + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + int getCORETelemetryByAssetValueOrThrow( + java.lang.String key); + + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return A list containing the prebuiltEBPFAssets. + */ + java.util.List + getPrebuiltEBPFAssetsList(); + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return The count of prebuiltEBPFAssets. + */ + int getPrebuiltEBPFAssetsCount(); + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index of the element to return. + * @return The prebuiltEBPFAssets at the given index. + */ + java.lang.String getPrebuiltEBPFAssets(int index); + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index of the value to return. + * @return The bytes of the prebuiltEBPFAssets at the given index. + */ + com.google.protobuf.ByteString + getPrebuiltEBPFAssetsBytes(int index); + + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + java.util.List + getRoutesList(); + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index); + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + int getRoutesCount(); + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + java.util.List + getRoutesOrBuilderList(); + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( + int index); + + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + java.util.List + getRouteMetadataList(); + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + datadog.process_agent.ConnectionsOuterClass.RouteMetadata getRouteMetadata(int index); + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + int getRouteMetadataCount(); + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + java.util.List + getRouteMetadataOrBuilderList(); + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder getRouteMetadataOrBuilder( + int index); + + /** + *
+     *///////////////
+     * V1 encodings
+     * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + * @return Whether the agentConfiguration field is set. + */ + boolean hasAgentConfiguration(); + /** + *
+     *///////////////
+     * V1 encodings
+     * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + * @return The agentConfiguration. + */ + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration(); + /** + *
+     *///////////////
+     * V1 encodings
+     * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder(); + + /** + *
+     * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
+     * 
+ * + * bytes encodedDNS = 14; + * @return The encodedDNS. + */ + com.google.protobuf.ByteString getEncodedDNS(); + + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @return A list containing the domains. + */ + java.util.List + getDomainsList(); + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @return The count of domains. + */ + int getDomainsCount(); + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @param index The index of the element to return. + * @return The domains at the given index. + */ + java.lang.String getDomains(int index); + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + com.google.protobuf.ByteString + getDomainsBytes(int index); + + /** + *
+     *////////////////
+     * V2 encodings
+     * all domain strings are now indexes into a single array of strings
+     * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
+     * is a single buffer; varint number of strings, followed by each string.
+     * 
+ * + * bytes encodedDomainDatabase = 36; + * @return The encodedDomainDatabase. + */ + com.google.protobuf.ByteString getEncodedDomainDatabase(); + + /** + *
+     * new representation of encoded DNS.  This is a map of the string representation
+     * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
+     * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
+     * 
+ * + * bytes encodedDnsLookups = 37; + * @return The encodedDnsLookups. + */ + com.google.protobuf.ByteString getEncodedDnsLookups(); + + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + int getResolvedHostsByNameCount(); + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + boolean containsResolvedHostsByName( + java.lang.String key); + /** + * Use {@link #getResolvedHostsByNameMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResolvedHostsByName(); + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + java.util.Map + getResolvedHostsByNameMap(); + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + /* nullable */ +datadog.process_agent.Agent.Host getResolvedHostsByNameOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.Agent.Host defaultValue); + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + datadog.process_agent.Agent.Host getResolvedHostsByNameOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code datadog.process_agent.CollectorConnections} + */ + public static final class CollectorConnections extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.CollectorConnections) + CollectorConnectionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CollectorConnections.newBuilder() to construct. + private CollectorConnections(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CollectorConnections() { + hostName_ = ""; + networkId_ = ""; + connections_ = java.util.Collections.emptyList(); + encodedTags_ = com.google.protobuf.ByteString.EMPTY; + encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; + containerHostType_ = 0; + architecture_ = ""; + kernelVersion_ = ""; + platform_ = ""; + platformVersion_ = ""; + kernelHeaderFetchResult_ = 0; + prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + routes_ = java.util.Collections.emptyList(); + routeMetadata_ = java.util.Collections.emptyList(); + encodedDNS_ = com.google.protobuf.ByteString.EMPTY; + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; + encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollectorConnections(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 8: + return internalGetResolvedResources(); + case 10: + return internalGetContainerForPid(); + case 39: + return internalGetConnTelemetryMap(); + case 21: + return internalGetCompilationTelemetryByAsset(); + case 42: + return internalGetCORETelemetryByAsset(); + case 40: + return internalGetResolvedHostsByName(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.CollectorConnections.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnections.Builder.class); + } + + public static final int HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object hostName_ = ""; + /** + * string hostName = 2; + * @return The hostName. + */ + @java.lang.Override + public java.lang.String getHostName() { + java.lang.Object ref = hostName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostName_ = s; + return s; + } + } + /** + * string hostName = 2; + * @return The bytes for hostName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORKID_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object networkId_ = ""; + /** + * string networkId = 12; + * @return The networkId. + */ + @java.lang.Override + public java.lang.String getNetworkId() { + java.lang.Object ref = networkId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkId_ = s; + return s; + } + } + /** + * string networkId = 12; + * @return The bytes for networkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkIdBytes() { + java.lang.Object ref = networkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTIONS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List connections_; + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + @java.lang.Override + public java.util.List getConnectionsList() { + return connections_; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connection getConnections(int index) { + return connections_.get(index); + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnectionsOrBuilder( + int index) { + return connections_.get(index); + } + + public static final int GROUPID_FIELD_NUMBER = 5; + private int groupId_ = 0; + /** + *
+     * Message batching metadata
+     * 
+ * + * int32 groupId = 5; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + + public static final int GROUPSIZE_FIELD_NUMBER = 6; + private int groupSize_ = 0; + /** + * int32 groupSize = 6; + * @return The groupSize. + */ + @java.lang.Override + public int getGroupSize() { + return groupSize_; + } + + public static final int RESOLVEDRESOURCES_FIELD_NUMBER = 8; + private static final class ResolvedResourcesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata> resolvedResources_; + private com.google.protobuf.MapField + internalGetResolvedResources() { + if (resolvedResources_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResolvedResourcesDefaultEntryHolder.defaultEntry); + } + return resolvedResources_; + } + public int getResolvedResourcesCount() { + return internalGetResolvedResources().getMap().size(); + } + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public boolean containsResolvedResources( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetResolvedResources().getMap().containsKey(key); + } + /** + * Use {@link #getResolvedResourcesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResolvedResources() { + return getResolvedResourcesMap(); + } + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public java.util.Map getResolvedResourcesMap() { + return internalGetResolvedResources().getMap(); + } + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.ResourceMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+     * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CONTAINERFORPID_FIELD_NUMBER = 10; + private static final class ContainerForPidDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.String> containerForPid_; + private com.google.protobuf.MapField + internalGetContainerForPid() { + if (containerForPid_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ContainerForPidDefaultEntryHolder.defaultEntry); + } + return containerForPid_; + } + public int getContainerForPidCount() { + return internalGetContainerForPid().getMap().size(); + } + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public boolean containsContainerForPid( + int key) { + + return internalGetContainerForPid().getMap().containsKey(key); + } + /** + * Use {@link #getContainerForPidMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getContainerForPid() { + return getContainerForPidMap(); + } + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public java.util.Map getContainerForPidMap() { + return internalGetContainerForPid().getMap(); + } + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getContainerForPidOrDefault( + int key, + /* nullable */ +java.lang.String defaultValue) { + + java.util.Map map = + internalGetContainerForPid().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Mapping of processes running in each container
+     * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public java.lang.String getContainerForPidOrThrow( + int key) { + + java.util.Map map = + internalGetContainerForPid().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ENCODEDTAGS_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString encodedTags_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * encoded bytes here are use to store a tags []string
+     * the tags encoder is more space efficient than protobuf
+     * 
+ * + * bytes encodedTags = 11; + * @return The encodedTags. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedTags() { + return encodedTags_; + } + + public static final int ENCODEDCONNECTIONSTAGS_FIELD_NUMBER = 38; + private com.google.protobuf.ByteString encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * All tags indexed by Connection.tags
+     * 
+ * + * bytes encodedConnectionsTags = 38; + * @return The encodedConnectionsTags. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedConnectionsTags() { + return encodedConnectionsTags_; + } + + public static final int CONTAINERHOSTTYPE_FIELD_NUMBER = 15; + private int containerHostType_ = 0; + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return The enum numeric value on the wire for containerHostType. + */ + @java.lang.Override public int getContainerHostTypeValue() { + return containerHostType_; + } + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return The containerHostType. + */ + @java.lang.Override public datadog.process_agent.Agent.ContainerHostType getContainerHostType() { + datadog.process_agent.Agent.ContainerHostType result = datadog.process_agent.Agent.ContainerHostType.forNumber(containerHostType_); + return result == null ? datadog.process_agent.Agent.ContainerHostType.UNRECOGNIZED : result; + } + + public static final int CONNTELEMETRY_FIELD_NUMBER = 16; + private datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry connTelemetry_; + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + * @return Whether the connTelemetry field is set. + */ + @java.lang.Override + public boolean hasConnTelemetry() { + return connTelemetry_ != null; + } + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + * @return The connTelemetry. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getConnTelemetry() { + return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { + return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } + + public static final int CONNTELEMETRYMAP_FIELD_NUMBER = 39; + private static final class ConnTelemetryMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> connTelemetryMap_; + private com.google.protobuf.MapField + internalGetConnTelemetryMap() { + if (connTelemetryMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnTelemetryMapDefaultEntryHolder.defaultEntry); + } + return connTelemetryMap_; + } + public int getConnTelemetryMapCount() { + return internalGetConnTelemetryMap().getMap().size(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public boolean containsConnTelemetryMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetConnTelemetryMap().getMap().containsKey(key); + } + /** + * Use {@link #getConnTelemetryMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnTelemetryMap() { + return getConnTelemetryMapMap(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public java.util.Map getConnTelemetryMapMap() { + return internalGetConnTelemetryMap().getMap(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public long getConnTelemetryMapOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public long getConnTelemetryMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile java.lang.Object architecture_ = ""; + /** + *
+     * OS Telemetry
+     * 
+ * + * string architecture = 17; + * @return The architecture. + */ + @java.lang.Override + public java.lang.String getArchitecture() { + java.lang.Object ref = architecture_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + architecture_ = s; + return s; + } + } + /** + *
+     * OS Telemetry
+     * 
+ * + * string architecture = 17; + * @return The bytes for architecture. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getArchitectureBytes() { + java.lang.Object ref = architecture_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + architecture_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KERNELVERSION_FIELD_NUMBER = 18; + @SuppressWarnings("serial") + private volatile java.lang.Object kernelVersion_ = ""; + /** + * string kernelVersion = 18; + * @return The kernelVersion. + */ + @java.lang.Override + public java.lang.String getKernelVersion() { + java.lang.Object ref = kernelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelVersion_ = s; + return s; + } + } + /** + * string kernelVersion = 18; + * @return The bytes for kernelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKernelVersionBytes() { + java.lang.Object ref = kernelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORM_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + private volatile java.lang.Object platform_ = ""; + /** + * string platform = 19; + * @return The platform. + */ + @java.lang.Override + public java.lang.String getPlatform() { + java.lang.Object ref = platform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platform_ = s; + return s; + } + } + /** + * string platform = 19; + * @return The bytes for platform. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPlatformBytes() { + java.lang.Object ref = platform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORMVERSION_FIELD_NUMBER = 20; + @SuppressWarnings("serial") + private volatile java.lang.Object platformVersion_ = ""; + /** + * string platformVersion = 20; + * @return The platformVersion. + */ + @java.lang.Override + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } + } + /** + * string platformVersion = 20; + * @return The bytes for platformVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER = 21; + private static final class CompilationTelemetryByAssetDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCompilationTelemetryByAsset() { + if (compilationTelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return compilationTelemetryByAsset_; + } + public int getCompilationTelemetryByAssetCount() { + return internalGetCompilationTelemetryByAsset().getMap().size(); + } + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public boolean containsCompilationTelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCompilationTelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCompilationTelemetryByAsset() { + return getCompilationTelemetryByAssetMap(); + } + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public java.util.Map getCompilationTelemetryByAssetMap() { + return internalGetCompilationTelemetryByAsset().getMap(); + } + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Runtime compilation telemetry
+     * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int KERNELHEADERFETCHRESULT_FIELD_NUMBER = 41; + private int kernelHeaderFetchResult_ = 0; + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + @java.lang.Override public int getKernelHeaderFetchResultValue() { + return kernelHeaderFetchResult_; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return The kernelHeaderFetchResult. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; + } + + public static final int CORETELEMETRYBYASSET_FIELD_NUMBER = 42; + private static final class CORETelemetryByAssetDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Integer> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + datadog.process_agent.ConnectionsOuterClass.COREResult.SuccessCustomBTF.getNumber()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> cORETelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCORETelemetryByAsset() { + if (cORETelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return cORETelemetryByAsset_; + } + private static final + com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.COREResult> cORETelemetryByAssetValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + datadog.process_agent.ConnectionsOuterClass.COREResult.internalGetValueMap(), + datadog.process_agent.ConnectionsOuterClass.COREResult.UNRECOGNIZED); + private static final java.util.Map + internalGetAdaptedCORETelemetryByAssetMap( + java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.COREResult, java.lang.Integer>( + map, cORETelemetryByAssetValueConverter); + } + public int getCORETelemetryByAssetCount() { + return internalGetCORETelemetryByAsset().getMap().size(); + } + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public boolean containsCORETelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCORETelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCORETelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAsset() { + return getCORETelemetryByAssetMap(); + } + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetMap() { + return internalGetAdaptedCORETelemetryByAssetMap( + internalGetCORETelemetryByAsset().getMap());} + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) + ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) + : defaultValue; + } + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return cORETelemetryByAssetValueConverter.doForward(map.get(key)); + } + /** + * Use {@link #getCORETelemetryByAssetValueMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAssetValue() { + return getCORETelemetryByAssetValueMap(); + } + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetValueMap() { + return internalGetCORETelemetryByAsset().getMap(); + } + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * CO-RE telemetry
+     * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PREBUILTEBPFASSETS_FIELD_NUMBER = 44; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList prebuiltEBPFAssets_; + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return A list containing the prebuiltEBPFAssets. + */ + public com.google.protobuf.ProtocolStringList + getPrebuiltEBPFAssetsList() { + return prebuiltEBPFAssets_; + } + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return The count of prebuiltEBPFAssets. + */ + public int getPrebuiltEBPFAssetsCount() { + return prebuiltEBPFAssets_.size(); + } + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index of the element to return. + * @return The prebuiltEBPFAssets at the given index. + */ + public java.lang.String getPrebuiltEBPFAssets(int index) { + return prebuiltEBPFAssets_.get(index); + } + /** + *
+     * Prebuilt EBPF assets in use
+     * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index of the value to return. + * @return The bytes of the prebuiltEBPFAssets at the given index. + */ + public com.google.protobuf.ByteString + getPrebuiltEBPFAssetsBytes(int index) { + return prebuiltEBPFAssets_.getByteString(index); + } + + public static final int ROUTES_FIELD_NUMBER = 31; + @SuppressWarnings("serial") + private java.util.List routes_; + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + @java.lang.Override + public java.util.List getRoutesList() { + return routes_; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + @java.lang.Override + public java.util.List + getRoutesOrBuilderList() { + return routes_; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + @java.lang.Override + public int getRoutesCount() { + return routes_.size(); + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { + return routes_.get(index); + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( + int index) { + return routes_.get(index); + } + + public static final int ROUTEMETADATA_FIELD_NUMBER = 34; + @SuppressWarnings("serial") + private java.util.List routeMetadata_; + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + @java.lang.Override + public java.util.List getRouteMetadataList() { + return routeMetadata_; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + @java.lang.Override + public java.util.List + getRouteMetadataOrBuilderList() { + return routeMetadata_; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + @java.lang.Override + public int getRouteMetadataCount() { + return routeMetadata_.size(); + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getRouteMetadata(int index) { + return routeMetadata_.get(index); + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder getRouteMetadataOrBuilder( + int index) { + return routeMetadata_.get(index); + } + + public static final int AGENTCONFIGURATION_FIELD_NUMBER = 35; + private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; + /** + *
+     *///////////////
+     * V1 encodings
+     * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + * @return Whether the agentConfiguration field is set. + */ + @java.lang.Override + public boolean hasAgentConfiguration() { + return agentConfiguration_ != null; + } + /** + *
+     *///////////////
+     * V1 encodings
+     * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + * @return The agentConfiguration. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { + return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } + /** + *
+     *///////////////
+     * V1 encodings
+     * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { + return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } + + public static final int ENCODEDDNS_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString encodedDNS_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
+     * 
+ * + * bytes encodedDNS = 14; + * @return The encodedDNS. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedDNS() { + return encodedDNS_; + } + + public static final int DOMAINS_FIELD_NUMBER = 30; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList domains_; + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList + getDomainsList() { + return domains_; + } + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + /** + *
+     * All queried DNS domains for which we have collected stats
+     * 
+ * + * repeated string domains = 30; + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString + getDomainsBytes(int index) { + return domains_.getByteString(index); + } + + public static final int ENCODEDDOMAINDATABASE_FIELD_NUMBER = 36; + private com.google.protobuf.ByteString encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     *////////////////
+     * V2 encodings
+     * all domain strings are now indexes into a single array of strings
+     * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
+     * is a single buffer; varint number of strings, followed by each string.
+     * 
+ * + * bytes encodedDomainDatabase = 36; + * @return The encodedDomainDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedDomainDatabase() { + return encodedDomainDatabase_; + } + + public static final int ENCODEDDNSLOOKUPS_FIELD_NUMBER = 37; + private com.google.protobuf.ByteString encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * new representation of encoded DNS.  This is a map of the string representation
+     * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
+     * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
+     * 
+ * + * bytes encodedDnsLookups = 37; + * @return The encodedDnsLookups. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedDnsLookups() { + return encodedDnsLookups_; + } + + public static final int RESOLVEDHOSTSBYNAME_FIELD_NUMBER = 40; + private static final class ResolvedHostsByNameDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, datadog.process_agent.Agent.Host> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.Agent.Host.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.Agent.Host> resolvedHostsByName_; + private com.google.protobuf.MapField + internalGetResolvedHostsByName() { + if (resolvedHostsByName_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResolvedHostsByNameDefaultEntryHolder.defaultEntry); + } + return resolvedHostsByName_; + } + public int getResolvedHostsByNameCount() { + return internalGetResolvedHostsByName().getMap().size(); + } + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public boolean containsResolvedHostsByName( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetResolvedHostsByName().getMap().containsKey(key); + } + /** + * Use {@link #getResolvedHostsByNameMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResolvedHostsByName() { + return getResolvedHostsByNameMap(); + } + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public java.util.Map getResolvedHostsByNameMap() { + return internalGetResolvedHostsByName().getMap(); + } + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.Agent.Host getResolvedHostsByNameOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.Agent.Host defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedHostsByName().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Post-resolution field
+     * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public datadog.process_agent.Agent.Host getResolvedHostsByNameOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedHostsByName().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostName_); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(3, connections_.get(i)); + } + if (groupId_ != 0) { + output.writeInt32(5, groupId_); + } + if (groupSize_ != 0) { + output.writeInt32(6, groupSize_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResolvedResources(), + ResolvedResourcesDefaultEntryHolder.defaultEntry, + 8); + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetContainerForPid(), + ContainerForPidDefaultEntryHolder.defaultEntry, + 10); + if (!encodedTags_.isEmpty()) { + output.writeBytes(11, encodedTags_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, networkId_); + } + if (!encodedDNS_.isEmpty()) { + output.writeBytes(14, encodedDNS_); + } + if (containerHostType_ != datadog.process_agent.Agent.ContainerHostType.notSpecified.getNumber()) { + output.writeEnum(15, containerHostType_); + } + if (connTelemetry_ != null) { + output.writeMessage(16, getConnTelemetry()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(architecture_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, architecture_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, kernelVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, platform_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, platformVersion_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCompilationTelemetryByAsset(), + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry, + 21); + for (int i = 0; i < domains_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, domains_.getRaw(i)); + } + for (int i = 0; i < routes_.size(); i++) { + output.writeMessage(31, routes_.get(i)); + } + for (int i = 0; i < routeMetadata_.size(); i++) { + output.writeMessage(34, routeMetadata_.get(i)); + } + if (agentConfiguration_ != null) { + output.writeMessage(35, getAgentConfiguration()); + } + if (!encodedDomainDatabase_.isEmpty()) { + output.writeBytes(36, encodedDomainDatabase_); + } + if (!encodedDnsLookups_.isEmpty()) { + output.writeBytes(37, encodedDnsLookups_); + } + if (!encodedConnectionsTags_.isEmpty()) { + output.writeBytes(38, encodedConnectionsTags_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConnTelemetryMap(), + ConnTelemetryMapDefaultEntryHolder.defaultEntry, + 39); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResolvedHostsByName(), + ResolvedHostsByNameDefaultEntryHolder.defaultEntry, + 40); + if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { + output.writeEnum(41, kernelHeaderFetchResult_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCORETelemetryByAsset(), + CORETelemetryByAssetDefaultEntryHolder.defaultEntry, + 42); + for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 44, prebuiltEBPFAssets_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostName_); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, connections_.get(i)); + } + if (groupId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, groupId_); + } + if (groupSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, groupSize_); + } + for (java.util.Map.Entry entry + : internalGetResolvedResources().getMap().entrySet()) { + com.google.protobuf.MapEntry + resolvedResources__ = ResolvedResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, resolvedResources__); + } + for (java.util.Map.Entry entry + : internalGetContainerForPid().getMap().entrySet()) { + com.google.protobuf.MapEntry + containerForPid__ = ContainerForPidDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, containerForPid__); + } + if (!encodedTags_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, encodedTags_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, networkId_); + } + if (!encodedDNS_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, encodedDNS_); + } + if (containerHostType_ != datadog.process_agent.Agent.ContainerHostType.notSpecified.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, containerHostType_); + } + if (connTelemetry_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getConnTelemetry()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(architecture_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, architecture_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, kernelVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, platform_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, platformVersion_); + } + for (java.util.Map.Entry entry + : internalGetCompilationTelemetryByAsset().getMap().entrySet()) { + com.google.protobuf.MapEntry + compilationTelemetryByAsset__ = CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, compilationTelemetryByAsset__); + } + { + int dataSize = 0; + for (int i = 0; i < domains_.size(); i++) { + dataSize += computeStringSizeNoTag(domains_.getRaw(i)); + } + size += dataSize; + size += 2 * getDomainsList().size(); + } + for (int i = 0; i < routes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, routes_.get(i)); + } + for (int i = 0; i < routeMetadata_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, routeMetadata_.get(i)); + } + if (agentConfiguration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, getAgentConfiguration()); + } + if (!encodedDomainDatabase_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(36, encodedDomainDatabase_); + } + if (!encodedDnsLookups_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(37, encodedDnsLookups_); + } + if (!encodedConnectionsTags_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(38, encodedConnectionsTags_); + } + for (java.util.Map.Entry entry + : internalGetConnTelemetryMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + connTelemetryMap__ = ConnTelemetryMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, connTelemetryMap__); + } + for (java.util.Map.Entry entry + : internalGetResolvedHostsByName().getMap().entrySet()) { + com.google.protobuf.MapEntry + resolvedHostsByName__ = ResolvedHostsByNameDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, resolvedHostsByName__); + } + if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(41, kernelHeaderFetchResult_); + } + for (java.util.Map.Entry entry + : internalGetCORETelemetryByAsset().getMap().entrySet()) { + com.google.protobuf.MapEntry + cORETelemetryByAsset__ = CORETelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, cORETelemetryByAsset__); + } + { + int dataSize = 0; + for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { + dataSize += computeStringSizeNoTag(prebuiltEBPFAssets_.getRaw(i)); + } + size += dataSize; + size += 2 * getPrebuiltEBPFAssetsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnections)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.CollectorConnections other = (datadog.process_agent.ConnectionsOuterClass.CollectorConnections) obj; + + if (!getHostName() + .equals(other.getHostName())) return false; + if (!getNetworkId() + .equals(other.getNetworkId())) return false; + if (!getConnectionsList() + .equals(other.getConnectionsList())) return false; + if (getGroupId() + != other.getGroupId()) return false; + if (getGroupSize() + != other.getGroupSize()) return false; + if (!internalGetResolvedResources().equals( + other.internalGetResolvedResources())) return false; + if (!internalGetContainerForPid().equals( + other.internalGetContainerForPid())) return false; + if (!getEncodedTags() + .equals(other.getEncodedTags())) return false; + if (!getEncodedConnectionsTags() + .equals(other.getEncodedConnectionsTags())) return false; + if (containerHostType_ != other.containerHostType_) return false; + if (hasConnTelemetry() != other.hasConnTelemetry()) return false; + if (hasConnTelemetry()) { + if (!getConnTelemetry() + .equals(other.getConnTelemetry())) return false; + } + if (!internalGetConnTelemetryMap().equals( + other.internalGetConnTelemetryMap())) return false; + if (!getArchitecture() + .equals(other.getArchitecture())) return false; + if (!getKernelVersion() + .equals(other.getKernelVersion())) return false; + if (!getPlatform() + .equals(other.getPlatform())) return false; + if (!getPlatformVersion() + .equals(other.getPlatformVersion())) return false; + if (!internalGetCompilationTelemetryByAsset().equals( + other.internalGetCompilationTelemetryByAsset())) return false; + if (kernelHeaderFetchResult_ != other.kernelHeaderFetchResult_) return false; + if (!internalGetCORETelemetryByAsset().equals( + other.internalGetCORETelemetryByAsset())) return false; + if (!getPrebuiltEBPFAssetsList() + .equals(other.getPrebuiltEBPFAssetsList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!getRouteMetadataList() + .equals(other.getRouteMetadataList())) return false; + if (hasAgentConfiguration() != other.hasAgentConfiguration()) return false; + if (hasAgentConfiguration()) { + if (!getAgentConfiguration() + .equals(other.getAgentConfiguration())) return false; + } + if (!getEncodedDNS() + .equals(other.getEncodedDNS())) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) return false; + if (!getEncodedDomainDatabase() + .equals(other.getEncodedDomainDatabase())) return false; + if (!getEncodedDnsLookups() + .equals(other.getEncodedDnsLookups())) return false; + if (!internalGetResolvedHostsByName().equals( + other.internalGetResolvedHostsByName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostName().hashCode(); + hash = (37 * hash) + NETWORKID_FIELD_NUMBER; + hash = (53 * hash) + getNetworkId().hashCode(); + if (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (37 * hash) + GROUPID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId(); + hash = (37 * hash) + GROUPSIZE_FIELD_NUMBER; + hash = (53 * hash) + getGroupSize(); + if (!internalGetResolvedResources().getMap().isEmpty()) { + hash = (37 * hash) + RESOLVEDRESOURCES_FIELD_NUMBER; + hash = (53 * hash) + internalGetResolvedResources().hashCode(); + } + if (!internalGetContainerForPid().getMap().isEmpty()) { + hash = (37 * hash) + CONTAINERFORPID_FIELD_NUMBER; + hash = (53 * hash) + internalGetContainerForPid().hashCode(); + } + hash = (37 * hash) + ENCODEDTAGS_FIELD_NUMBER; + hash = (53 * hash) + getEncodedTags().hashCode(); + hash = (37 * hash) + ENCODEDCONNECTIONSTAGS_FIELD_NUMBER; + hash = (53 * hash) + getEncodedConnectionsTags().hashCode(); + hash = (37 * hash) + CONTAINERHOSTTYPE_FIELD_NUMBER; + hash = (53 * hash) + containerHostType_; + if (hasConnTelemetry()) { + hash = (37 * hash) + CONNTELEMETRY_FIELD_NUMBER; + hash = (53 * hash) + getConnTelemetry().hashCode(); + } + if (!internalGetConnTelemetryMap().getMap().isEmpty()) { + hash = (37 * hash) + CONNTELEMETRYMAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnTelemetryMap().hashCode(); + } + hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + getArchitecture().hashCode(); + hash = (37 * hash) + KERNELVERSION_FIELD_NUMBER; + hash = (53 * hash) + getKernelVersion().hashCode(); + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getPlatform().hashCode(); + hash = (37 * hash) + PLATFORMVERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + if (!internalGetCompilationTelemetryByAsset().getMap().isEmpty()) { + hash = (37 * hash) + COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER; + hash = (53 * hash) + internalGetCompilationTelemetryByAsset().hashCode(); + } + hash = (37 * hash) + KERNELHEADERFETCHRESULT_FIELD_NUMBER; + hash = (53 * hash) + kernelHeaderFetchResult_; + if (!internalGetCORETelemetryByAsset().getMap().isEmpty()) { + hash = (37 * hash) + CORETELEMETRYBYASSET_FIELD_NUMBER; + hash = (53 * hash) + internalGetCORETelemetryByAsset().hashCode(); + } + if (getPrebuiltEBPFAssetsCount() > 0) { + hash = (37 * hash) + PREBUILTEBPFASSETS_FIELD_NUMBER; + hash = (53 * hash) + getPrebuiltEBPFAssetsList().hashCode(); + } + if (getRoutesCount() > 0) { + hash = (37 * hash) + ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getRoutesList().hashCode(); + } + if (getRouteMetadataCount() > 0) { + hash = (37 * hash) + ROUTEMETADATA_FIELD_NUMBER; + hash = (53 * hash) + getRouteMetadataList().hashCode(); + } + if (hasAgentConfiguration()) { + hash = (37 * hash) + AGENTCONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getAgentConfiguration().hashCode(); + } + hash = (37 * hash) + ENCODEDDNS_FIELD_NUMBER; + hash = (53 * hash) + getEncodedDNS().hashCode(); + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (37 * hash) + ENCODEDDOMAINDATABASE_FIELD_NUMBER; + hash = (53 * hash) + getEncodedDomainDatabase().hashCode(); + hash = (37 * hash) + ENCODEDDNSLOOKUPS_FIELD_NUMBER; + hash = (53 * hash) + getEncodedDnsLookups().hashCode(); + if (!internalGetResolvedHostsByName().getMap().isEmpty()) { + hash = (37 * hash) + RESOLVEDHOSTSBYNAME_FIELD_NUMBER; + hash = (53 * hash) + internalGetResolvedHostsByName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.CollectorConnections prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.CollectorConnections} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.CollectorConnections) + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 8: + return internalGetResolvedResources(); + case 10: + return internalGetContainerForPid(); + case 39: + return internalGetConnTelemetryMap(); + case 21: + return internalGetCompilationTelemetryByAsset(); + case 42: + return internalGetCORETelemetryByAsset(); + case 40: + return internalGetResolvedHostsByName(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 8: + return internalGetMutableResolvedResources(); + case 10: + return internalGetMutableContainerForPid(); + case 39: + return internalGetMutableConnTelemetryMap(); + case 21: + return internalGetMutableCompilationTelemetryByAsset(); + case 42: + return internalGetMutableCORETelemetryByAsset(); + case 40: + return internalGetMutableResolvedHostsByName(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.CollectorConnections.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnections.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.CollectorConnections.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostName_ = ""; + networkId_ = ""; + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + groupId_ = 0; + groupSize_ = 0; + internalGetMutableResolvedResources().clear(); + internalGetMutableContainerForPid().clear(); + encodedTags_ = com.google.protobuf.ByteString.EMPTY; + encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; + containerHostType_ = 0; + connTelemetry_ = null; + if (connTelemetryBuilder_ != null) { + connTelemetryBuilder_.dispose(); + connTelemetryBuilder_ = null; + } + internalGetMutableConnTelemetryMap().clear(); + architecture_ = ""; + kernelVersion_ = ""; + platform_ = ""; + platformVersion_ = ""; + internalGetMutableCompilationTelemetryByAsset().clear(); + kernelHeaderFetchResult_ = 0; + internalGetMutableCORETelemetryByAsset().clear(); + prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00080000); + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + } else { + routes_ = null; + routesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); + if (routeMetadataBuilder_ == null) { + routeMetadata_ = java.util.Collections.emptyList(); + } else { + routeMetadata_ = null; + routeMetadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + agentConfiguration_ = null; + if (agentConfigurationBuilder_ != null) { + agentConfigurationBuilder_.dispose(); + agentConfigurationBuilder_ = null; + } + encodedDNS_ = com.google.protobuf.ByteString.EMPTY; + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x01000000); + encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; + encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; + internalGetMutableResolvedHostsByName().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnections getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.CollectorConnections.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnections build() { + datadog.process_agent.ConnectionsOuterClass.CollectorConnections result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnections buildPartial() { + datadog.process_agent.ConnectionsOuterClass.CollectorConnections result = new datadog.process_agent.ConnectionsOuterClass.CollectorConnections(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.CollectorConnections result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + if (((bitField0_ & 0x00080000) != 0)) { + prebuiltEBPFAssets_ = prebuiltEBPFAssets_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.prebuiltEBPFAssets_ = prebuiltEBPFAssets_; + if (routesBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.routes_ = routes_; + } else { + result.routes_ = routesBuilder_.build(); + } + if (routeMetadataBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0)) { + routeMetadata_ = java.util.Collections.unmodifiableList(routeMetadata_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.routeMetadata_ = routeMetadata_; + } else { + result.routeMetadata_ = routeMetadataBuilder_.build(); + } + if (((bitField0_ & 0x01000000) != 0)) { + domains_ = domains_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.domains_ = domains_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.CollectorConnections result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hostName_ = hostName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.networkId_ = networkId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.groupId_ = groupId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.groupSize_ = groupSize_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resolvedResources_ = internalGetResolvedResources(); + result.resolvedResources_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.containerForPid_ = internalGetContainerForPid(); + result.containerForPid_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.encodedTags_ = encodedTags_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.encodedConnectionsTags_ = encodedConnectionsTags_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.containerHostType_ = containerHostType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.connTelemetry_ = connTelemetryBuilder_ == null + ? connTelemetry_ + : connTelemetryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.connTelemetryMap_ = internalGetConnTelemetryMap(); + result.connTelemetryMap_.makeImmutable(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.architecture_ = architecture_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.kernelVersion_ = kernelVersion_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.platform_ = platform_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.platformVersion_ = platformVersion_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.compilationTelemetryByAsset_ = internalGetCompilationTelemetryByAsset(); + result.compilationTelemetryByAsset_.makeImmutable(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.kernelHeaderFetchResult_ = kernelHeaderFetchResult_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.cORETelemetryByAsset_ = internalGetCORETelemetryByAsset(); + result.cORETelemetryByAsset_.makeImmutable(); + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.agentConfiguration_ = agentConfigurationBuilder_ == null + ? agentConfiguration_ + : agentConfigurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.encodedDNS_ = encodedDNS_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.encodedDomainDatabase_ = encodedDomainDatabase_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.encodedDnsLookups_ = encodedDnsLookups_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.resolvedHostsByName_ = internalGetResolvedHostsByName(); + result.resolvedHostsByName_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnections) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.CollectorConnections)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.CollectorConnections other) { + if (other == datadog.process_agent.ConnectionsOuterClass.CollectorConnections.getDefaultInstance()) return this; + if (!other.getHostName().isEmpty()) { + hostName_ = other.hostName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetworkId().isEmpty()) { + networkId_ = other.networkId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000004); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionsFieldBuilder() : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + if (other.getGroupId() != 0) { + setGroupId(other.getGroupId()); + } + if (other.getGroupSize() != 0) { + setGroupSize(other.getGroupSize()); + } + internalGetMutableResolvedResources().mergeFrom( + other.internalGetResolvedResources()); + bitField0_ |= 0x00000020; + internalGetMutableContainerForPid().mergeFrom( + other.internalGetContainerForPid()); + bitField0_ |= 0x00000040; + if (other.getEncodedTags() != com.google.protobuf.ByteString.EMPTY) { + setEncodedTags(other.getEncodedTags()); + } + if (other.getEncodedConnectionsTags() != com.google.protobuf.ByteString.EMPTY) { + setEncodedConnectionsTags(other.getEncodedConnectionsTags()); + } + if (other.containerHostType_ != 0) { + setContainerHostTypeValue(other.getContainerHostTypeValue()); + } + if (other.hasConnTelemetry()) { + mergeConnTelemetry(other.getConnTelemetry()); + } + internalGetMutableConnTelemetryMap().mergeFrom( + other.internalGetConnTelemetryMap()); + bitField0_ |= 0x00000800; + if (!other.getArchitecture().isEmpty()) { + architecture_ = other.architecture_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getKernelVersion().isEmpty()) { + kernelVersion_ = other.kernelVersion_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getPlatform().isEmpty()) { + platform_ = other.platform_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + bitField0_ |= 0x00008000; + onChanged(); + } + internalGetMutableCompilationTelemetryByAsset().mergeFrom( + other.internalGetCompilationTelemetryByAsset()); + bitField0_ |= 0x00010000; + if (other.kernelHeaderFetchResult_ != 0) { + setKernelHeaderFetchResultValue(other.getKernelHeaderFetchResultValue()); + } + internalGetMutableCORETelemetryByAsset().mergeFrom( + other.internalGetCORETelemetryByAsset()); + bitField0_ |= 0x00040000; + if (!other.prebuiltEBPFAssets_.isEmpty()) { + if (prebuiltEBPFAssets_.isEmpty()) { + prebuiltEBPFAssets_ = other.prebuiltEBPFAssets_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.addAll(other.prebuiltEBPFAssets_); + } + onChanged(); + } + if (routesBuilder_ == null) { + if (!other.routes_.isEmpty()) { + if (routes_.isEmpty()) { + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureRoutesIsMutable(); + routes_.addAll(other.routes_); + } + onChanged(); + } + } else { + if (!other.routes_.isEmpty()) { + if (routesBuilder_.isEmpty()) { + routesBuilder_.dispose(); + routesBuilder_ = null; + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00100000); + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; + } else { + routesBuilder_.addAllMessages(other.routes_); + } + } + } + if (routeMetadataBuilder_ == null) { + if (!other.routeMetadata_.isEmpty()) { + if (routeMetadata_.isEmpty()) { + routeMetadata_ = other.routeMetadata_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureRouteMetadataIsMutable(); + routeMetadata_.addAll(other.routeMetadata_); + } + onChanged(); + } + } else { + if (!other.routeMetadata_.isEmpty()) { + if (routeMetadataBuilder_.isEmpty()) { + routeMetadataBuilder_.dispose(); + routeMetadataBuilder_ = null; + routeMetadata_ = other.routeMetadata_; + bitField0_ = (bitField0_ & ~0x00200000); + routeMetadataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRouteMetadataFieldBuilder() : null; + } else { + routeMetadataBuilder_.addAllMessages(other.routeMetadata_); + } + } + } + if (other.hasAgentConfiguration()) { + mergeAgentConfiguration(other.getAgentConfiguration()); + } + if (other.getEncodedDNS() != com.google.protobuf.ByteString.EMPTY) { + setEncodedDNS(other.getEncodedDNS()); + } + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + if (other.getEncodedDomainDatabase() != com.google.protobuf.ByteString.EMPTY) { + setEncodedDomainDatabase(other.getEncodedDomainDatabase()); + } + if (other.getEncodedDnsLookups() != com.google.protobuf.ByteString.EMPTY) { + setEncodedDnsLookups(other.getEncodedDnsLookups()); + } + internalGetMutableResolvedHostsByName().mergeFrom( + other.internalGetResolvedHostsByName()); + bitField0_ |= 0x08000000; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + hostName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + datadog.process_agent.ConnectionsOuterClass.Connection m = + input.readMessage( + datadog.process_agent.ConnectionsOuterClass.Connection.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 40: { + groupId_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + groupSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: { + com.google.protobuf.MapEntry + resolvedResources__ = input.readMessage( + ResolvedResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResolvedResources().getMutableMap().put( + resolvedResources__.getKey(), resolvedResources__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 82: { + com.google.protobuf.MapEntry + containerForPid__ = input.readMessage( + ContainerForPidDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableContainerForPid().getMutableMap().put( + containerForPid__.getKey(), containerForPid__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 82 + case 90: { + encodedTags_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 98: { + networkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 98 + case 114: { + encodedDNS_ = input.readBytes(); + bitField0_ |= 0x00800000; + break; + } // case 114 + case 120: { + containerHostType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 120 + case 130: { + input.readMessage( + getConnTelemetryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 130 + case 138: { + architecture_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 138 + case 146: { + kernelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 146 + case 154: { + platform_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 154 + case 162: { + platformVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 162 + case 170: { + com.google.protobuf.MapEntry + compilationTelemetryByAsset__ = input.readMessage( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCompilationTelemetryByAsset().getMutableMap().put( + compilationTelemetryByAsset__.getKey(), compilationTelemetryByAsset__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 170 + case 242: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDomainsIsMutable(); + domains_.add(s); + break; + } // case 242 + case 250: { + datadog.process_agent.ConnectionsOuterClass.Route m = + input.readMessage( + datadog.process_agent.ConnectionsOuterClass.Route.parser(), + extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 250 + case 274: { + datadog.process_agent.ConnectionsOuterClass.RouteMetadata m = + input.readMessage( + datadog.process_agent.ConnectionsOuterClass.RouteMetadata.parser(), + extensionRegistry); + if (routeMetadataBuilder_ == null) { + ensureRouteMetadataIsMutable(); + routeMetadata_.add(m); + } else { + routeMetadataBuilder_.addMessage(m); + } + break; + } // case 274 + case 282: { + input.readMessage( + getAgentConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 282 + case 290: { + encodedDomainDatabase_ = input.readBytes(); + bitField0_ |= 0x02000000; + break; + } // case 290 + case 298: { + encodedDnsLookups_ = input.readBytes(); + bitField0_ |= 0x04000000; + break; + } // case 298 + case 306: { + encodedConnectionsTags_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 306 + case 314: { + com.google.protobuf.MapEntry + connTelemetryMap__ = input.readMessage( + ConnTelemetryMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableConnTelemetryMap().getMutableMap().put( + connTelemetryMap__.getKey(), connTelemetryMap__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 314 + case 322: { + com.google.protobuf.MapEntry + resolvedHostsByName__ = input.readMessage( + ResolvedHostsByNameDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResolvedHostsByName().getMutableMap().put( + resolvedHostsByName__.getKey(), resolvedHostsByName__.getValue()); + bitField0_ |= 0x08000000; + break; + } // case 322 + case 328: { + kernelHeaderFetchResult_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 328 + case 338: { + com.google.protobuf.MapEntry + cORETelemetryByAsset__ = input.readMessage( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCORETelemetryByAsset().getMutableMap().put( + cORETelemetryByAsset__.getKey(), cORETelemetryByAsset__.getValue()); + bitField0_ |= 0x00040000; + break; + } // case 338 + case 354: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.add(s); + break; + } // case 354 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object hostName_ = ""; + /** + * string hostName = 2; + * @return The hostName. + */ + public java.lang.String getHostName() { + java.lang.Object ref = hostName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string hostName = 2; + * @return The bytes for hostName. + */ + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string hostName = 2; + * @param value The hostName to set. + * @return This builder for chaining. + */ + public Builder setHostName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + hostName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string hostName = 2; + * @return This builder for chaining. + */ + public Builder clearHostName() { + hostName_ = getDefaultInstance().getHostName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string hostName = 2; + * @param value The bytes for hostName to set. + * @return This builder for chaining. + */ + public Builder setHostNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + hostName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object networkId_ = ""; + /** + * string networkId = 12; + * @return The networkId. + */ + public java.lang.String getNetworkId() { + java.lang.Object ref = networkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string networkId = 12; + * @return The bytes for networkId. + */ + public com.google.protobuf.ByteString + getNetworkIdBytes() { + java.lang.Object ref = networkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + networkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string networkId = 12; + * @param value The networkId to set. + * @return This builder for chaining. + */ + public Builder setNetworkId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + networkId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string networkId = 12; + * @return This builder for chaining. + */ + public Builder clearNetworkId() { + networkId_ = getDefaultInstance().getNetworkId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string networkId = 12; + * @param value The bytes for networkId to set. + * @return This builder for chaining. + */ + public Builder setNetworkIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + networkId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List connections_ = + java.util.Collections.emptyList(); + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + connections_ = new java.util.ArrayList(connections_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> connectionsBuilder_; + + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public java.util.List getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder setConnections( + int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder setConnections( + int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder addConnections(datadog.process_agent.ConnectionsOuterClass.Connection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder addConnections( + int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder addConnections( + datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder addConnections( + int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder addAllConnections( + java.lang.Iterable values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection.Builder getConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnectionsOrBuilder( + int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public java.util.List + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnectionsBuilder() { + return getConnectionsFieldBuilder().addBuilder( + datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().addBuilder( + index, datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Connection connections = 3; + */ + public java.util.List + getConnectionsBuilderList() { + return getConnectionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder>( + connections_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + private int groupId_ ; + /** + *
+       * Message batching metadata
+       * 
+ * + * int32 groupId = 5; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + /** + *
+       * Message batching metadata
+       * 
+ * + * int32 groupId = 5; + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(int value) { + + groupId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Message batching metadata
+       * 
+ * + * int32 groupId = 5; + * @return This builder for chaining. + */ + public Builder clearGroupId() { + bitField0_ = (bitField0_ & ~0x00000008); + groupId_ = 0; + onChanged(); + return this; + } + + private int groupSize_ ; + /** + * int32 groupSize = 6; + * @return The groupSize. + */ + @java.lang.Override + public int getGroupSize() { + return groupSize_; + } + /** + * int32 groupSize = 6; + * @param value The groupSize to set. + * @return This builder for chaining. + */ + public Builder setGroupSize(int value) { + + groupSize_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int32 groupSize = 6; + * @return This builder for chaining. + */ + public Builder clearGroupSize() { + bitField0_ = (bitField0_ & ~0x00000010); + groupSize_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata> resolvedResources_; + private com.google.protobuf.MapField + internalGetResolvedResources() { + if (resolvedResources_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResolvedResourcesDefaultEntryHolder.defaultEntry); + } + return resolvedResources_; + } + private com.google.protobuf.MapField + internalGetMutableResolvedResources() { + if (resolvedResources_ == null) { + resolvedResources_ = com.google.protobuf.MapField.newMapField( + ResolvedResourcesDefaultEntryHolder.defaultEntry); + } + if (!resolvedResources_.isMutable()) { + resolvedResources_ = resolvedResources_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return resolvedResources_; + } + public int getResolvedResourcesCount() { + return internalGetResolvedResources().getMap().size(); + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public boolean containsResolvedResources( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetResolvedResources().getMap().containsKey(key); + } + /** + * Use {@link #getResolvedResourcesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResolvedResources() { + return getResolvedResourcesMap(); + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public java.util.Map getResolvedResourcesMap() { + return internalGetResolvedResources().getMap(); + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.ResourceMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResolvedResources() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableResolvedResources().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + public Builder removeResolvedResources( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResolvedResources().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResolvedResources() { + bitField0_ |= 0x00000020; + return internalGetMutableResolvedResources().getMutableMap(); + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + public Builder putResolvedResources( + java.lang.String key, + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResolvedResources().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
+       * 
+ * + * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; + */ + public Builder putAllResolvedResources( + java.util.Map values) { + internalGetMutableResolvedResources().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.String> containerForPid_; + private com.google.protobuf.MapField + internalGetContainerForPid() { + if (containerForPid_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ContainerForPidDefaultEntryHolder.defaultEntry); + } + return containerForPid_; + } + private com.google.protobuf.MapField + internalGetMutableContainerForPid() { + if (containerForPid_ == null) { + containerForPid_ = com.google.protobuf.MapField.newMapField( + ContainerForPidDefaultEntryHolder.defaultEntry); + } + if (!containerForPid_.isMutable()) { + containerForPid_ = containerForPid_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return containerForPid_; + } + public int getContainerForPidCount() { + return internalGetContainerForPid().getMap().size(); + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public boolean containsContainerForPid( + int key) { + + return internalGetContainerForPid().getMap().containsKey(key); + } + /** + * Use {@link #getContainerForPidMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getContainerForPid() { + return getContainerForPidMap(); + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public java.util.Map getContainerForPidMap() { + return internalGetContainerForPid().getMap(); + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getContainerForPidOrDefault( + int key, + /* nullable */ +java.lang.String defaultValue) { + + java.util.Map map = + internalGetContainerForPid().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + @java.lang.Override + public java.lang.String getContainerForPidOrThrow( + int key) { + + java.util.Map map = + internalGetContainerForPid().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearContainerForPid() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableContainerForPid().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + public Builder removeContainerForPid( + int key) { + + internalGetMutableContainerForPid().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableContainerForPid() { + bitField0_ |= 0x00000040; + return internalGetMutableContainerForPid().getMutableMap(); + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + public Builder putContainerForPid( + int key, + java.lang.String value) { + + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableContainerForPid().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Mapping of processes running in each container
+       * 
+ * + * map<int32, string> containerForPid = 10; + */ + public Builder putAllContainerForPid( + java.util.Map values) { + internalGetMutableContainerForPid().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private com.google.protobuf.ByteString encodedTags_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * encoded bytes here are use to store a tags []string
+       * the tags encoder is more space efficient than protobuf
+       * 
+ * + * bytes encodedTags = 11; + * @return The encodedTags. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedTags() { + return encodedTags_; + } + /** + *
+       * encoded bytes here are use to store a tags []string
+       * the tags encoder is more space efficient than protobuf
+       * 
+ * + * bytes encodedTags = 11; + * @param value The encodedTags to set. + * @return This builder for chaining. + */ + public Builder setEncodedTags(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + encodedTags_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+       * encoded bytes here are use to store a tags []string
+       * the tags encoder is more space efficient than protobuf
+       * 
+ * + * bytes encodedTags = 11; + * @return This builder for chaining. + */ + public Builder clearEncodedTags() { + bitField0_ = (bitField0_ & ~0x00000080); + encodedTags_ = getDefaultInstance().getEncodedTags(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * All tags indexed by Connection.tags
+       * 
+ * + * bytes encodedConnectionsTags = 38; + * @return The encodedConnectionsTags. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedConnectionsTags() { + return encodedConnectionsTags_; + } + /** + *
+       * All tags indexed by Connection.tags
+       * 
+ * + * bytes encodedConnectionsTags = 38; + * @param value The encodedConnectionsTags to set. + * @return This builder for chaining. + */ + public Builder setEncodedConnectionsTags(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + encodedConnectionsTags_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+       * All tags indexed by Connection.tags
+       * 
+ * + * bytes encodedConnectionsTags = 38; + * @return This builder for chaining. + */ + public Builder clearEncodedConnectionsTags() { + bitField0_ = (bitField0_ & ~0x00000100); + encodedConnectionsTags_ = getDefaultInstance().getEncodedConnectionsTags(); + onChanged(); + return this; + } + + private int containerHostType_ = 0; + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return The enum numeric value on the wire for containerHostType. + */ + @java.lang.Override public int getContainerHostTypeValue() { + return containerHostType_; + } + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @param value The enum numeric value on the wire for containerHostType to set. + * @return This builder for chaining. + */ + public Builder setContainerHostTypeValue(int value) { + containerHostType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return The containerHostType. + */ + @java.lang.Override + public datadog.process_agent.Agent.ContainerHostType getContainerHostType() { + datadog.process_agent.Agent.ContainerHostType result = datadog.process_agent.Agent.ContainerHostType.forNumber(containerHostType_); + return result == null ? datadog.process_agent.Agent.ContainerHostType.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @param value The containerHostType to set. + * @return This builder for chaining. + */ + public Builder setContainerHostType(datadog.process_agent.Agent.ContainerHostType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + containerHostType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.ContainerHostType containerHostType = 15; + * @return This builder for chaining. + */ + public Builder clearContainerHostType() { + bitField0_ = (bitField0_ & ~0x00000200); + containerHostType_ = 0; + onChanged(); + return this; + } + + private datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry connTelemetry_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder> connTelemetryBuilder_; + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + * @return Whether the connTelemetry field is set. + */ + public boolean hasConnTelemetry() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + * @return The connTelemetry. + */ + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getConnTelemetry() { + if (connTelemetryBuilder_ == null) { + return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } else { + return connTelemetryBuilder_.getMessage(); + } + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + public Builder setConnTelemetry(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry value) { + if (connTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connTelemetry_ = value; + } else { + connTelemetryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + public Builder setConnTelemetry( + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder builderForValue) { + if (connTelemetryBuilder_ == null) { + connTelemetry_ = builderForValue.build(); + } else { + connTelemetryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + public Builder mergeConnTelemetry(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry value) { + if (connTelemetryBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + connTelemetry_ != null && + connTelemetry_ != datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance()) { + getConnTelemetryBuilder().mergeFrom(value); + } else { + connTelemetry_ = value; + } + } else { + connTelemetryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + public Builder clearConnTelemetry() { + bitField0_ = (bitField0_ & ~0x00000400); + connTelemetry_ = null; + if (connTelemetryBuilder_ != null) { + connTelemetryBuilder_.dispose(); + connTelemetryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder getConnTelemetryBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getConnTelemetryFieldBuilder().getBuilder(); + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { + if (connTelemetryBuilder_ != null) { + return connTelemetryBuilder_.getMessageOrBuilder(); + } else { + return connTelemetry_ == null ? + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder> + getConnTelemetryFieldBuilder() { + if (connTelemetryBuilder_ == null) { + connTelemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder>( + getConnTelemetry(), + getParentForChildren(), + isClean()); + connTelemetry_ = null; + } + return connTelemetryBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> connTelemetryMap_; + private com.google.protobuf.MapField + internalGetConnTelemetryMap() { + if (connTelemetryMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnTelemetryMapDefaultEntryHolder.defaultEntry); + } + return connTelemetryMap_; + } + private com.google.protobuf.MapField + internalGetMutableConnTelemetryMap() { + if (connTelemetryMap_ == null) { + connTelemetryMap_ = com.google.protobuf.MapField.newMapField( + ConnTelemetryMapDefaultEntryHolder.defaultEntry); + } + if (!connTelemetryMap_.isMutable()) { + connTelemetryMap_ = connTelemetryMap_.copy(); + } + bitField0_ |= 0x00000800; + onChanged(); + return connTelemetryMap_; + } + public int getConnTelemetryMapCount() { + return internalGetConnTelemetryMap().getMap().size(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public boolean containsConnTelemetryMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetConnTelemetryMap().getMap().containsKey(key); + } + /** + * Use {@link #getConnTelemetryMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnTelemetryMap() { + return getConnTelemetryMapMap(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public java.util.Map getConnTelemetryMapMap() { + return internalGetConnTelemetryMap().getMap(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public long getConnTelemetryMapOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + @java.lang.Override + public long getConnTelemetryMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearConnTelemetryMap() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableConnTelemetryMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + public Builder removeConnTelemetryMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableConnTelemetryMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableConnTelemetryMap() { + bitField0_ |= 0x00000800; + return internalGetMutableConnTelemetryMap().getMutableMap(); + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + public Builder putConnTelemetryMap( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableConnTelemetryMap().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000800; + return this; + } + /** + * map<string, int64> connTelemetryMap = 39; + */ + public Builder putAllConnTelemetryMap( + java.util.Map values) { + internalGetMutableConnTelemetryMap().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000800; + return this; + } + + private java.lang.Object architecture_ = ""; + /** + *
+       * OS Telemetry
+       * 
+ * + * string architecture = 17; + * @return The architecture. + */ + public java.lang.String getArchitecture() { + java.lang.Object ref = architecture_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + architecture_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * OS Telemetry
+       * 
+ * + * string architecture = 17; + * @return The bytes for architecture. + */ + public com.google.protobuf.ByteString + getArchitectureBytes() { + java.lang.Object ref = architecture_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + architecture_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * OS Telemetry
+       * 
+ * + * string architecture = 17; + * @param value The architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitecture( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + architecture_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+       * OS Telemetry
+       * 
+ * + * string architecture = 17; + * @return This builder for chaining. + */ + public Builder clearArchitecture() { + architecture_ = getDefaultInstance().getArchitecture(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+       * OS Telemetry
+       * 
+ * + * string architecture = 17; + * @param value The bytes for architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitectureBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + architecture_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object kernelVersion_ = ""; + /** + * string kernelVersion = 18; + * @return The kernelVersion. + */ + public java.lang.String getKernelVersion() { + java.lang.Object ref = kernelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kernelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kernelVersion = 18; + * @return The bytes for kernelVersion. + */ + public com.google.protobuf.ByteString + getKernelVersionBytes() { + java.lang.Object ref = kernelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kernelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kernelVersion = 18; + * @param value The kernelVersion to set. + * @return This builder for chaining. + */ + public Builder setKernelVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + kernelVersion_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * string kernelVersion = 18; + * @return This builder for chaining. + */ + public Builder clearKernelVersion() { + kernelVersion_ = getDefaultInstance().getKernelVersion(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * string kernelVersion = 18; + * @param value The bytes for kernelVersion to set. + * @return This builder for chaining. + */ + public Builder setKernelVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + kernelVersion_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object platform_ = ""; + /** + * string platform = 19; + * @return The platform. + */ + public java.lang.String getPlatform() { + java.lang.Object ref = platform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string platform = 19; + * @return The bytes for platform. + */ + public com.google.protobuf.ByteString + getPlatformBytes() { + java.lang.Object ref = platform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string platform = 19; + * @param value The platform to set. + * @return This builder for chaining. + */ + public Builder setPlatform( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + platform_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * string platform = 19; + * @return This builder for chaining. + */ + public Builder clearPlatform() { + platform_ = getDefaultInstance().getPlatform(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * string platform = 19; + * @param value The bytes for platform to set. + * @return This builder for chaining. + */ + public Builder setPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + platform_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object platformVersion_ = ""; + /** + * string platformVersion = 20; + * @return The platformVersion. + */ + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string platformVersion = 20; + * @return The bytes for platformVersion. + */ + public com.google.protobuf.ByteString + getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string platformVersion = 20; + * @param value The platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + platformVersion_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * string platformVersion = 20; + * @return This builder for chaining. + */ + public Builder clearPlatformVersion() { + platformVersion_ = getDefaultInstance().getPlatformVersion(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * string platformVersion = 20; + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + platformVersion_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCompilationTelemetryByAsset() { + if (compilationTelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return compilationTelemetryByAsset_; + } + private com.google.protobuf.MapField + internalGetMutableCompilationTelemetryByAsset() { + if (compilationTelemetryByAsset_ == null) { + compilationTelemetryByAsset_ = com.google.protobuf.MapField.newMapField( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); + } + if (!compilationTelemetryByAsset_.isMutable()) { + compilationTelemetryByAsset_ = compilationTelemetryByAsset_.copy(); + } + bitField0_ |= 0x00010000; + onChanged(); + return compilationTelemetryByAsset_; + } + public int getCompilationTelemetryByAssetCount() { + return internalGetCompilationTelemetryByAsset().getMap().size(); + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public boolean containsCompilationTelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCompilationTelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCompilationTelemetryByAsset() { + return getCompilationTelemetryByAssetMap(); + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public java.util.Map getCompilationTelemetryByAssetMap() { + return internalGetCompilationTelemetryByAsset().getMap(); + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCompilationTelemetryByAsset() { + bitField0_ = (bitField0_ & ~0x00010000); + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + public Builder removeCompilationTelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCompilationTelemetryByAsset() { + bitField0_ |= 0x00010000; + return internalGetMutableCompilationTelemetryByAsset().getMutableMap(); + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + public Builder putCompilationTelemetryByAsset( + java.lang.String key, + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .put(key, value); + bitField0_ |= 0x00010000; + return this; + } + /** + *
+       * Runtime compilation telemetry
+       * 
+ * + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; + */ + public Builder putAllCompilationTelemetryByAsset( + java.util.Map values) { + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .putAll(values); + bitField0_ |= 0x00010000; + return this; + } + + private int kernelHeaderFetchResult_ = 0; + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + @java.lang.Override public int getKernelHeaderFetchResultValue() { + return kernelHeaderFetchResult_; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @param value The enum numeric value on the wire for kernelHeaderFetchResult to set. + * @return This builder for chaining. + */ + public Builder setKernelHeaderFetchResultValue(int value) { + kernelHeaderFetchResult_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return The kernelHeaderFetchResult. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @param value The kernelHeaderFetchResult to set. + * @return This builder for chaining. + */ + public Builder setKernelHeaderFetchResult(datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + kernelHeaderFetchResult_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; + * @return This builder for chaining. + */ + public Builder clearKernelHeaderFetchResult() { + bitField0_ = (bitField0_ & ~0x00020000); + kernelHeaderFetchResult_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> cORETelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCORETelemetryByAsset() { + if (cORETelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return cORETelemetryByAsset_; + } + private com.google.protobuf.MapField + internalGetMutableCORETelemetryByAsset() { + if (cORETelemetryByAsset_ == null) { + cORETelemetryByAsset_ = com.google.protobuf.MapField.newMapField( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry); + } + if (!cORETelemetryByAsset_.isMutable()) { + cORETelemetryByAsset_ = cORETelemetryByAsset_.copy(); + } + bitField0_ |= 0x00040000; + onChanged(); + return cORETelemetryByAsset_; + } + public int getCORETelemetryByAssetCount() { + return internalGetCORETelemetryByAsset().getMap().size(); + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public boolean containsCORETelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCORETelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCORETelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAsset() { + return getCORETelemetryByAssetMap(); + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetMap() { + return internalGetAdaptedCORETelemetryByAssetMap( + internalGetCORETelemetryByAsset().getMap());} + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) + ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) + : defaultValue; + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return cORETelemetryByAssetValueConverter.doForward(map.get(key)); + } + /** + * Use {@link #getCORETelemetryByAssetValueMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAssetValue() { + return getCORETelemetryByAssetValueMap(); + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetValueMap() { + return internalGetCORETelemetryByAsset().getMap(); + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCORETelemetryByAsset() { + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableCORETelemetryByAsset().getMutableMap() + .clear(); + return this; + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + public Builder removeCORETelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCORETelemetryByAsset().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCORETelemetryByAsset() { + bitField0_ |= 0x00040000; + return internalGetAdaptedCORETelemetryByAssetMap( + internalGetMutableCORETelemetryByAsset().getMutableMap()); + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + public Builder putCORETelemetryByAsset( + java.lang.String key, + datadog.process_agent.ConnectionsOuterClass.COREResult value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableCORETelemetryByAsset().getMutableMap() + .put(key, cORETelemetryByAssetValueConverter.doBackward(value)); + bitField0_ |= 0x00040000; + return this; + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + public Builder putAllCORETelemetryByAsset( + java.util.Map values) { + internalGetAdaptedCORETelemetryByAssetMap( + internalGetMutableCORETelemetryByAsset().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00040000; + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCORETelemetryByAssetValue() { + bitField0_ |= 0x00040000; + return internalGetMutableCORETelemetryByAsset().getMutableMap(); + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + public Builder putCORETelemetryByAssetValue( + java.lang.String key, + int value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableCORETelemetryByAsset().getMutableMap() + .put(key, value); + bitField0_ |= 0x00040000; + return this; + } + /** + *
+       * CO-RE telemetry
+       * 
+ * + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; + */ + public Builder putAllCORETelemetryByAssetValue( + java.util.Map values) { + internalGetMutableCORETelemetryByAsset().getMutableMap() + .putAll(values); + bitField0_ |= 0x00040000; + return this; + } + + private com.google.protobuf.LazyStringList prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrebuiltEBPFAssetsIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + prebuiltEBPFAssets_ = new com.google.protobuf.LazyStringArrayList(prebuiltEBPFAssets_); + bitField0_ |= 0x00080000; + } + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return A list containing the prebuiltEBPFAssets. + */ + public com.google.protobuf.ProtocolStringList + getPrebuiltEBPFAssetsList() { + return prebuiltEBPFAssets_.getUnmodifiableView(); + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return The count of prebuiltEBPFAssets. + */ + public int getPrebuiltEBPFAssetsCount() { + return prebuiltEBPFAssets_.size(); + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index of the element to return. + * @return The prebuiltEBPFAssets at the given index. + */ + public java.lang.String getPrebuiltEBPFAssets(int index) { + return prebuiltEBPFAssets_.get(index); + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index of the value to return. + * @return The bytes of the prebuiltEBPFAssets at the given index. + */ + public com.google.protobuf.ByteString + getPrebuiltEBPFAssetsBytes(int index) { + return prebuiltEBPFAssets_.getByteString(index); + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param index The index to set the value at. + * @param value The prebuiltEBPFAssets to set. + * @return This builder for chaining. + */ + public Builder setPrebuiltEBPFAssets( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param value The prebuiltEBPFAssets to add. + * @return This builder for chaining. + */ + public Builder addPrebuiltEBPFAssets( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.add(value); + onChanged(); + return this; + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param values The prebuiltEBPFAssets to add. + * @return This builder for chaining. + */ + public Builder addAllPrebuiltEBPFAssets( + java.lang.Iterable values) { + ensurePrebuiltEBPFAssetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prebuiltEBPFAssets_); + onChanged(); + return this; + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @return This builder for chaining. + */ + public Builder clearPrebuiltEBPFAssets() { + prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + /** + *
+       * Prebuilt EBPF assets in use
+       * 
+ * + * repeated string PrebuiltEBPFAssets = 44; + * @param value The bytes of the prebuiltEBPFAssets to add. + * @return This builder for chaining. + */ + public Builder addPrebuiltEBPFAssetsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.add(value); + onChanged(); + return this; + } + + private java.util.List routes_ = + java.util.Collections.emptyList(); + private void ensureRoutesIsMutable() { + if (!((bitField0_ & 0x00100000) != 0)) { + routes_ = new java.util.ArrayList(routes_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> routesBuilder_; + + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public java.util.List getRoutesList() { + if (routesBuilder_ == null) { + return java.util.Collections.unmodifiableList(routes_); + } else { + return routesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public int getRoutesCount() { + if (routesBuilder_ == null) { + return routes_.size(); + } else { + return routesBuilder_.getCount(); + } + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { + if (routesBuilder_ == null) { + return routes_.get(index); + } else { + return routesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder setRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.set(index, value); + onChanged(); + } else { + routesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder setRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.set(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder addRoutes(datadog.process_agent.ConnectionsOuterClass.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(value); + onChanged(); + } else { + routesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder addRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(index, value); + onChanged(); + } else { + routesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder addRoutes( + datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder addRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder addAllRoutes( + java.lang.Iterable values) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); + onChanged(); + } else { + routesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder clearRoutes() { + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + routesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public Builder removeRoutes(int index) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.remove(index); + onChanged(); + } else { + routesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public datadog.process_agent.ConnectionsOuterClass.Route.Builder getRoutesBuilder( + int index) { + return getRoutesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( + int index) { + if (routesBuilder_ == null) { + return routes_.get(index); } else { + return routesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public java.util.List + getRoutesOrBuilderList() { + if (routesBuilder_ != null) { + return routesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routes_); + } + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder() { + return getRoutesFieldBuilder().addBuilder( + datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Route routes = 31; + */ + public java.util.List + getRoutesBuilderList() { + return getRoutesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> + getRoutesFieldBuilder() { + if (routesBuilder_ == null) { + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder>( + routes_, + ((bitField0_ & 0x00100000) != 0), + getParentForChildren(), + isClean()); + routes_ = null; + } + return routesBuilder_; + } + + private java.util.List routeMetadata_ = + java.util.Collections.emptyList(); + private void ensureRouteMetadataIsMutable() { + if (!((bitField0_ & 0x00200000) != 0)) { + routeMetadata_ = new java.util.ArrayList(routeMetadata_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.RouteMetadata, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder, datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder> routeMetadataBuilder_; + + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public java.util.List getRouteMetadataList() { + if (routeMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(routeMetadata_); + } else { + return routeMetadataBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public int getRouteMetadataCount() { + if (routeMetadataBuilder_ == null) { + return routeMetadata_.size(); + } else { + return routeMetadataBuilder_.getCount(); + } + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getRouteMetadata(int index) { + if (routeMetadataBuilder_ == null) { + return routeMetadata_.get(index); + } else { + return routeMetadataBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder setRouteMetadata( + int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata value) { + if (routeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRouteMetadataIsMutable(); + routeMetadata_.set(index, value); + onChanged(); + } else { + routeMetadataBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder setRouteMetadata( + int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder builderForValue) { + if (routeMetadataBuilder_ == null) { + ensureRouteMetadataIsMutable(); + routeMetadata_.set(index, builderForValue.build()); + onChanged(); + } else { + routeMetadataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder addRouteMetadata(datadog.process_agent.ConnectionsOuterClass.RouteMetadata value) { + if (routeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRouteMetadataIsMutable(); + routeMetadata_.add(value); + onChanged(); + } else { + routeMetadataBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder addRouteMetadata( + int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata value) { + if (routeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRouteMetadataIsMutable(); + routeMetadata_.add(index, value); + onChanged(); + } else { + routeMetadataBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder addRouteMetadata( + datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder builderForValue) { + if (routeMetadataBuilder_ == null) { + ensureRouteMetadataIsMutable(); + routeMetadata_.add(builderForValue.build()); + onChanged(); + } else { + routeMetadataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder addRouteMetadata( + int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder builderForValue) { + if (routeMetadataBuilder_ == null) { + ensureRouteMetadataIsMutable(); + routeMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + routeMetadataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder addAllRouteMetadata( + java.lang.Iterable values) { + if (routeMetadataBuilder_ == null) { + ensureRouteMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routeMetadata_); + onChanged(); + } else { + routeMetadataBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder clearRouteMetadata() { + if (routeMetadataBuilder_ == null) { + routeMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + routeMetadataBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public Builder removeRouteMetadata(int index) { + if (routeMetadataBuilder_ == null) { + ensureRouteMetadataIsMutable(); + routeMetadata_.remove(index); + onChanged(); + } else { + routeMetadataBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder getRouteMetadataBuilder( + int index) { + return getRouteMetadataFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder getRouteMetadataOrBuilder( + int index) { + if (routeMetadataBuilder_ == null) { + return routeMetadata_.get(index); } else { + return routeMetadataBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public java.util.List + getRouteMetadataOrBuilderList() { + if (routeMetadataBuilder_ != null) { + return routeMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routeMetadata_); + } + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder addRouteMetadataBuilder() { + return getRouteMetadataFieldBuilder().addBuilder( + datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder addRouteMetadataBuilder( + int index) { + return getRouteMetadataFieldBuilder().addBuilder( + index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; + */ + public java.util.List + getRouteMetadataBuilderList() { + return getRouteMetadataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.RouteMetadata, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder, datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder> + getRouteMetadataFieldBuilder() { + if (routeMetadataBuilder_ == null) { + routeMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.RouteMetadata, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder, datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder>( + routeMetadata_, + ((bitField0_ & 0x00200000) != 0), + getParentForChildren(), + isClean()); + routeMetadata_ = null; + } + return routeMetadataBuilder_; + } + + private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> agentConfigurationBuilder_; + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + * @return Whether the agentConfiguration field is set. + */ + public boolean hasAgentConfiguration() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + * @return The agentConfiguration. + */ + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { + if (agentConfigurationBuilder_ == null) { + return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } else { + return agentConfigurationBuilder_.getMessage(); + } + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + public Builder setAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { + if (agentConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentConfiguration_ = value; + } else { + agentConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + public Builder setAgentConfiguration( + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder builderForValue) { + if (agentConfigurationBuilder_ == null) { + agentConfiguration_ = builderForValue.build(); + } else { + agentConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + public Builder mergeAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { + if (agentConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + agentConfiguration_ != null && + agentConfiguration_ != datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance()) { + getAgentConfigurationBuilder().mergeFrom(value); + } else { + agentConfiguration_ = value; + } + } else { + agentConfigurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + public Builder clearAgentConfiguration() { + bitField0_ = (bitField0_ & ~0x00400000); + agentConfiguration_ = null; + if (agentConfigurationBuilder_ != null) { + agentConfigurationBuilder_.dispose(); + agentConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder getAgentConfigurationBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getAgentConfigurationFieldBuilder().getBuilder(); + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { + if (agentConfigurationBuilder_ != null) { + return agentConfigurationBuilder_.getMessageOrBuilder(); + } else { + return agentConfiguration_ == null ? + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } + } + /** + *
+       *///////////////
+       * V1 encodings
+       * 
+ * + * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> + getAgentConfigurationFieldBuilder() { + if (agentConfigurationBuilder_ == null) { + agentConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder>( + getAgentConfiguration(), + getParentForChildren(), + isClean()); + agentConfiguration_ = null; + } + return agentConfigurationBuilder_; + } + + private com.google.protobuf.ByteString encodedDNS_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
+       * 
+ * + * bytes encodedDNS = 14; + * @return The encodedDNS. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedDNS() { + return encodedDNS_; + } + /** + *
+       * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
+       * 
+ * + * bytes encodedDNS = 14; + * @param value The encodedDNS to set. + * @return This builder for chaining. + */ + public Builder setEncodedDNS(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + encodedDNS_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+       * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
+       * 
+ * + * bytes encodedDNS = 14; + * @return This builder for chaining. + */ + public Builder clearEncodedDNS() { + bitField0_ = (bitField0_ & ~0x00800000); + encodedDNS_ = getDefaultInstance().getEncodedDNS(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x01000000) != 0)) { + domains_ = new com.google.protobuf.LazyStringArrayList(domains_); + bitField0_ |= 0x01000000; + } + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList + getDomainsList() { + return domains_.getUnmodifiableView(); + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString + getDomainsBytes(int index) { + return domains_.getByteString(index); + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @param index The index to set the value at. + * @param value The domains to set. + * @return This builder for chaining. + */ + public Builder setDomains( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @param value The domains to add. + * @return This builder for chaining. + */ + public Builder addDomains( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + return this; + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @param values The domains to add. + * @return This builder for chaining. + */ + public Builder addAllDomains( + java.lang.Iterable values) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + return this; + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @return This builder for chaining. + */ + public Builder clearDomains() { + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + /** + *
+       * All queried DNS domains for which we have collected stats
+       * 
+ * + * repeated string domains = 30; + * @param value The bytes of the domains to add. + * @return This builder for chaining. + */ + public Builder addDomainsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       *////////////////
+       * V2 encodings
+       * all domain strings are now indexes into a single array of strings
+       * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
+       * is a single buffer; varint number of strings, followed by each string.
+       * 
+ * + * bytes encodedDomainDatabase = 36; + * @return The encodedDomainDatabase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedDomainDatabase() { + return encodedDomainDatabase_; + } + /** + *
+       *////////////////
+       * V2 encodings
+       * all domain strings are now indexes into a single array of strings
+       * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
+       * is a single buffer; varint number of strings, followed by each string.
+       * 
+ * + * bytes encodedDomainDatabase = 36; + * @param value The encodedDomainDatabase to set. + * @return This builder for chaining. + */ + public Builder setEncodedDomainDatabase(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + encodedDomainDatabase_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+       *////////////////
+       * V2 encodings
+       * all domain strings are now indexes into a single array of strings
+       * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
+       * is a single buffer; varint number of strings, followed by each string.
+       * 
+ * + * bytes encodedDomainDatabase = 36; + * @return This builder for chaining. + */ + public Builder clearEncodedDomainDatabase() { + bitField0_ = (bitField0_ & ~0x02000000); + encodedDomainDatabase_ = getDefaultInstance().getEncodedDomainDatabase(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * new representation of encoded DNS.  This is a map of the string representation
+       * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
+       * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
+       * 
+ * + * bytes encodedDnsLookups = 37; + * @return The encodedDnsLookups. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEncodedDnsLookups() { + return encodedDnsLookups_; + } + /** + *
+       * new representation of encoded DNS.  This is a map of the string representation
+       * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
+       * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
+       * 
+ * + * bytes encodedDnsLookups = 37; + * @param value The encodedDnsLookups to set. + * @return This builder for chaining. + */ + public Builder setEncodedDnsLookups(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + encodedDnsLookups_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+       * new representation of encoded DNS.  This is a map of the string representation
+       * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
+       * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
+       * 
+ * + * bytes encodedDnsLookups = 37; + * @return This builder for chaining. + */ + public Builder clearEncodedDnsLookups() { + bitField0_ = (bitField0_ & ~0x04000000); + encodedDnsLookups_ = getDefaultInstance().getEncodedDnsLookups(); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.Agent.Host> resolvedHostsByName_; + private com.google.protobuf.MapField + internalGetResolvedHostsByName() { + if (resolvedHostsByName_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResolvedHostsByNameDefaultEntryHolder.defaultEntry); + } + return resolvedHostsByName_; + } + private com.google.protobuf.MapField + internalGetMutableResolvedHostsByName() { + if (resolvedHostsByName_ == null) { + resolvedHostsByName_ = com.google.protobuf.MapField.newMapField( + ResolvedHostsByNameDefaultEntryHolder.defaultEntry); + } + if (!resolvedHostsByName_.isMutable()) { + resolvedHostsByName_ = resolvedHostsByName_.copy(); + } + bitField0_ |= 0x08000000; + onChanged(); + return resolvedHostsByName_; + } + public int getResolvedHostsByNameCount() { + return internalGetResolvedHostsByName().getMap().size(); + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public boolean containsResolvedHostsByName( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetResolvedHostsByName().getMap().containsKey(key); + } + /** + * Use {@link #getResolvedHostsByNameMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResolvedHostsByName() { + return getResolvedHostsByNameMap(); + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public java.util.Map getResolvedHostsByNameMap() { + return internalGetResolvedHostsByName().getMap(); + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.Agent.Host getResolvedHostsByNameOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.Agent.Host defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedHostsByName().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + @java.lang.Override + public datadog.process_agent.Agent.Host getResolvedHostsByNameOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResolvedHostsByName().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResolvedHostsByName() { + bitField0_ = (bitField0_ & ~0x08000000); + internalGetMutableResolvedHostsByName().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + public Builder removeResolvedHostsByName( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResolvedHostsByName().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResolvedHostsByName() { + bitField0_ |= 0x08000000; + return internalGetMutableResolvedHostsByName().getMutableMap(); + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + public Builder putResolvedHostsByName( + java.lang.String key, + datadog.process_agent.Agent.Host value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResolvedHostsByName().getMutableMap() + .put(key, value); + bitField0_ |= 0x08000000; + return this; + } + /** + *
+       * Post-resolution field
+       * 
+ * + * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; + */ + public Builder putAllResolvedHostsByName( + java.util.Map values) { + internalGetMutableResolvedHostsByName().getMutableMap() + .putAll(values); + bitField0_ |= 0x08000000; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.CollectorConnections) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.CollectorConnections) + private static final datadog.process_agent.ConnectionsOuterClass.CollectorConnections DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.CollectorConnections(); + } + + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectorConnections parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnections getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConnectionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.Connections) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + java.util.List + getConnsList(); + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + datadog.process_agent.ConnectionsOuterClass.Connection getConns(int index); + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + int getConnsCount(); + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + java.util.List + getConnsOrBuilderList(); + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnsOrBuilder( + int index); + + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + int getDnsCount(); + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + boolean containsDns( + java.lang.String key); + /** + * Use {@link #getDnsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDns(); + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + java.util.Map + getDnsMap(); + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSEntry defaultValue); + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrThrow( + java.lang.String key); + + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + * @return Whether the connTelemetry field is set. + */ + boolean hasConnTelemetry(); + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + * @return The connTelemetry. + */ + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getConnTelemetry(); + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder(); + + /** + * repeated string domains = 4; + * @return A list containing the domains. + */ + java.util.List + getDomainsList(); + /** + * repeated string domains = 4; + * @return The count of domains. + */ + int getDomainsCount(); + /** + * repeated string domains = 4; + * @param index The index of the element to return. + * @return The domains at the given index. + */ + java.lang.String getDomains(int index); + /** + * repeated string domains = 4; + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + com.google.protobuf.ByteString + getDomainsBytes(int index); + + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + java.util.List + getRoutesList(); + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index); + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + int getRoutesCount(); + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + java.util.List + getRoutesOrBuilderList(); + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( + int index); + + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + int getCompilationTelemetryByAssetCount(); + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + boolean containsCompilationTelemetryByAsset( + java.lang.String key); + /** + * Use {@link #getCompilationTelemetryByAssetMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCompilationTelemetryByAsset(); + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + java.util.Map + getCompilationTelemetryByAssetMap(); + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue); + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( + java.lang.String key); + + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + * @return Whether the agentConfiguration field is set. + */ + boolean hasAgentConfiguration(); + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + * @return The agentConfiguration. + */ + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration(); + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder(); + + /** + * repeated string tags = 8; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 8; + * @return The count of tags. + */ + int getTagsCount(); + /** + * repeated string tags = 8; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 8; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * map<string, int64> connTelemetryMap = 9; + */ + int getConnTelemetryMapCount(); + /** + * map<string, int64> connTelemetryMap = 9; + */ + boolean containsConnTelemetryMap( + java.lang.String key); + /** + * Use {@link #getConnTelemetryMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConnTelemetryMap(); + /** + * map<string, int64> connTelemetryMap = 9; + */ + java.util.Map + getConnTelemetryMapMap(); + /** + * map<string, int64> connTelemetryMap = 9; + */ + long getConnTelemetryMapOrDefault( + java.lang.String key, + long defaultValue); + /** + * map<string, int64> connTelemetryMap = 9; + */ + long getConnTelemetryMapOrThrow( + java.lang.String key); + + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + int getKernelHeaderFetchResultValue(); + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return The kernelHeaderFetchResult. + */ + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult(); + + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + int getCORETelemetryByAssetCount(); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + boolean containsCORETelemetryByAsset( + java.lang.String key); + /** + * Use {@link #getCORETelemetryByAssetMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCORETelemetryByAsset(); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + java.util.Map + getCORETelemetryByAssetMap(); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( + java.lang.String key); + /** + * Use {@link #getCORETelemetryByAssetValueMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCORETelemetryByAssetValue(); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + java.util.Map + getCORETelemetryByAssetValueMap(); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + int getCORETelemetryByAssetValueOrDefault( + java.lang.String key, + int defaultValue); + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + int getCORETelemetryByAssetValueOrThrow( + java.lang.String key); + + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return A list containing the prebuiltEBPFAssets. + */ + java.util.List + getPrebuiltEBPFAssetsList(); + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return The count of prebuiltEBPFAssets. + */ + int getPrebuiltEBPFAssetsCount(); + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index of the element to return. + * @return The prebuiltEBPFAssets at the given index. + */ + java.lang.String getPrebuiltEBPFAssets(int index); + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index of the value to return. + * @return The bytes of the prebuiltEBPFAssets at the given index. + */ + com.google.protobuf.ByteString + getPrebuiltEBPFAssetsBytes(int index); + } + /** + * Protobuf type {@code datadog.process_agent.Connections} + */ + public static final class Connections extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.Connections) + ConnectionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Connections.newBuilder() to construct. + private Connections(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Connections() { + conns_ = java.util.Collections.emptyList(); + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + routes_ = java.util.Collections.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + kernelHeaderFetchResult_ = 0; + prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Connections(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetDns(); + case 6: + return internalGetCompilationTelemetryByAsset(); + case 9: + return internalGetConnTelemetryMap(); + case 11: + return internalGetCORETelemetryByAsset(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Connections.class, datadog.process_agent.ConnectionsOuterClass.Connections.Builder.class); + } + + public static final int CONNS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List conns_; + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + @java.lang.Override + public java.util.List getConnsList() { + return conns_; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + @java.lang.Override + public java.util.List + getConnsOrBuilderList() { + return conns_; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + @java.lang.Override + public int getConnsCount() { + return conns_.size(); + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connection getConns(int index) { + return conns_.get(index); + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnsOrBuilder( + int index) { + return conns_.get(index); + } + + public static final int DNS_FIELD_NUMBER = 2; + private static final class DnsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.DNSEntry> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_DnsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.DNSEntry.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.DNSEntry> dns_; + private com.google.protobuf.MapField + internalGetDns() { + if (dns_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsDefaultEntryHolder.defaultEntry); + } + return dns_; + } + public int getDnsCount() { + return internalGetDns().getMap().size(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public boolean containsDns( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetDns().getMap().containsKey(key); + } + /** + * Use {@link #getDnsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDns() { + return getDnsMap(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public java.util.Map getDnsMap() { + return internalGetDns().getMap(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSEntry defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDns().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDns().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CONNTELEMETRY_FIELD_NUMBER = 3; + private datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry connTelemetry_; + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + * @return Whether the connTelemetry field is set. + */ + @java.lang.Override + public boolean hasConnTelemetry() { + return connTelemetry_ != null; + } + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + * @return The connTelemetry. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getConnTelemetry() { + return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } + /** + *
+     * For now, we'll keep emitting telemetry from agents < 7.35
+     * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { + return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } + + public static final int DOMAINS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList domains_; + /** + * repeated string domains = 4; + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList + getDomainsList() { + return domains_; + } + /** + * repeated string domains = 4; + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated string domains = 4; + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + /** + * repeated string domains = 4; + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString + getDomainsBytes(int index) { + return domains_.getByteString(index); + } + + public static final int ROUTES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List routes_; + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + @java.lang.Override + public java.util.List getRoutesList() { + return routes_; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + @java.lang.Override + public java.util.List + getRoutesOrBuilderList() { + return routes_; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + @java.lang.Override + public int getRoutesCount() { + return routes_.size(); + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { + return routes_.get(index); + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( + int index) { + return routes_.get(index); + } + + public static final int COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER = 6; + private static final class CompilationTelemetryByAssetDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCompilationTelemetryByAsset() { + if (compilationTelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return compilationTelemetryByAsset_; + } + public int getCompilationTelemetryByAssetCount() { + return internalGetCompilationTelemetryByAsset().getMap().size(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public boolean containsCompilationTelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCompilationTelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCompilationTelemetryByAsset() { + return getCompilationTelemetryByAssetMap(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public java.util.Map getCompilationTelemetryByAssetMap() { + return internalGetCompilationTelemetryByAsset().getMap(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int AGENTCONFIGURATION_FIELD_NUMBER = 7; + private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + * @return Whether the agentConfiguration field is set. + */ + @java.lang.Override + public boolean hasAgentConfiguration() { + return agentConfiguration_ != null; + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + * @return The agentConfiguration. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { + return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { + return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } + + public static final int TAGS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 8; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 8; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 8; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 8; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int CONNTELEMETRYMAP_FIELD_NUMBER = 9; + private static final class ConnTelemetryMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> connTelemetryMap_; + private com.google.protobuf.MapField + internalGetConnTelemetryMap() { + if (connTelemetryMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnTelemetryMapDefaultEntryHolder.defaultEntry); + } + return connTelemetryMap_; + } + public int getConnTelemetryMapCount() { + return internalGetConnTelemetryMap().getMap().size(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public boolean containsConnTelemetryMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetConnTelemetryMap().getMap().containsKey(key); + } + /** + * Use {@link #getConnTelemetryMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnTelemetryMap() { + return getConnTelemetryMapMap(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public java.util.Map getConnTelemetryMapMap() { + return internalGetConnTelemetryMap().getMap(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public long getConnTelemetryMapOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public long getConnTelemetryMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int KERNELHEADERFETCHRESULT_FIELD_NUMBER = 10; + private int kernelHeaderFetchResult_ = 0; + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + @java.lang.Override public int getKernelHeaderFetchResultValue() { + return kernelHeaderFetchResult_; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return The kernelHeaderFetchResult. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; + } + + public static final int CORETELEMETRYBYASSET_FIELD_NUMBER = 11; + private static final class CORETelemetryByAssetDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Integer> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + datadog.process_agent.ConnectionsOuterClass.COREResult.SuccessCustomBTF.getNumber()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> cORETelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCORETelemetryByAsset() { + if (cORETelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return cORETelemetryByAsset_; + } + private static final + com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.COREResult> cORETelemetryByAssetValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + datadog.process_agent.ConnectionsOuterClass.COREResult.internalGetValueMap(), + datadog.process_agent.ConnectionsOuterClass.COREResult.UNRECOGNIZED); + private static final java.util.Map + internalGetAdaptedCORETelemetryByAssetMap( + java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.COREResult, java.lang.Integer>( + map, cORETelemetryByAssetValueConverter); + } + public int getCORETelemetryByAssetCount() { + return internalGetCORETelemetryByAsset().getMap().size(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public boolean containsCORETelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCORETelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCORETelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAsset() { + return getCORETelemetryByAssetMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetMap() { + return internalGetAdaptedCORETelemetryByAssetMap( + internalGetCORETelemetryByAsset().getMap());} + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) + ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) + : defaultValue; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return cORETelemetryByAssetValueConverter.doForward(map.get(key)); + } + /** + * Use {@link #getCORETelemetryByAssetValueMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAssetValue() { + return getCORETelemetryByAssetValueMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetValueMap() { + return internalGetCORETelemetryByAsset().getMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PREBUILTEBPFASSETS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList prebuiltEBPFAssets_; + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return A list containing the prebuiltEBPFAssets. + */ + public com.google.protobuf.ProtocolStringList + getPrebuiltEBPFAssetsList() { + return prebuiltEBPFAssets_; + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return The count of prebuiltEBPFAssets. + */ + public int getPrebuiltEBPFAssetsCount() { + return prebuiltEBPFAssets_.size(); + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index of the element to return. + * @return The prebuiltEBPFAssets at the given index. + */ + public java.lang.String getPrebuiltEBPFAssets(int index) { + return prebuiltEBPFAssets_.get(index); + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index of the value to return. + * @return The bytes of the prebuiltEBPFAssets at the given index. + */ + public com.google.protobuf.ByteString + getPrebuiltEBPFAssetsBytes(int index) { + return prebuiltEBPFAssets_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conns_.size(); i++) { + output.writeMessage(1, conns_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDns(), + DnsDefaultEntryHolder.defaultEntry, + 2); + if (connTelemetry_ != null) { + output.writeMessage(3, getConnTelemetry()); + } + for (int i = 0; i < domains_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, domains_.getRaw(i)); + } + for (int i = 0; i < routes_.size(); i++) { + output.writeMessage(5, routes_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCompilationTelemetryByAsset(), + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry, + 6); + if (agentConfiguration_ != null) { + output.writeMessage(7, getAgentConfiguration()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConnTelemetryMap(), + ConnTelemetryMapDefaultEntryHolder.defaultEntry, + 9); + if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { + output.writeEnum(10, kernelHeaderFetchResult_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCORETelemetryByAsset(), + CORETelemetryByAssetDefaultEntryHolder.defaultEntry, + 11); + for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, prebuiltEBPFAssets_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conns_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetDns().getMap().entrySet()) { + com.google.protobuf.MapEntry + dns__ = DnsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, dns__); + } + if (connTelemetry_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnTelemetry()); + } + { + int dataSize = 0; + for (int i = 0; i < domains_.size(); i++) { + dataSize += computeStringSizeNoTag(domains_.getRaw(i)); + } + size += dataSize; + size += 1 * getDomainsList().size(); + } + for (int i = 0; i < routes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, routes_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetCompilationTelemetryByAsset().getMap().entrySet()) { + com.google.protobuf.MapEntry + compilationTelemetryByAsset__ = CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, compilationTelemetryByAsset__); + } + if (agentConfiguration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAgentConfiguration()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + for (java.util.Map.Entry entry + : internalGetConnTelemetryMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + connTelemetryMap__ = ConnTelemetryMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, connTelemetryMap__); + } + if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, kernelHeaderFetchResult_); + } + for (java.util.Map.Entry entry + : internalGetCORETelemetryByAsset().getMap().entrySet()) { + com.google.protobuf.MapEntry + cORETelemetryByAsset__ = CORETelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, cORETelemetryByAsset__); + } + { + int dataSize = 0; + for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { + dataSize += computeStringSizeNoTag(prebuiltEBPFAssets_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrebuiltEBPFAssetsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Connections)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.Connections other = (datadog.process_agent.ConnectionsOuterClass.Connections) obj; + + if (!getConnsList() + .equals(other.getConnsList())) return false; + if (!internalGetDns().equals( + other.internalGetDns())) return false; + if (hasConnTelemetry() != other.hasConnTelemetry()) return false; + if (hasConnTelemetry()) { + if (!getConnTelemetry() + .equals(other.getConnTelemetry())) return false; + } + if (!getDomainsList() + .equals(other.getDomainsList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!internalGetCompilationTelemetryByAsset().equals( + other.internalGetCompilationTelemetryByAsset())) return false; + if (hasAgentConfiguration() != other.hasAgentConfiguration()) return false; + if (hasAgentConfiguration()) { + if (!getAgentConfiguration() + .equals(other.getAgentConfiguration())) return false; + } + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!internalGetConnTelemetryMap().equals( + other.internalGetConnTelemetryMap())) return false; + if (kernelHeaderFetchResult_ != other.kernelHeaderFetchResult_) return false; + if (!internalGetCORETelemetryByAsset().equals( + other.internalGetCORETelemetryByAsset())) return false; + if (!getPrebuiltEBPFAssetsList() + .equals(other.getPrebuiltEBPFAssetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConnsCount() > 0) { + hash = (37 * hash) + CONNS_FIELD_NUMBER; + hash = (53 * hash) + getConnsList().hashCode(); + } + if (!internalGetDns().getMap().isEmpty()) { + hash = (37 * hash) + DNS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDns().hashCode(); + } + if (hasConnTelemetry()) { + hash = (37 * hash) + CONNTELEMETRY_FIELD_NUMBER; + hash = (53 * hash) + getConnTelemetry().hashCode(); + } + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + if (getRoutesCount() > 0) { + hash = (37 * hash) + ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getRoutesList().hashCode(); + } + if (!internalGetCompilationTelemetryByAsset().getMap().isEmpty()) { + hash = (37 * hash) + COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER; + hash = (53 * hash) + internalGetCompilationTelemetryByAsset().hashCode(); + } + if (hasAgentConfiguration()) { + hash = (37 * hash) + AGENTCONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getAgentConfiguration().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (!internalGetConnTelemetryMap().getMap().isEmpty()) { + hash = (37 * hash) + CONNTELEMETRYMAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnTelemetryMap().hashCode(); + } + hash = (37 * hash) + KERNELHEADERFETCHRESULT_FIELD_NUMBER; + hash = (53 * hash) + kernelHeaderFetchResult_; + if (!internalGetCORETelemetryByAsset().getMap().isEmpty()) { + hash = (37 * hash) + CORETELEMETRYBYASSET_FIELD_NUMBER; + hash = (53 * hash) + internalGetCORETelemetryByAsset().hashCode(); + } + if (getPrebuiltEBPFAssetsCount() > 0) { + hash = (37 * hash) + PREBUILTEBPFASSETS_FIELD_NUMBER; + hash = (53 * hash) + getPrebuiltEBPFAssetsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Connections prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.Connections} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.Connections) + datadog.process_agent.ConnectionsOuterClass.ConnectionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetDns(); + case 6: + return internalGetCompilationTelemetryByAsset(); + case 9: + return internalGetConnTelemetryMap(); + case 11: + return internalGetCORETelemetryByAsset(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableDns(); + case 6: + return internalGetMutableCompilationTelemetryByAsset(); + case 9: + return internalGetMutableConnTelemetryMap(); + case 11: + return internalGetMutableCORETelemetryByAsset(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Connections.class, datadog.process_agent.ConnectionsOuterClass.Connections.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.Connections.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (connsBuilder_ == null) { + conns_ = java.util.Collections.emptyList(); + } else { + conns_ = null; + connsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableDns().clear(); + connTelemetry_ = null; + if (connTelemetryBuilder_ != null) { + connTelemetryBuilder_.dispose(); + connTelemetryBuilder_ = null; + } + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + } else { + routes_ = null; + routesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableCompilationTelemetryByAsset().clear(); + agentConfiguration_ = null; + if (agentConfigurationBuilder_ != null) { + agentConfigurationBuilder_.dispose(); + agentConfigurationBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableConnTelemetryMap().clear(); + kernelHeaderFetchResult_ = 0; + internalGetMutableCORETelemetryByAsset().clear(); + prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connections getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.Connections.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connections build() { + datadog.process_agent.ConnectionsOuterClass.Connections result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connections buildPartial() { + datadog.process_agent.ConnectionsOuterClass.Connections result = new datadog.process_agent.ConnectionsOuterClass.Connections(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.Connections result) { + if (connsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conns_ = java.util.Collections.unmodifiableList(conns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conns_ = conns_; + } else { + result.conns_ = connsBuilder_.build(); + } + if (((bitField0_ & 0x00000008) != 0)) { + domains_ = domains_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.domains_ = domains_; + if (routesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.routes_ = routes_; + } else { + result.routes_ = routesBuilder_.build(); + } + if (((bitField0_ & 0x00000080) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.tags_ = tags_; + if (((bitField0_ & 0x00000800) != 0)) { + prebuiltEBPFAssets_ = prebuiltEBPFAssets_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.prebuiltEBPFAssets_ = prebuiltEBPFAssets_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Connections result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dns_ = internalGetDns(); + result.dns_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.connTelemetry_ = connTelemetryBuilder_ == null + ? connTelemetry_ + : connTelemetryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.compilationTelemetryByAsset_ = internalGetCompilationTelemetryByAsset(); + result.compilationTelemetryByAsset_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentConfiguration_ = agentConfigurationBuilder_ == null + ? agentConfiguration_ + : agentConfigurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.connTelemetryMap_ = internalGetConnTelemetryMap(); + result.connTelemetryMap_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.kernelHeaderFetchResult_ = kernelHeaderFetchResult_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.cORETelemetryByAsset_ = internalGetCORETelemetryByAsset(); + result.cORETelemetryByAsset_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.Connections) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Connections)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Connections other) { + if (other == datadog.process_agent.ConnectionsOuterClass.Connections.getDefaultInstance()) return this; + if (connsBuilder_ == null) { + if (!other.conns_.isEmpty()) { + if (conns_.isEmpty()) { + conns_ = other.conns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConnsIsMutable(); + conns_.addAll(other.conns_); + } + onChanged(); + } + } else { + if (!other.conns_.isEmpty()) { + if (connsBuilder_.isEmpty()) { + connsBuilder_.dispose(); + connsBuilder_ = null; + conns_ = other.conns_; + bitField0_ = (bitField0_ & ~0x00000001); + connsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnsFieldBuilder() : null; + } else { + connsBuilder_.addAllMessages(other.conns_); + } + } + } + internalGetMutableDns().mergeFrom( + other.internalGetDns()); + bitField0_ |= 0x00000002; + if (other.hasConnTelemetry()) { + mergeConnTelemetry(other.getConnTelemetry()); + } + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + if (routesBuilder_ == null) { + if (!other.routes_.isEmpty()) { + if (routes_.isEmpty()) { + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureRoutesIsMutable(); + routes_.addAll(other.routes_); + } + onChanged(); + } + } else { + if (!other.routes_.isEmpty()) { + if (routesBuilder_.isEmpty()) { + routesBuilder_.dispose(); + routesBuilder_ = null; + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000010); + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; + } else { + routesBuilder_.addAllMessages(other.routes_); + } + } + } + internalGetMutableCompilationTelemetryByAsset().mergeFrom( + other.internalGetCompilationTelemetryByAsset()); + bitField0_ |= 0x00000020; + if (other.hasAgentConfiguration()) { + mergeAgentConfiguration(other.getAgentConfiguration()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + internalGetMutableConnTelemetryMap().mergeFrom( + other.internalGetConnTelemetryMap()); + bitField0_ |= 0x00000100; + if (other.kernelHeaderFetchResult_ != 0) { + setKernelHeaderFetchResultValue(other.getKernelHeaderFetchResultValue()); + } + internalGetMutableCORETelemetryByAsset().mergeFrom( + other.internalGetCORETelemetryByAsset()); + bitField0_ |= 0x00000400; + if (!other.prebuiltEBPFAssets_.isEmpty()) { + if (prebuiltEBPFAssets_.isEmpty()) { + prebuiltEBPFAssets_ = other.prebuiltEBPFAssets_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.addAll(other.prebuiltEBPFAssets_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datadog.process_agent.ConnectionsOuterClass.Connection m = + input.readMessage( + datadog.process_agent.ConnectionsOuterClass.Connection.parser(), + extensionRegistry); + if (connsBuilder_ == null) { + ensureConnsIsMutable(); + conns_.add(m); + } else { + connsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.protobuf.MapEntry + dns__ = input.readMessage( + DnsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDns().getMutableMap().put( + dns__.getKey(), dns__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConnTelemetryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDomainsIsMutable(); + domains_.add(s); + break; + } // case 34 + case 42: { + datadog.process_agent.ConnectionsOuterClass.Route m = + input.readMessage( + datadog.process_agent.ConnectionsOuterClass.Route.parser(), + extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + compilationTelemetryByAsset__ = input.readMessage( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCompilationTelemetryByAsset().getMutableMap().put( + compilationTelemetryByAsset__.getKey(), compilationTelemetryByAsset__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getAgentConfigurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 66 + case 74: { + com.google.protobuf.MapEntry + connTelemetryMap__ = input.readMessage( + ConnTelemetryMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableConnTelemetryMap().getMutableMap().put( + connTelemetryMap__.getKey(), connTelemetryMap__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + kernelHeaderFetchResult_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + com.google.protobuf.MapEntry + cORETelemetryByAsset__ = input.readMessage( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCORETelemetryByAsset().getMutableMap().put( + cORETelemetryByAsset__.getKey(), cORETelemetryByAsset__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.add(s); + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List conns_ = + java.util.Collections.emptyList(); + private void ensureConnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conns_ = new java.util.ArrayList(conns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> connsBuilder_; + + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public java.util.List getConnsList() { + if (connsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conns_); + } else { + return connsBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public int getConnsCount() { + if (connsBuilder_ == null) { + return conns_.size(); + } else { + return connsBuilder_.getCount(); + } + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection getConns(int index) { + if (connsBuilder_ == null) { + return conns_.get(index); + } else { + return connsBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder setConns( + int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { + if (connsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnsIsMutable(); + conns_.set(index, value); + onChanged(); + } else { + connsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder setConns( + int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { + if (connsBuilder_ == null) { + ensureConnsIsMutable(); + conns_.set(index, builderForValue.build()); + onChanged(); + } else { + connsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder addConns(datadog.process_agent.ConnectionsOuterClass.Connection value) { + if (connsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnsIsMutable(); + conns_.add(value); + onChanged(); + } else { + connsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder addConns( + int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { + if (connsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnsIsMutable(); + conns_.add(index, value); + onChanged(); + } else { + connsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder addConns( + datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { + if (connsBuilder_ == null) { + ensureConnsIsMutable(); + conns_.add(builderForValue.build()); + onChanged(); + } else { + connsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder addConns( + int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { + if (connsBuilder_ == null) { + ensureConnsIsMutable(); + conns_.add(index, builderForValue.build()); + onChanged(); + } else { + connsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder addAllConns( + java.lang.Iterable values) { + if (connsBuilder_ == null) { + ensureConnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conns_); + onChanged(); + } else { + connsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder clearConns() { + if (connsBuilder_ == null) { + conns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + connsBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public Builder removeConns(int index) { + if (connsBuilder_ == null) { + ensureConnsIsMutable(); + conns_.remove(index); + onChanged(); + } else { + connsBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection.Builder getConnsBuilder( + int index) { + return getConnsFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnsOrBuilder( + int index) { + if (connsBuilder_ == null) { + return conns_.get(index); } else { + return connsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public java.util.List + getConnsOrBuilderList() { + if (connsBuilder_ != null) { + return connsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conns_); + } + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnsBuilder() { + return getConnsFieldBuilder().addBuilder( + datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnsBuilder( + int index) { + return getConnsFieldBuilder().addBuilder( + index, datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Connection conns = 1; + */ + public java.util.List + getConnsBuilderList() { + return getConnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> + getConnsFieldBuilder() { + if (connsBuilder_ == null) { + connsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder>( + conns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conns_ = null; + } + return connsBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.DNSEntry> dns_; + private com.google.protobuf.MapField + internalGetDns() { + if (dns_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsDefaultEntryHolder.defaultEntry); + } + return dns_; + } + private com.google.protobuf.MapField + internalGetMutableDns() { + if (dns_ == null) { + dns_ = com.google.protobuf.MapField.newMapField( + DnsDefaultEntryHolder.defaultEntry); + } + if (!dns_.isMutable()) { + dns_ = dns_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return dns_; + } + public int getDnsCount() { + return internalGetDns().getMap().size(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public boolean containsDns( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetDns().getMap().containsKey(key); + } + /** + * Use {@link #getDnsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDns() { + return getDnsMap(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public java.util.Map getDnsMap() { + return internalGetDns().getMap(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSEntry defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDns().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDns().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDns() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableDns().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + public Builder removeDns( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableDns().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDns() { + bitField0_ |= 0x00000002; + return internalGetMutableDns().getMutableMap(); + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + public Builder putDns( + java.lang.String key, + datadog.process_agent.ConnectionsOuterClass.DNSEntry value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDns().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * map<string, .datadog.process_agent.DNSEntry> dns = 2; + */ + public Builder putAllDns( + java.util.Map values) { + internalGetMutableDns().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry connTelemetry_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder> connTelemetryBuilder_; + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + * @return Whether the connTelemetry field is set. + */ + public boolean hasConnTelemetry() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + * @return The connTelemetry. + */ + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getConnTelemetry() { + if (connTelemetryBuilder_ == null) { + return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } else { + return connTelemetryBuilder_.getMessage(); + } + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + public Builder setConnTelemetry(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry value) { + if (connTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connTelemetry_ = value; + } else { + connTelemetryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + public Builder setConnTelemetry( + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder builderForValue) { + if (connTelemetryBuilder_ == null) { + connTelemetry_ = builderForValue.build(); + } else { + connTelemetryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + public Builder mergeConnTelemetry(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry value) { + if (connTelemetryBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + connTelemetry_ != null && + connTelemetry_ != datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance()) { + getConnTelemetryBuilder().mergeFrom(value); + } else { + connTelemetry_ = value; + } + } else { + connTelemetryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + public Builder clearConnTelemetry() { + bitField0_ = (bitField0_ & ~0x00000004); + connTelemetry_ = null; + if (connTelemetryBuilder_ != null) { + connTelemetryBuilder_.dispose(); + connTelemetryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder getConnTelemetryBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConnTelemetryFieldBuilder().getBuilder(); + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { + if (connTelemetryBuilder_ != null) { + return connTelemetryBuilder_.getMessageOrBuilder(); + } else { + return connTelemetry_ == null ? + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; + } + } + /** + *
+       * For now, we'll keep emitting telemetry from agents < 7.35
+       * 
+ * + * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder> + getConnTelemetryFieldBuilder() { + if (connTelemetryBuilder_ == null) { + connTelemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder>( + getConnTelemetry(), + getParentForChildren(), + isClean()); + connTelemetry_ = null; + } + return connTelemetryBuilder_; + } + + private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + domains_ = new com.google.protobuf.LazyStringArrayList(domains_); + bitField0_ |= 0x00000008; + } + } + /** + * repeated string domains = 4; + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList + getDomainsList() { + return domains_.getUnmodifiableView(); + } + /** + * repeated string domains = 4; + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated string domains = 4; + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + /** + * repeated string domains = 4; + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString + getDomainsBytes(int index) { + return domains_.getByteString(index); + } + /** + * repeated string domains = 4; + * @param index The index to set the value at. + * @param value The domains to set. + * @return This builder for chaining. + */ + public Builder setDomains( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string domains = 4; + * @param value The domains to add. + * @return This builder for chaining. + */ + public Builder addDomains( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + return this; + } + /** + * repeated string domains = 4; + * @param values The domains to add. + * @return This builder for chaining. + */ + public Builder addAllDomains( + java.lang.Iterable values) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + return this; + } + /** + * repeated string domains = 4; + * @return This builder for chaining. + */ + public Builder clearDomains() { + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * repeated string domains = 4; + * @param value The bytes of the domains to add. + * @return This builder for chaining. + */ + public Builder addDomainsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + return this; + } + + private java.util.List routes_ = + java.util.Collections.emptyList(); + private void ensureRoutesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + routes_ = new java.util.ArrayList(routes_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> routesBuilder_; + + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public java.util.List getRoutesList() { + if (routesBuilder_ == null) { + return java.util.Collections.unmodifiableList(routes_); + } else { + return routesBuilder_.getMessageList(); + } + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public int getRoutesCount() { + if (routesBuilder_ == null) { + return routes_.size(); + } else { + return routesBuilder_.getCount(); + } + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { + if (routesBuilder_ == null) { + return routes_.get(index); + } else { + return routesBuilder_.getMessage(index); + } + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder setRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.set(index, value); + onChanged(); + } else { + routesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder setRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.set(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder addRoutes(datadog.process_agent.ConnectionsOuterClass.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(value); + onChanged(); + } else { + routesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder addRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(index, value); + onChanged(); + } else { + routesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder addRoutes( + datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder addRoutes( + int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder addAllRoutes( + java.lang.Iterable values) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); + onChanged(); + } else { + routesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder clearRoutes() { + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + routesBuilder_.clear(); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public Builder removeRoutes(int index) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.remove(index); + onChanged(); + } else { + routesBuilder_.remove(index); + } + return this; + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.Route.Builder getRoutesBuilder( + int index) { + return getRoutesFieldBuilder().getBuilder(index); + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( + int index) { + if (routesBuilder_ == null) { + return routes_.get(index); } else { + return routesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public java.util.List + getRoutesOrBuilderList() { + if (routesBuilder_ != null) { + return routesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routes_); + } + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder() { + return getRoutesFieldBuilder().addBuilder( + datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); + } + /** + * repeated .datadog.process_agent.Route routes = 5; + */ + public java.util.List + getRoutesBuilderList() { + return getRoutesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> + getRoutesFieldBuilder() { + if (routesBuilder_ == null) { + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder>( + routes_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + routes_ = null; + } + return routesBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCompilationTelemetryByAsset() { + if (compilationTelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return compilationTelemetryByAsset_; + } + private com.google.protobuf.MapField + internalGetMutableCompilationTelemetryByAsset() { + if (compilationTelemetryByAsset_ == null) { + compilationTelemetryByAsset_ = com.google.protobuf.MapField.newMapField( + CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); + } + if (!compilationTelemetryByAsset_.isMutable()) { + compilationTelemetryByAsset_ = compilationTelemetryByAsset_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return compilationTelemetryByAsset_; + } + public int getCompilationTelemetryByAssetCount() { + return internalGetCompilationTelemetryByAsset().getMap().size(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public boolean containsCompilationTelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCompilationTelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCompilationTelemetryByAsset() { + return getCompilationTelemetryByAssetMap(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public java.util.Map getCompilationTelemetryByAssetMap() { + return internalGetCompilationTelemetryByAsset().getMap(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCompilationTelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCompilationTelemetryByAsset() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + public Builder removeCompilationTelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCompilationTelemetryByAsset() { + bitField0_ |= 0x00000020; + return internalGetMutableCompilationTelemetryByAsset().getMutableMap(); + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + public Builder putCompilationTelemetryByAsset( + java.lang.String key, + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; + */ + public Builder putAllCompilationTelemetryByAsset( + java.util.Map values) { + internalGetMutableCompilationTelemetryByAsset().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> agentConfigurationBuilder_; + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + * @return Whether the agentConfiguration field is set. + */ + public boolean hasAgentConfiguration() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + * @return The agentConfiguration. + */ + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { + if (agentConfigurationBuilder_ == null) { + return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } else { + return agentConfigurationBuilder_.getMessage(); + } + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + public Builder setAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { + if (agentConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentConfiguration_ = value; + } else { + agentConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + public Builder setAgentConfiguration( + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder builderForValue) { + if (agentConfigurationBuilder_ == null) { + agentConfiguration_ = builderForValue.build(); + } else { + agentConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + public Builder mergeAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { + if (agentConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + agentConfiguration_ != null && + agentConfiguration_ != datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance()) { + getAgentConfigurationBuilder().mergeFrom(value); + } else { + agentConfiguration_ = value; + } + } else { + agentConfigurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + public Builder clearAgentConfiguration() { + bitField0_ = (bitField0_ & ~0x00000040); + agentConfiguration_ = null; + if (agentConfigurationBuilder_ != null) { + agentConfigurationBuilder_.dispose(); + agentConfigurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder getAgentConfigurationBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getAgentConfigurationFieldBuilder().getBuilder(); + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { + if (agentConfigurationBuilder_ != null) { + return agentConfigurationBuilder_.getMessageOrBuilder(); + } else { + return agentConfiguration_ == null ? + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; + } + } + /** + * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> + getAgentConfigurationFieldBuilder() { + if (agentConfigurationBuilder_ == null) { + agentConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder>( + getAgentConfiguration(), + getParentForChildren(), + isClean()); + agentConfiguration_ = null; + } + return agentConfigurationBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000080; + } + } + /** + * repeated string tags = 8; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 8; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 8; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 8; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 8; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 8; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 8; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 8; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * repeated string tags = 8; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> connTelemetryMap_; + private com.google.protobuf.MapField + internalGetConnTelemetryMap() { + if (connTelemetryMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnTelemetryMapDefaultEntryHolder.defaultEntry); + } + return connTelemetryMap_; + } + private com.google.protobuf.MapField + internalGetMutableConnTelemetryMap() { + if (connTelemetryMap_ == null) { + connTelemetryMap_ = com.google.protobuf.MapField.newMapField( + ConnTelemetryMapDefaultEntryHolder.defaultEntry); + } + if (!connTelemetryMap_.isMutable()) { + connTelemetryMap_ = connTelemetryMap_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return connTelemetryMap_; + } + public int getConnTelemetryMapCount() { + return internalGetConnTelemetryMap().getMap().size(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public boolean containsConnTelemetryMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetConnTelemetryMap().getMap().containsKey(key); + } + /** + * Use {@link #getConnTelemetryMapMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnTelemetryMap() { + return getConnTelemetryMapMap(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public java.util.Map getConnTelemetryMapMap() { + return internalGetConnTelemetryMap().getMap(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public long getConnTelemetryMapOrDefault( + java.lang.String key, + long defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + @java.lang.Override + public long getConnTelemetryMapOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetConnTelemetryMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearConnTelemetryMap() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableConnTelemetryMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + public Builder removeConnTelemetryMap( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableConnTelemetryMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableConnTelemetryMap() { + bitField0_ |= 0x00000100; + return internalGetMutableConnTelemetryMap().getMutableMap(); + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + public Builder putConnTelemetryMap( + java.lang.String key, + long value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableConnTelemetryMap().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000100; + return this; + } + /** + * map<string, int64> connTelemetryMap = 9; + */ + public Builder putAllConnTelemetryMap( + java.util.Map values) { + internalGetMutableConnTelemetryMap().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + private int kernelHeaderFetchResult_ = 0; + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + @java.lang.Override public int getKernelHeaderFetchResultValue() { + return kernelHeaderFetchResult_; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @param value The enum numeric value on the wire for kernelHeaderFetchResult to set. + * @return This builder for chaining. + */ + public Builder setKernelHeaderFetchResultValue(int value) { + kernelHeaderFetchResult_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return The kernelHeaderFetchResult. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @param value The kernelHeaderFetchResult to set. + * @return This builder for chaining. + */ + public Builder setKernelHeaderFetchResult(datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + kernelHeaderFetchResult_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; + * @return This builder for chaining. + */ + public Builder clearKernelHeaderFetchResult() { + bitField0_ = (bitField0_ & ~0x00000200); + kernelHeaderFetchResult_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> cORETelemetryByAsset_; + private com.google.protobuf.MapField + internalGetCORETelemetryByAsset() { + if (cORETelemetryByAsset_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry); + } + return cORETelemetryByAsset_; + } + private com.google.protobuf.MapField + internalGetMutableCORETelemetryByAsset() { + if (cORETelemetryByAsset_ == null) { + cORETelemetryByAsset_ = com.google.protobuf.MapField.newMapField( + CORETelemetryByAssetDefaultEntryHolder.defaultEntry); + } + if (!cORETelemetryByAsset_.isMutable()) { + cORETelemetryByAsset_ = cORETelemetryByAsset_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return cORETelemetryByAsset_; + } + public int getCORETelemetryByAssetCount() { + return internalGetCORETelemetryByAsset().getMap().size(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public boolean containsCORETelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetCORETelemetryByAsset().getMap().containsKey(key); + } + /** + * Use {@link #getCORETelemetryByAssetMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAsset() { + return getCORETelemetryByAssetMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetMap() { + return internalGetAdaptedCORETelemetryByAssetMap( + internalGetCORETelemetryByAsset().getMap());} + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( + java.lang.String key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) + ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) + : defaultValue; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return cORETelemetryByAssetValueConverter.doForward(map.get(key)); + } + /** + * Use {@link #getCORETelemetryByAssetValueMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getCORETelemetryByAssetValue() { + return getCORETelemetryByAssetValueMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public java.util.Map + getCORETelemetryByAssetValueMap() { + return internalGetCORETelemetryByAsset().getMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + @java.lang.Override + public int getCORETelemetryByAssetValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCORETelemetryByAsset().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearCORETelemetryByAsset() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableCORETelemetryByAsset().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + public Builder removeCORETelemetryByAsset( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCORETelemetryByAsset().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCORETelemetryByAsset() { + bitField0_ |= 0x00000400; + return internalGetAdaptedCORETelemetryByAssetMap( + internalGetMutableCORETelemetryByAsset().getMutableMap()); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + public Builder putCORETelemetryByAsset( + java.lang.String key, + datadog.process_agent.ConnectionsOuterClass.COREResult value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableCORETelemetryByAsset().getMutableMap() + .put(key, cORETelemetryByAssetValueConverter.doBackward(value)); + bitField0_ |= 0x00000400; + return this; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + public Builder putAllCORETelemetryByAsset( + java.util.Map values) { + internalGetAdaptedCORETelemetryByAssetMap( + internalGetMutableCORETelemetryByAsset().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00000400; + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCORETelemetryByAssetValue() { + bitField0_ |= 0x00000400; + return internalGetMutableCORETelemetryByAsset().getMutableMap(); + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + public Builder putCORETelemetryByAssetValue( + java.lang.String key, + int value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableCORETelemetryByAsset().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000400; + return this; + } + /** + * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; + */ + public Builder putAllCORETelemetryByAssetValue( + java.util.Map values) { + internalGetMutableCORETelemetryByAsset().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000400; + return this; + } + + private com.google.protobuf.LazyStringList prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePrebuiltEBPFAssetsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + prebuiltEBPFAssets_ = new com.google.protobuf.LazyStringArrayList(prebuiltEBPFAssets_); + bitField0_ |= 0x00000800; + } + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return A list containing the prebuiltEBPFAssets. + */ + public com.google.protobuf.ProtocolStringList + getPrebuiltEBPFAssetsList() { + return prebuiltEBPFAssets_.getUnmodifiableView(); + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return The count of prebuiltEBPFAssets. + */ + public int getPrebuiltEBPFAssetsCount() { + return prebuiltEBPFAssets_.size(); + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index of the element to return. + * @return The prebuiltEBPFAssets at the given index. + */ + public java.lang.String getPrebuiltEBPFAssets(int index) { + return prebuiltEBPFAssets_.get(index); + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index of the value to return. + * @return The bytes of the prebuiltEBPFAssets at the given index. + */ + public com.google.protobuf.ByteString + getPrebuiltEBPFAssetsBytes(int index) { + return prebuiltEBPFAssets_.getByteString(index); + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param index The index to set the value at. + * @param value The prebuiltEBPFAssets to set. + * @return This builder for chaining. + */ + public Builder setPrebuiltEBPFAssets( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param value The prebuiltEBPFAssets to add. + * @return This builder for chaining. + */ + public Builder addPrebuiltEBPFAssets( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.add(value); + onChanged(); + return this; + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param values The prebuiltEBPFAssets to add. + * @return This builder for chaining. + */ + public Builder addAllPrebuiltEBPFAssets( + java.lang.Iterable values) { + ensurePrebuiltEBPFAssetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prebuiltEBPFAssets_); + onChanged(); + return this; + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @return This builder for chaining. + */ + public Builder clearPrebuiltEBPFAssets() { + prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * repeated string PrebuiltEBPFAssets = 12; + * @param value The bytes of the prebuiltEBPFAssets to add. + * @return This builder for chaining. + */ + public Builder addPrebuiltEBPFAssetsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePrebuiltEBPFAssetsIsMutable(); + prebuiltEBPFAssets_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.Connections) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.Connections) + private static final datadog.process_agent.ConnectionsOuterClass.Connections DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Connections(); + } + + public static datadog.process_agent.ConnectionsOuterClass.Connections getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connections parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connections getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConnectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.Connection) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 pid = 1; + * @return The pid. + */ + int getPid(); + + /** + *
+     * Local address
+     * 
+ * + * .datadog.process_agent.Addr laddr = 5; + * @return Whether the laddr field is set. + */ + boolean hasLaddr(); + /** + *
+     * Local address
+     * 
+ * + * .datadog.process_agent.Addr laddr = 5; + * @return The laddr. + */ + datadog.process_agent.ConnectionsOuterClass.Addr getLaddr(); + /** + *
+     * Local address
+     * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getLaddrOrBuilder(); + + /** + *
+     * Remote address
+     * 
+ * + * .datadog.process_agent.Addr raddr = 6; + * @return Whether the raddr field is set. + */ + boolean hasRaddr(); + /** + *
+     * Remote address
+     * 
+ * + * .datadog.process_agent.Addr raddr = 6; + * @return The raddr. + */ + datadog.process_agent.ConnectionsOuterClass.Addr getRaddr(); + /** + *
+     * Remote address
+     * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getRaddrOrBuilder(); + + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return The enum numeric value on the wire for family. + */ + int getFamilyValue(); + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return The family. + */ + datadog.process_agent.ConnectionsOuterClass.ConnectionFamily getFamily(); + + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return The type. + */ + datadog.process_agent.Agent.ConnectionType getType(); + + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return The enum numeric value on the wire for isLocalPortEphemeral. + */ + int getIsLocalPortEphemeralValue(); + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return The isLocalPortEphemeral. + */ + datadog.process_agent.ConnectionsOuterClass.EphemeralPortState getIsLocalPortEphemeral(); + + /** + *
+     * Relative counters since last check
+     * 
+ * + * uint64 lastBytesSent = 16; + * @return The lastBytesSent. + */ + long getLastBytesSent(); + + /** + * uint64 lastBytesReceived = 17; + * @return The lastBytesReceived. + */ + long getLastBytesReceived(); + + /** + * uint32 lastRetransmits = 18; + * @return The lastRetransmits. + */ + int getLastRetransmits(); + + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return The enum numeric value on the wire for direction. + */ + int getDirectionValue(); + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return The direction. + */ + datadog.process_agent.ConnectionsOuterClass.ConnectionDirection getDirection(); + + /** + * uint64 lastPacketsSent = 38; + * @return The lastPacketsSent. + */ + long getLastPacketsSent(); + + /** + * uint64 lastPacketsReceived = 39; + * @return The lastPacketsReceived. + */ + long getLastPacketsReceived(); + + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + * @return Whether the protocol field is set. + */ + boolean hasProtocol(); + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + * @return The protocol. + */ + datadog.process_agent.ConnectionsOuterClass.ProtocolStack getProtocol(); + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder getProtocolOrBuilder(); + + /** + *
+     * Network namespace
+     * 
+ * + * uint32 netNS = 20; + * @return The netNS. + */ + int getNetNS(); + + /** + *
+     * NetworkID of the remote address (post-resolution field)
+     * 
+ * + * string remoteNetworkId = 32; + * @return The remoteNetworkId. + */ + java.lang.String getRemoteNetworkId(); + /** + *
+     * NetworkID of the remote address (post-resolution field)
+     * 
+ * + * string remoteNetworkId = 32; + * @return The bytes for remoteNetworkId. + */ + com.google.protobuf.ByteString + getRemoteNetworkIdBytes(); + + /** + *
+     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+     * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + * @return Whether the ipTranslation field is set. + */ + boolean hasIpTranslation(); + /** + *
+     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+     * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + * @return The ipTranslation. + */ + datadog.process_agent.ConnectionsOuterClass.IPTranslation getIpTranslation(); + /** + *
+     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+     * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder getIpTranslationOrBuilder(); + + /** + *
+     * TCP-specific metrics
+     * 
+ * + * uint32 rtt = 22; + * @return The rtt. + */ + int getRtt(); + + /** + * uint32 rttVar = 23; + * @return The rttVar. + */ + int getRttVar(); + + /** + *
+     * Indicates that this connection begins and ends on the same host
+     * 
+ * + * bool intraHost = 24; + * @return The intraHost. + */ + boolean getIntraHost(); + + /** + *
+     * DNS-specific metrics
+     * 
+ * + * uint32 dnsSuccessfulResponses = 25; + * @return The dnsSuccessfulResponses. + */ + int getDnsSuccessfulResponses(); + + /** + * uint32 dnsFailedResponses = 26; + * @return The dnsFailedResponses. + */ + int getDnsFailedResponses(); + + /** + * uint32 dnsTimeouts = 27; + * @return The dnsTimeouts. + */ + int getDnsTimeouts(); + + /** + * uint64 dnsSuccessLatencySum = 28; + * @return The dnsSuccessLatencySum. + */ + long getDnsSuccessLatencySum(); + + /** + * uint64 dnsFailureLatencySum = 29; + * @return The dnsFailureLatencySum. + */ + long getDnsFailureLatencySum(); + + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + int getDnsCountByRcodeCount(); + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + boolean containsDnsCountByRcode( + int key); + /** + * Use {@link #getDnsCountByRcodeMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDnsCountByRcode(); + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + java.util.Map + getDnsCountByRcodeMap(); + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + int getDnsCountByRcodeOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + int getDnsCountByRcodeOrThrow( + int key); + + /** + *
+     * TCP state transition counters relative to last check
+     * 
+ * + * uint32 lastTcpEstablished = 30; + * @return The lastTcpEstablished. + */ + int getLastTcpEstablished(); + + /** + * uint32 lastTcpClosed = 31; + * @return The lastTcpClosed. + */ + int getLastTcpClosed(); + + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + int getDnsStatsByDomainCount(); + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + boolean containsDnsStatsByDomain( + int key); + /** + * Use {@link #getDnsStatsByDomainMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDnsStatsByDomain(); + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + java.util.Map + getDnsStatsByDomainMap(); + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue); + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrThrow( + int key); + + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + int getDnsStatsByDomainByQueryTypeCount(); + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + boolean containsDnsStatsByDomainByQueryType( + int key); + /** + * Use {@link #getDnsStatsByDomainByQueryTypeMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDnsStatsByDomainByQueryType(); + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + java.util.Map + getDnsStatsByDomainByQueryTypeMap(); + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue); + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrThrow( + int key); + + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + int getDnsStatsByDomainOffsetByQueryTypeCount(); + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + boolean containsDnsStatsByDomainOffsetByQueryType( + int key); + /** + * Use {@link #getDnsStatsByDomainOffsetByQueryTypeMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDnsStatsByDomainOffsetByQueryType(); + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + java.util.Map + getDnsStatsByDomainOffsetByQueryTypeMap(); + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue); + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrThrow( + int key); + + /** + * int32 routeIdx = 36; + * @return The routeIdx. + */ + int getRouteIdx(); + + /** + *
+     * the index of the resolved target of the route (post-resolution field)
+     * 
+ * + * int32 routeTargetIdx = 40; + * @return The routeTargetIdx. + */ + int getRouteTargetIdx(); + + /** + *
+     * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
+     * 
+ * + * bytes httpAggregations = 37; + * @return The httpAggregations. + */ + com.google.protobuf.ByteString getHttpAggregations(); + + /** + *
+     * The stored values corresponds to an index into the `Connections.tags` field
+     * 
+ * + * repeated uint32 tags = 44; + * @return A list containing the tags. + */ + java.util.List getTagsList(); + /** + *
+     * The stored values corresponds to an index into the `Connections.tags` field
+     * 
+ * + * repeated uint32 tags = 44; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+     * The stored values corresponds to an index into the `Connections.tags` field
+     * 
+ * + * repeated uint32 tags = 44; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + int getTags(int index); + + /** + *
+     * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
+     * 
+ * + * int32 tagsIdx = 45; + * @return The tagsIdx. + */ + int getTagsIdx(); + + /** + *
+     * 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.
+     * 
+ * + * uint32 tagsChecksum = 47; + * @return The tagsChecksum. + */ + int getTagsChecksum(); + + /** + *
+     * Used for offset state management (backend)
+     * 
+ * + * uint32 stateIndex = 46; + * @return The stateIndex. + */ + int getStateIndex(); + + /** + *
+     * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
+     * 
+ * + * bytes dataStreamsAggregations = 49; + * @return The dataStreamsAggregations. + */ + com.google.protobuf.ByteString getDataStreamsAggregations(); + + /** + *
+     * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
+     * 
+ * + * bytes http2Aggregations = 50; + * @return The http2Aggregations. + */ + com.google.protobuf.ByteString getHttp2Aggregations(); + } + /** + * Protobuf type {@code datadog.process_agent.Connection} + */ + public static final class Connection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.Connection) + ConnectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Connection.newBuilder() to construct. + private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Connection() { + family_ = 0; + type_ = 0; + isLocalPortEphemeral_ = 0; + direction_ = 0; + remoteNetworkId_ = ""; + httpAggregations_ = com.google.protobuf.ByteString.EMPTY; + tags_ = emptyIntList(); + dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; + http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Connection(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 33: + return internalGetDnsCountByRcode(); + case 34: + return internalGetDnsStatsByDomain(); + case 42: + return internalGetDnsStatsByDomainByQueryType(); + case 43: + return internalGetDnsStatsByDomainOffsetByQueryType(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Connection.class, datadog.process_agent.ConnectionsOuterClass.Connection.Builder.class); + } + + public static final int PID_FIELD_NUMBER = 1; + private int pid_ = 0; + /** + * int32 pid = 1; + * @return The pid. + */ + @java.lang.Override + public int getPid() { + return pid_; + } + + public static final int LADDR_FIELD_NUMBER = 5; + private datadog.process_agent.ConnectionsOuterClass.Addr laddr_; + /** + *
+     * Local address
+     * 
+ * + * .datadog.process_agent.Addr laddr = 5; + * @return Whether the laddr field is set. + */ + @java.lang.Override + public boolean hasLaddr() { + return laddr_ != null; + } + /** + *
+     * Local address
+     * 
+ * + * .datadog.process_agent.Addr laddr = 5; + * @return The laddr. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Addr getLaddr() { + return laddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; + } + /** + *
+     * Local address
+     * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getLaddrOrBuilder() { + return laddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; + } + + public static final int RADDR_FIELD_NUMBER = 6; + private datadog.process_agent.ConnectionsOuterClass.Addr raddr_; + /** + *
+     * Remote address
+     * 
+ * + * .datadog.process_agent.Addr raddr = 6; + * @return Whether the raddr field is set. + */ + @java.lang.Override + public boolean hasRaddr() { + return raddr_ != null; + } + /** + *
+     * Remote address
+     * 
+ * + * .datadog.process_agent.Addr raddr = 6; + * @return The raddr. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Addr getRaddr() { + return raddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; + } + /** + *
+     * Remote address
+     * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getRaddrOrBuilder() { + return raddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; + } + + public static final int FAMILY_FIELD_NUMBER = 10; + private int family_ = 0; + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return The enum numeric value on the wire for family. + */ + @java.lang.Override public int getFamilyValue() { + return family_; + } + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return The family. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.ConnectionFamily getFamily() { + datadog.process_agent.ConnectionsOuterClass.ConnectionFamily result = datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.forNumber(family_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.UNRECOGNIZED : result; + } + + public static final int TYPE_FIELD_NUMBER = 11; + private int type_ = 0; + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return The type. + */ + @java.lang.Override public datadog.process_agent.Agent.ConnectionType getType() { + datadog.process_agent.Agent.ConnectionType result = datadog.process_agent.Agent.ConnectionType.forNumber(type_); + return result == null ? datadog.process_agent.Agent.ConnectionType.UNRECOGNIZED : result; + } + + public static final int ISLOCALPORTEPHEMERAL_FIELD_NUMBER = 41; + private int isLocalPortEphemeral_ = 0; + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return The enum numeric value on the wire for isLocalPortEphemeral. + */ + @java.lang.Override public int getIsLocalPortEphemeralValue() { + return isLocalPortEphemeral_; + } + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return The isLocalPortEphemeral. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.EphemeralPortState getIsLocalPortEphemeral() { + datadog.process_agent.ConnectionsOuterClass.EphemeralPortState result = datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.forNumber(isLocalPortEphemeral_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.UNRECOGNIZED : result; + } + + public static final int LASTBYTESSENT_FIELD_NUMBER = 16; + private long lastBytesSent_ = 0L; + /** + *
+     * Relative counters since last check
+     * 
+ * + * uint64 lastBytesSent = 16; + * @return The lastBytesSent. + */ + @java.lang.Override + public long getLastBytesSent() { + return lastBytesSent_; + } + + public static final int LASTBYTESRECEIVED_FIELD_NUMBER = 17; + private long lastBytesReceived_ = 0L; + /** + * uint64 lastBytesReceived = 17; + * @return The lastBytesReceived. + */ + @java.lang.Override + public long getLastBytesReceived() { + return lastBytesReceived_; + } + + public static final int LASTRETRANSMITS_FIELD_NUMBER = 18; + private int lastRetransmits_ = 0; + /** + * uint32 lastRetransmits = 18; + * @return The lastRetransmits. + */ + @java.lang.Override + public int getLastRetransmits() { + return lastRetransmits_; + } + + public static final int DIRECTION_FIELD_NUMBER = 19; + private int direction_ = 0; + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override public int getDirectionValue() { + return direction_; + } + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return The direction. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.ConnectionDirection getDirection() { + datadog.process_agent.ConnectionsOuterClass.ConnectionDirection result = datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.forNumber(direction_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.UNRECOGNIZED : result; + } + + public static final int LASTPACKETSSENT_FIELD_NUMBER = 38; + private long lastPacketsSent_ = 0L; + /** + * uint64 lastPacketsSent = 38; + * @return The lastPacketsSent. + */ + @java.lang.Override + public long getLastPacketsSent() { + return lastPacketsSent_; + } + + public static final int LASTPACKETSRECEIVED_FIELD_NUMBER = 39; + private long lastPacketsReceived_ = 0L; + /** + * uint64 lastPacketsReceived = 39; + * @return The lastPacketsReceived. + */ + @java.lang.Override + public long getLastPacketsReceived() { + return lastPacketsReceived_; + } + + public static final int PROTOCOL_FIELD_NUMBER = 48; + private datadog.process_agent.ConnectionsOuterClass.ProtocolStack protocol_; + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + * @return Whether the protocol field is set. + */ + @java.lang.Override + public boolean hasProtocol() { + return protocol_ != null; + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + * @return The protocol. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getProtocol() { + return protocol_ == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder getProtocolOrBuilder() { + return protocol_ == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; + } + + public static final int NETNS_FIELD_NUMBER = 20; + private int netNS_ = 0; + /** + *
+     * Network namespace
+     * 
+ * + * uint32 netNS = 20; + * @return The netNS. + */ + @java.lang.Override + public int getNetNS() { + return netNS_; + } + + public static final int REMOTENETWORKID_FIELD_NUMBER = 32; + @SuppressWarnings("serial") + private volatile java.lang.Object remoteNetworkId_ = ""; + /** + *
+     * NetworkID of the remote address (post-resolution field)
+     * 
+ * + * string remoteNetworkId = 32; + * @return The remoteNetworkId. + */ + @java.lang.Override + public java.lang.String getRemoteNetworkId() { + java.lang.Object ref = remoteNetworkId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteNetworkId_ = s; + return s; + } + } + /** + *
+     * NetworkID of the remote address (post-resolution field)
+     * 
+ * + * string remoteNetworkId = 32; + * @return The bytes for remoteNetworkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRemoteNetworkIdBytes() { + java.lang.Object ref = remoteNetworkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteNetworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IPTRANSLATION_FIELD_NUMBER = 21; + private datadog.process_agent.ConnectionsOuterClass.IPTranslation ipTranslation_; + /** + *
+     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+     * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + * @return Whether the ipTranslation field is set. + */ + @java.lang.Override + public boolean hasIpTranslation() { + return ipTranslation_ != null; + } + /** + *
+     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+     * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + * @return The ipTranslation. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.IPTranslation getIpTranslation() { + return ipTranslation_ == null ? datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; + } + /** + *
+     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+     * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder getIpTranslationOrBuilder() { + return ipTranslation_ == null ? datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; + } + + public static final int RTT_FIELD_NUMBER = 22; + private int rtt_ = 0; + /** + *
+     * TCP-specific metrics
+     * 
+ * + * uint32 rtt = 22; + * @return The rtt. + */ + @java.lang.Override + public int getRtt() { + return rtt_; + } + + public static final int RTTVAR_FIELD_NUMBER = 23; + private int rttVar_ = 0; + /** + * uint32 rttVar = 23; + * @return The rttVar. + */ + @java.lang.Override + public int getRttVar() { + return rttVar_; + } + + public static final int INTRAHOST_FIELD_NUMBER = 24; + private boolean intraHost_ = false; + /** + *
+     * Indicates that this connection begins and ends on the same host
+     * 
+ * + * bool intraHost = 24; + * @return The intraHost. + */ + @java.lang.Override + public boolean getIntraHost() { + return intraHost_; + } + + public static final int DNSSUCCESSFULRESPONSES_FIELD_NUMBER = 25; + private int dnsSuccessfulResponses_ = 0; + /** + *
+     * DNS-specific metrics
+     * 
+ * + * uint32 dnsSuccessfulResponses = 25; + * @return The dnsSuccessfulResponses. + */ + @java.lang.Override + public int getDnsSuccessfulResponses() { + return dnsSuccessfulResponses_; + } + + public static final int DNSFAILEDRESPONSES_FIELD_NUMBER = 26; + private int dnsFailedResponses_ = 0; + /** + * uint32 dnsFailedResponses = 26; + * @return The dnsFailedResponses. + */ + @java.lang.Override + public int getDnsFailedResponses() { + return dnsFailedResponses_; + } + + public static final int DNSTIMEOUTS_FIELD_NUMBER = 27; + private int dnsTimeouts_ = 0; + /** + * uint32 dnsTimeouts = 27; + * @return The dnsTimeouts. + */ + @java.lang.Override + public int getDnsTimeouts() { + return dnsTimeouts_; + } + + public static final int DNSSUCCESSLATENCYSUM_FIELD_NUMBER = 28; + private long dnsSuccessLatencySum_ = 0L; + /** + * uint64 dnsSuccessLatencySum = 28; + * @return The dnsSuccessLatencySum. + */ + @java.lang.Override + public long getDnsSuccessLatencySum() { + return dnsSuccessLatencySum_; + } + + public static final int DNSFAILURELATENCYSUM_FIELD_NUMBER = 29; + private long dnsFailureLatencySum_ = 0L; + /** + * uint64 dnsFailureLatencySum = 29; + * @return The dnsFailureLatencySum. + */ + @java.lang.Override + public long getDnsFailureLatencySum() { + return dnsFailureLatencySum_; + } + + public static final int DNSCOUNTBYRCODE_FIELD_NUMBER = 33; + private static final class DnsCountByRcodeDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, java.lang.Integer> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> dnsCountByRcode_; + private com.google.protobuf.MapField + internalGetDnsCountByRcode() { + if (dnsCountByRcode_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsCountByRcodeDefaultEntryHolder.defaultEntry); + } + return dnsCountByRcode_; + } + public int getDnsCountByRcodeCount() { + return internalGetDnsCountByRcode().getMap().size(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public boolean containsDnsCountByRcode( + int key) { + + return internalGetDnsCountByRcode().getMap().containsKey(key); + } + /** + * Use {@link #getDnsCountByRcodeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsCountByRcode() { + return getDnsCountByRcodeMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public java.util.Map getDnsCountByRcodeMap() { + return internalGetDnsCountByRcode().getMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public int getDnsCountByRcodeOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public int getDnsCountByRcodeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LASTTCPESTABLISHED_FIELD_NUMBER = 30; + private int lastTcpEstablished_ = 0; + /** + *
+     * TCP state transition counters relative to last check
+     * 
+ * + * uint32 lastTcpEstablished = 30; + * @return The lastTcpEstablished. + */ + @java.lang.Override + public int getLastTcpEstablished() { + return lastTcpEstablished_; + } + + public static final int LASTTCPCLOSED_FIELD_NUMBER = 31; + private int lastTcpClosed_ = 0; + /** + * uint32 lastTcpClosed = 31; + * @return The lastTcpClosed. + */ + @java.lang.Override + public int getLastTcpClosed() { + return lastTcpClosed_; + } + + public static final int DNSSTATSBYDOMAIN_FIELD_NUMBER = 34; + private static final class DnsStatsByDomainDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByDomain_; + private com.google.protobuf.MapField + internalGetDnsStatsByDomain() { + if (dnsStatsByDomain_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByDomainDefaultEntryHolder.defaultEntry); + } + return dnsStatsByDomain_; + } + public int getDnsStatsByDomainCount() { + return internalGetDnsStatsByDomain().getMap().size(); + } + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public boolean containsDnsStatsByDomain( + int key) { + + return internalGetDnsStatsByDomain().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByDomainMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByDomain() { + return getDnsStatsByDomainMap(); + } + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public java.util.Map getDnsStatsByDomainMap() { + return internalGetDnsStatsByDomain().getMap(); + } + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { + + java.util.Map map = + internalGetDnsStatsByDomain().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * 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
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByDomain().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DNSSTATSBYDOMAINBYQUERYTYPE_FIELD_NUMBER = 42; + private static final class DnsStatsByDomainByQueryTypeDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainByQueryType_; + private com.google.protobuf.MapField + internalGetDnsStatsByDomainByQueryType() { + if (dnsStatsByDomainByQueryType_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry); + } + return dnsStatsByDomainByQueryType_; + } + public int getDnsStatsByDomainByQueryTypeCount() { + return internalGetDnsStatsByDomainByQueryType().getMap().size(); + } + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public boolean containsDnsStatsByDomainByQueryType( + int key) { + + return internalGetDnsStatsByDomainByQueryType().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByDomainByQueryTypeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByDomainByQueryType() { + return getDnsStatsByDomainByQueryTypeMap(); + } + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public java.util.Map getDnsStatsByDomainByQueryTypeMap() { + return internalGetDnsStatsByDomainByQueryType().getMap(); + } + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { + + java.util.Map map = + internalGetDnsStatsByDomainByQueryType().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * dnsStatsByDomainByQueryType is new field
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByDomainByQueryType().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DNSSTATSBYDOMAINOFFSETBYQUERYTYPE_FIELD_NUMBER = 43; + private static final class DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType_; + private com.google.protobuf.MapField + internalGetDnsStatsByDomainOffsetByQueryType() { + if (dnsStatsByDomainOffsetByQueryType_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry); + } + return dnsStatsByDomainOffsetByQueryType_; + } + public int getDnsStatsByDomainOffsetByQueryTypeCount() { + return internalGetDnsStatsByDomainOffsetByQueryType().getMap().size(); + } + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public boolean containsDnsStatsByDomainOffsetByQueryType( + int key) { + + return internalGetDnsStatsByDomainOffsetByQueryType().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByDomainOffsetByQueryTypeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByDomainOffsetByQueryType() { + return getDnsStatsByDomainOffsetByQueryTypeMap(); + } + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public java.util.Map getDnsStatsByDomainOffsetByQueryTypeMap() { + return internalGetDnsStatsByDomainOffsetByQueryType().getMap(); + } + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { + + java.util.Map map = + internalGetDnsStatsByDomainOffsetByQueryType().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+     * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByDomainOffsetByQueryType().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ROUTEIDX_FIELD_NUMBER = 36; + private int routeIdx_ = 0; + /** + * int32 routeIdx = 36; + * @return The routeIdx. + */ + @java.lang.Override + public int getRouteIdx() { + return routeIdx_; + } + + public static final int ROUTETARGETIDX_FIELD_NUMBER = 40; + private int routeTargetIdx_ = 0; + /** + *
+     * the index of the resolved target of the route (post-resolution field)
+     * 
+ * + * int32 routeTargetIdx = 40; + * @return The routeTargetIdx. + */ + @java.lang.Override + public int getRouteTargetIdx() { + return routeTargetIdx_; + } + + public static final int HTTPAGGREGATIONS_FIELD_NUMBER = 37; + private com.google.protobuf.ByteString httpAggregations_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
+     * 
+ * + * bytes httpAggregations = 37; + * @return The httpAggregations. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHttpAggregations() { + return httpAggregations_; + } + + public static final int TAGS_FIELD_NUMBER = 44; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList tags_; + /** + *
+     * The stored values corresponds to an index into the `Connections.tags` field
+     * 
+ * + * repeated uint32 tags = 44; + * @return A list containing the tags. + */ + @java.lang.Override + public java.util.List + getTagsList() { + return tags_; + } + /** + *
+     * The stored values corresponds to an index into the `Connections.tags` field
+     * 
+ * + * repeated uint32 tags = 44; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * The stored values corresponds to an index into the `Connections.tags` field
+     * 
+ * + * repeated uint32 tags = 44; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public int getTags(int index) { + return tags_.getInt(index); + } + private int tagsMemoizedSerializedSize = -1; + + public static final int TAGSIDX_FIELD_NUMBER = 45; + private int tagsIdx_ = 0; + /** + *
+     * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
+     * 
+ * + * int32 tagsIdx = 45; + * @return The tagsIdx. + */ + @java.lang.Override + public int getTagsIdx() { + return tagsIdx_; + } + + public static final int TAGSCHECKSUM_FIELD_NUMBER = 47; + private int tagsChecksum_ = 0; + /** + *
+     * 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.
+     * 
+ * + * uint32 tagsChecksum = 47; + * @return The tagsChecksum. + */ + @java.lang.Override + public int getTagsChecksum() { + return tagsChecksum_; + } + + public static final int STATEINDEX_FIELD_NUMBER = 46; + private int stateIndex_ = 0; + /** + *
+     * Used for offset state management (backend)
+     * 
+ * + * uint32 stateIndex = 46; + * @return The stateIndex. + */ + @java.lang.Override + public int getStateIndex() { + return stateIndex_; + } + + public static final int DATASTREAMSAGGREGATIONS_FIELD_NUMBER = 49; + private com.google.protobuf.ByteString dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
+     * 
+ * + * bytes dataStreamsAggregations = 49; + * @return The dataStreamsAggregations. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStreamsAggregations() { + return dataStreamsAggregations_; + } + + public static final int HTTP2AGGREGATIONS_FIELD_NUMBER = 50; + private com.google.protobuf.ByteString http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
+     * 
+ * + * bytes http2Aggregations = 50; + * @return The http2Aggregations. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHttp2Aggregations() { + return http2Aggregations_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (pid_ != 0) { + output.writeInt32(1, pid_); + } + if (laddr_ != null) { + output.writeMessage(5, getLaddr()); + } + if (raddr_ != null) { + output.writeMessage(6, getRaddr()); + } + if (family_ != datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.v4.getNumber()) { + output.writeEnum(10, family_); + } + if (type_ != datadog.process_agent.Agent.ConnectionType.tcp.getNumber()) { + output.writeEnum(11, type_); + } + if (lastBytesSent_ != 0L) { + output.writeUInt64(16, lastBytesSent_); + } + if (lastBytesReceived_ != 0L) { + output.writeUInt64(17, lastBytesReceived_); + } + if (lastRetransmits_ != 0) { + output.writeUInt32(18, lastRetransmits_); + } + if (direction_ != datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.unspecified.getNumber()) { + output.writeEnum(19, direction_); + } + if (netNS_ != 0) { + output.writeUInt32(20, netNS_); + } + if (ipTranslation_ != null) { + output.writeMessage(21, getIpTranslation()); + } + if (rtt_ != 0) { + output.writeUInt32(22, rtt_); + } + if (rttVar_ != 0) { + output.writeUInt32(23, rttVar_); + } + if (intraHost_ != false) { + output.writeBool(24, intraHost_); + } + if (dnsSuccessfulResponses_ != 0) { + output.writeUInt32(25, dnsSuccessfulResponses_); + } + if (dnsFailedResponses_ != 0) { + output.writeUInt32(26, dnsFailedResponses_); + } + if (dnsTimeouts_ != 0) { + output.writeUInt32(27, dnsTimeouts_); + } + if (dnsSuccessLatencySum_ != 0L) { + output.writeUInt64(28, dnsSuccessLatencySum_); + } + if (dnsFailureLatencySum_ != 0L) { + output.writeUInt64(29, dnsFailureLatencySum_); + } + if (lastTcpEstablished_ != 0) { + output.writeUInt32(30, lastTcpEstablished_); + } + if (lastTcpClosed_ != 0) { + output.writeUInt32(31, lastTcpClosed_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteNetworkId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 32, remoteNetworkId_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetDnsCountByRcode(), + DnsCountByRcodeDefaultEntryHolder.defaultEntry, + 33); + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetDnsStatsByDomain(), + DnsStatsByDomainDefaultEntryHolder.defaultEntry, + 34); + if (routeIdx_ != 0) { + output.writeInt32(36, routeIdx_); + } + if (!httpAggregations_.isEmpty()) { + output.writeBytes(37, httpAggregations_); + } + if (lastPacketsSent_ != 0L) { + output.writeUInt64(38, lastPacketsSent_); + } + if (lastPacketsReceived_ != 0L) { + output.writeUInt64(39, lastPacketsReceived_); + } + if (routeTargetIdx_ != 0) { + output.writeInt32(40, routeTargetIdx_); + } + if (isLocalPortEphemeral_ != datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.ephemeralUnspecified.getNumber()) { + output.writeEnum(41, isLocalPortEphemeral_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetDnsStatsByDomainByQueryType(), + DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry, + 42); + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetDnsStatsByDomainOffsetByQueryType(), + DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry, + 43); + if (getTagsList().size() > 0) { + output.writeUInt32NoTag(354); + output.writeUInt32NoTag(tagsMemoizedSerializedSize); + } + for (int i = 0; i < tags_.size(); i++) { + output.writeUInt32NoTag(tags_.getInt(i)); + } + if (tagsIdx_ != 0) { + output.writeInt32(45, tagsIdx_); + } + if (stateIndex_ != 0) { + output.writeUInt32(46, stateIndex_); + } + if (tagsChecksum_ != 0) { + output.writeUInt32(47, tagsChecksum_); + } + if (protocol_ != null) { + output.writeMessage(48, getProtocol()); + } + if (!dataStreamsAggregations_.isEmpty()) { + output.writeBytes(49, dataStreamsAggregations_); + } + if (!http2Aggregations_.isEmpty()) { + output.writeBytes(50, http2Aggregations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pid_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pid_); + } + if (laddr_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLaddr()); + } + if (raddr_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getRaddr()); + } + if (family_ != datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.v4.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, family_); + } + if (type_ != datadog.process_agent.Agent.ConnectionType.tcp.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, type_); + } + if (lastBytesSent_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(16, lastBytesSent_); + } + if (lastBytesReceived_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(17, lastBytesReceived_); + } + if (lastRetransmits_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(18, lastRetransmits_); + } + if (direction_ != datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.unspecified.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(19, direction_); + } + if (netNS_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(20, netNS_); + } + if (ipTranslation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getIpTranslation()); + } + if (rtt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(22, rtt_); + } + if (rttVar_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(23, rttVar_); + } + if (intraHost_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(24, intraHost_); + } + if (dnsSuccessfulResponses_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(25, dnsSuccessfulResponses_); + } + if (dnsFailedResponses_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(26, dnsFailedResponses_); + } + if (dnsTimeouts_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(27, dnsTimeouts_); + } + if (dnsSuccessLatencySum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(28, dnsSuccessLatencySum_); + } + if (dnsFailureLatencySum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(29, dnsFailureLatencySum_); + } + if (lastTcpEstablished_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(30, lastTcpEstablished_); + } + if (lastTcpClosed_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(31, lastTcpClosed_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteNetworkId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, remoteNetworkId_); + } + for (java.util.Map.Entry entry + : internalGetDnsCountByRcode().getMap().entrySet()) { + com.google.protobuf.MapEntry + dnsCountByRcode__ = DnsCountByRcodeDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, dnsCountByRcode__); + } + for (java.util.Map.Entry entry + : internalGetDnsStatsByDomain().getMap().entrySet()) { + com.google.protobuf.MapEntry + dnsStatsByDomain__ = DnsStatsByDomainDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, dnsStatsByDomain__); + } + if (routeIdx_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(36, routeIdx_); + } + if (!httpAggregations_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(37, httpAggregations_); + } + if (lastPacketsSent_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(38, lastPacketsSent_); + } + if (lastPacketsReceived_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(39, lastPacketsReceived_); + } + if (routeTargetIdx_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(40, routeTargetIdx_); + } + if (isLocalPortEphemeral_ != datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.ephemeralUnspecified.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(41, isLocalPortEphemeral_); + } + for (java.util.Map.Entry entry + : internalGetDnsStatsByDomainByQueryType().getMap().entrySet()) { + com.google.protobuf.MapEntry + dnsStatsByDomainByQueryType__ = DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, dnsStatsByDomainByQueryType__); + } + for (java.util.Map.Entry entry + : internalGetDnsStatsByDomainOffsetByQueryType().getMap().entrySet()) { + com.google.protobuf.MapEntry + dnsStatsByDomainOffsetByQueryType__ = DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, dnsStatsByDomainOffsetByQueryType__); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(tags_.getInt(i)); + } + size += dataSize; + if (!getTagsList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + tagsMemoizedSerializedSize = dataSize; + } + if (tagsIdx_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(45, tagsIdx_); + } + if (stateIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(46, stateIndex_); + } + if (tagsChecksum_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(47, tagsChecksum_); + } + if (protocol_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, getProtocol()); + } + if (!dataStreamsAggregations_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(49, dataStreamsAggregations_); + } + if (!http2Aggregations_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(50, http2Aggregations_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Connection)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.Connection other = (datadog.process_agent.ConnectionsOuterClass.Connection) obj; + + if (getPid() + != other.getPid()) return false; + if (hasLaddr() != other.hasLaddr()) return false; + if (hasLaddr()) { + if (!getLaddr() + .equals(other.getLaddr())) return false; + } + if (hasRaddr() != other.hasRaddr()) return false; + if (hasRaddr()) { + if (!getRaddr() + .equals(other.getRaddr())) return false; + } + if (family_ != other.family_) return false; + if (type_ != other.type_) return false; + if (isLocalPortEphemeral_ != other.isLocalPortEphemeral_) return false; + if (getLastBytesSent() + != other.getLastBytesSent()) return false; + if (getLastBytesReceived() + != other.getLastBytesReceived()) return false; + if (getLastRetransmits() + != other.getLastRetransmits()) return false; + if (direction_ != other.direction_) return false; + if (getLastPacketsSent() + != other.getLastPacketsSent()) return false; + if (getLastPacketsReceived() + != other.getLastPacketsReceived()) return false; + if (hasProtocol() != other.hasProtocol()) return false; + if (hasProtocol()) { + if (!getProtocol() + .equals(other.getProtocol())) return false; + } + if (getNetNS() + != other.getNetNS()) return false; + if (!getRemoteNetworkId() + .equals(other.getRemoteNetworkId())) return false; + if (hasIpTranslation() != other.hasIpTranslation()) return false; + if (hasIpTranslation()) { + if (!getIpTranslation() + .equals(other.getIpTranslation())) return false; + } + if (getRtt() + != other.getRtt()) return false; + if (getRttVar() + != other.getRttVar()) return false; + if (getIntraHost() + != other.getIntraHost()) return false; + if (getDnsSuccessfulResponses() + != other.getDnsSuccessfulResponses()) return false; + if (getDnsFailedResponses() + != other.getDnsFailedResponses()) return false; + if (getDnsTimeouts() + != other.getDnsTimeouts()) return false; + if (getDnsSuccessLatencySum() + != other.getDnsSuccessLatencySum()) return false; + if (getDnsFailureLatencySum() + != other.getDnsFailureLatencySum()) return false; + if (!internalGetDnsCountByRcode().equals( + other.internalGetDnsCountByRcode())) return false; + if (getLastTcpEstablished() + != other.getLastTcpEstablished()) return false; + if (getLastTcpClosed() + != other.getLastTcpClosed()) return false; + if (!internalGetDnsStatsByDomain().equals( + other.internalGetDnsStatsByDomain())) return false; + if (!internalGetDnsStatsByDomainByQueryType().equals( + other.internalGetDnsStatsByDomainByQueryType())) return false; + if (!internalGetDnsStatsByDomainOffsetByQueryType().equals( + other.internalGetDnsStatsByDomainOffsetByQueryType())) return false; + if (getRouteIdx() + != other.getRouteIdx()) return false; + if (getRouteTargetIdx() + != other.getRouteTargetIdx()) return false; + if (!getHttpAggregations() + .equals(other.getHttpAggregations())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (getTagsIdx() + != other.getTagsIdx()) return false; + if (getTagsChecksum() + != other.getTagsChecksum()) return false; + if (getStateIndex() + != other.getStateIndex()) return false; + if (!getDataStreamsAggregations() + .equals(other.getDataStreamsAggregations())) return false; + if (!getHttp2Aggregations() + .equals(other.getHttp2Aggregations())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PID_FIELD_NUMBER; + hash = (53 * hash) + getPid(); + if (hasLaddr()) { + hash = (37 * hash) + LADDR_FIELD_NUMBER; + hash = (53 * hash) + getLaddr().hashCode(); + } + if (hasRaddr()) { + hash = (37 * hash) + RADDR_FIELD_NUMBER; + hash = (53 * hash) + getRaddr().hashCode(); + } + hash = (37 * hash) + FAMILY_FIELD_NUMBER; + hash = (53 * hash) + family_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ISLOCALPORTEPHEMERAL_FIELD_NUMBER; + hash = (53 * hash) + isLocalPortEphemeral_; + hash = (37 * hash) + LASTBYTESSENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastBytesSent()); + hash = (37 * hash) + LASTBYTESRECEIVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastBytesReceived()); + hash = (37 * hash) + LASTRETRANSMITS_FIELD_NUMBER; + hash = (53 * hash) + getLastRetransmits(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + LASTPACKETSSENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastPacketsSent()); + hash = (37 * hash) + LASTPACKETSRECEIVED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastPacketsReceived()); + if (hasProtocol()) { + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + } + hash = (37 * hash) + NETNS_FIELD_NUMBER; + hash = (53 * hash) + getNetNS(); + hash = (37 * hash) + REMOTENETWORKID_FIELD_NUMBER; + hash = (53 * hash) + getRemoteNetworkId().hashCode(); + if (hasIpTranslation()) { + hash = (37 * hash) + IPTRANSLATION_FIELD_NUMBER; + hash = (53 * hash) + getIpTranslation().hashCode(); + } + hash = (37 * hash) + RTT_FIELD_NUMBER; + hash = (53 * hash) + getRtt(); + hash = (37 * hash) + RTTVAR_FIELD_NUMBER; + hash = (53 * hash) + getRttVar(); + hash = (37 * hash) + INTRAHOST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIntraHost()); + hash = (37 * hash) + DNSSUCCESSFULRESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getDnsSuccessfulResponses(); + hash = (37 * hash) + DNSFAILEDRESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getDnsFailedResponses(); + hash = (37 * hash) + DNSTIMEOUTS_FIELD_NUMBER; + hash = (53 * hash) + getDnsTimeouts(); + hash = (37 * hash) + DNSSUCCESSLATENCYSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsSuccessLatencySum()); + hash = (37 * hash) + DNSFAILURELATENCYSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsFailureLatencySum()); + if (!internalGetDnsCountByRcode().getMap().isEmpty()) { + hash = (37 * hash) + DNSCOUNTBYRCODE_FIELD_NUMBER; + hash = (53 * hash) + internalGetDnsCountByRcode().hashCode(); + } + hash = (37 * hash) + LASTTCPESTABLISHED_FIELD_NUMBER; + hash = (53 * hash) + getLastTcpEstablished(); + hash = (37 * hash) + LASTTCPCLOSED_FIELD_NUMBER; + hash = (53 * hash) + getLastTcpClosed(); + if (!internalGetDnsStatsByDomain().getMap().isEmpty()) { + hash = (37 * hash) + DNSSTATSBYDOMAIN_FIELD_NUMBER; + hash = (53 * hash) + internalGetDnsStatsByDomain().hashCode(); + } + if (!internalGetDnsStatsByDomainByQueryType().getMap().isEmpty()) { + hash = (37 * hash) + DNSSTATSBYDOMAINBYQUERYTYPE_FIELD_NUMBER; + hash = (53 * hash) + internalGetDnsStatsByDomainByQueryType().hashCode(); + } + if (!internalGetDnsStatsByDomainOffsetByQueryType().getMap().isEmpty()) { + hash = (37 * hash) + DNSSTATSBYDOMAINOFFSETBYQUERYTYPE_FIELD_NUMBER; + hash = (53 * hash) + internalGetDnsStatsByDomainOffsetByQueryType().hashCode(); + } + hash = (37 * hash) + ROUTEIDX_FIELD_NUMBER; + hash = (53 * hash) + getRouteIdx(); + hash = (37 * hash) + ROUTETARGETIDX_FIELD_NUMBER; + hash = (53 * hash) + getRouteTargetIdx(); + hash = (37 * hash) + HTTPAGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getHttpAggregations().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + TAGSIDX_FIELD_NUMBER; + hash = (53 * hash) + getTagsIdx(); + hash = (37 * hash) + TAGSCHECKSUM_FIELD_NUMBER; + hash = (53 * hash) + getTagsChecksum(); + hash = (37 * hash) + STATEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getStateIndex(); + hash = (37 * hash) + DATASTREAMSAGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDataStreamsAggregations().hashCode(); + hash = (37 * hash) + HTTP2AGGREGATIONS_FIELD_NUMBER; + hash = (53 * hash) + getHttp2Aggregations().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Connection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.Connection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.Connection) + datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 33: + return internalGetDnsCountByRcode(); + case 34: + return internalGetDnsStatsByDomain(); + case 42: + return internalGetDnsStatsByDomainByQueryType(); + case 43: + return internalGetDnsStatsByDomainOffsetByQueryType(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 33: + return internalGetMutableDnsCountByRcode(); + case 34: + return internalGetMutableDnsStatsByDomain(); + case 42: + return internalGetMutableDnsStatsByDomainByQueryType(); + case 43: + return internalGetMutableDnsStatsByDomainOffsetByQueryType(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Connection.class, datadog.process_agent.ConnectionsOuterClass.Connection.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.Connection.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + pid_ = 0; + laddr_ = null; + if (laddrBuilder_ != null) { + laddrBuilder_.dispose(); + laddrBuilder_ = null; + } + raddr_ = null; + if (raddrBuilder_ != null) { + raddrBuilder_.dispose(); + raddrBuilder_ = null; + } + family_ = 0; + type_ = 0; + isLocalPortEphemeral_ = 0; + lastBytesSent_ = 0L; + lastBytesReceived_ = 0L; + lastRetransmits_ = 0; + direction_ = 0; + lastPacketsSent_ = 0L; + lastPacketsReceived_ = 0L; + protocol_ = null; + if (protocolBuilder_ != null) { + protocolBuilder_.dispose(); + protocolBuilder_ = null; + } + netNS_ = 0; + remoteNetworkId_ = ""; + ipTranslation_ = null; + if (ipTranslationBuilder_ != null) { + ipTranslationBuilder_.dispose(); + ipTranslationBuilder_ = null; + } + rtt_ = 0; + rttVar_ = 0; + intraHost_ = false; + dnsSuccessfulResponses_ = 0; + dnsFailedResponses_ = 0; + dnsTimeouts_ = 0; + dnsSuccessLatencySum_ = 0L; + dnsFailureLatencySum_ = 0L; + internalGetMutableDnsCountByRcode().clear(); + lastTcpEstablished_ = 0; + lastTcpClosed_ = 0; + internalGetMutableDnsStatsByDomain().clear(); + internalGetMutableDnsStatsByDomainByQueryType().clear(); + internalGetMutableDnsStatsByDomainOffsetByQueryType().clear(); + routeIdx_ = 0; + routeTargetIdx_ = 0; + httpAggregations_ = com.google.protobuf.ByteString.EMPTY; + tags_ = emptyIntList(); + tagsIdx_ = 0; + tagsChecksum_ = 0; + stateIndex_ = 0; + dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; + http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connection getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connection build() { + datadog.process_agent.ConnectionsOuterClass.Connection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connection buildPartial() { + datadog.process_agent.ConnectionsOuterClass.Connection result = new datadog.process_agent.ConnectionsOuterClass.Connection(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.Connection result) { + if (((bitField1_ & 0x00000002) != 0)) { + tags_.makeImmutable(); + bitField1_ = (bitField1_ & ~0x00000002); + } + result.tags_ = tags_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Connection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pid_ = pid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.laddr_ = laddrBuilder_ == null + ? laddr_ + : laddrBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.raddr_ = raddrBuilder_ == null + ? raddr_ + : raddrBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.family_ = family_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isLocalPortEphemeral_ = isLocalPortEphemeral_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.lastBytesSent_ = lastBytesSent_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lastBytesReceived_ = lastBytesReceived_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.lastRetransmits_ = lastRetransmits_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.direction_ = direction_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.lastPacketsSent_ = lastPacketsSent_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.lastPacketsReceived_ = lastPacketsReceived_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.protocol_ = protocolBuilder_ == null + ? protocol_ + : protocolBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.netNS_ = netNS_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.remoteNetworkId_ = remoteNetworkId_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.ipTranslation_ = ipTranslationBuilder_ == null + ? ipTranslation_ + : ipTranslationBuilder_.build(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.rtt_ = rtt_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.rttVar_ = rttVar_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.intraHost_ = intraHost_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.dnsSuccessfulResponses_ = dnsSuccessfulResponses_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.dnsFailedResponses_ = dnsFailedResponses_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.dnsTimeouts_ = dnsTimeouts_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.dnsSuccessLatencySum_ = dnsSuccessLatencySum_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.dnsFailureLatencySum_ = dnsFailureLatencySum_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.dnsCountByRcode_ = internalGetDnsCountByRcode(); + result.dnsCountByRcode_.makeImmutable(); + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.lastTcpEstablished_ = lastTcpEstablished_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.lastTcpClosed_ = lastTcpClosed_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.dnsStatsByDomain_ = internalGetDnsStatsByDomain(); + result.dnsStatsByDomain_.makeImmutable(); + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.dnsStatsByDomainByQueryType_ = internalGetDnsStatsByDomainByQueryType(); + result.dnsStatsByDomainByQueryType_.makeImmutable(); + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.dnsStatsByDomainOffsetByQueryType_ = internalGetDnsStatsByDomainOffsetByQueryType(); + result.dnsStatsByDomainOffsetByQueryType_.makeImmutable(); + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.routeIdx_ = routeIdx_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.routeTargetIdx_ = routeTargetIdx_; + } + } + + private void buildPartial1(datadog.process_agent.ConnectionsOuterClass.Connection result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.httpAggregations_ = httpAggregations_; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.tagsIdx_ = tagsIdx_; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.tagsChecksum_ = tagsChecksum_; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.stateIndex_ = stateIndex_; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.dataStreamsAggregations_ = dataStreamsAggregations_; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.http2Aggregations_ = http2Aggregations_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.Connection) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Connection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Connection other) { + if (other == datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()) return this; + if (other.getPid() != 0) { + setPid(other.getPid()); + } + if (other.hasLaddr()) { + mergeLaddr(other.getLaddr()); + } + if (other.hasRaddr()) { + mergeRaddr(other.getRaddr()); + } + if (other.family_ != 0) { + setFamilyValue(other.getFamilyValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.isLocalPortEphemeral_ != 0) { + setIsLocalPortEphemeralValue(other.getIsLocalPortEphemeralValue()); + } + if (other.getLastBytesSent() != 0L) { + setLastBytesSent(other.getLastBytesSent()); + } + if (other.getLastBytesReceived() != 0L) { + setLastBytesReceived(other.getLastBytesReceived()); + } + if (other.getLastRetransmits() != 0) { + setLastRetransmits(other.getLastRetransmits()); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.getLastPacketsSent() != 0L) { + setLastPacketsSent(other.getLastPacketsSent()); + } + if (other.getLastPacketsReceived() != 0L) { + setLastPacketsReceived(other.getLastPacketsReceived()); + } + if (other.hasProtocol()) { + mergeProtocol(other.getProtocol()); + } + if (other.getNetNS() != 0) { + setNetNS(other.getNetNS()); + } + if (!other.getRemoteNetworkId().isEmpty()) { + remoteNetworkId_ = other.remoteNetworkId_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasIpTranslation()) { + mergeIpTranslation(other.getIpTranslation()); + } + if (other.getRtt() != 0) { + setRtt(other.getRtt()); + } + if (other.getRttVar() != 0) { + setRttVar(other.getRttVar()); + } + if (other.getIntraHost() != false) { + setIntraHost(other.getIntraHost()); + } + if (other.getDnsSuccessfulResponses() != 0) { + setDnsSuccessfulResponses(other.getDnsSuccessfulResponses()); + } + if (other.getDnsFailedResponses() != 0) { + setDnsFailedResponses(other.getDnsFailedResponses()); + } + if (other.getDnsTimeouts() != 0) { + setDnsTimeouts(other.getDnsTimeouts()); + } + if (other.getDnsSuccessLatencySum() != 0L) { + setDnsSuccessLatencySum(other.getDnsSuccessLatencySum()); + } + if (other.getDnsFailureLatencySum() != 0L) { + setDnsFailureLatencySum(other.getDnsFailureLatencySum()); + } + internalGetMutableDnsCountByRcode().mergeFrom( + other.internalGetDnsCountByRcode()); + bitField0_ |= 0x01000000; + if (other.getLastTcpEstablished() != 0) { + setLastTcpEstablished(other.getLastTcpEstablished()); + } + if (other.getLastTcpClosed() != 0) { + setLastTcpClosed(other.getLastTcpClosed()); + } + internalGetMutableDnsStatsByDomain().mergeFrom( + other.internalGetDnsStatsByDomain()); + bitField0_ |= 0x08000000; + internalGetMutableDnsStatsByDomainByQueryType().mergeFrom( + other.internalGetDnsStatsByDomainByQueryType()); + bitField0_ |= 0x10000000; + internalGetMutableDnsStatsByDomainOffsetByQueryType().mergeFrom( + other.internalGetDnsStatsByDomainOffsetByQueryType()); + bitField0_ |= 0x20000000; + if (other.getRouteIdx() != 0) { + setRouteIdx(other.getRouteIdx()); + } + if (other.getRouteTargetIdx() != 0) { + setRouteTargetIdx(other.getRouteTargetIdx()); + } + if (other.getHttpAggregations() != com.google.protobuf.ByteString.EMPTY) { + setHttpAggregations(other.getHttpAggregations()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField1_ = (bitField1_ & ~0x00000002); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getTagsIdx() != 0) { + setTagsIdx(other.getTagsIdx()); + } + if (other.getTagsChecksum() != 0) { + setTagsChecksum(other.getTagsChecksum()); + } + if (other.getStateIndex() != 0) { + setStateIndex(other.getStateIndex()); + } + if (other.getDataStreamsAggregations() != com.google.protobuf.ByteString.EMPTY) { + setDataStreamsAggregations(other.getDataStreamsAggregations()); + } + if (other.getHttp2Aggregations() != com.google.protobuf.ByteString.EMPTY) { + setHttp2Aggregations(other.getHttp2Aggregations()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + pid_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 42: { + input.readMessage( + getLaddrFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: { + input.readMessage( + getRaddrFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 80: { + family_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 80 + case 88: { + type_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 88 + case 128: { + lastBytesSent_ = input.readUInt64(); + bitField0_ |= 0x00000040; + break; + } // case 128 + case 136: { + lastBytesReceived_ = input.readUInt64(); + bitField0_ |= 0x00000080; + break; + } // case 136 + case 144: { + lastRetransmits_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 144 + case 152: { + direction_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 152 + case 160: { + netNS_ = input.readUInt32(); + bitField0_ |= 0x00002000; + break; + } // case 160 + case 170: { + input.readMessage( + getIpTranslationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 176: { + rtt_ = input.readUInt32(); + bitField0_ |= 0x00010000; + break; + } // case 176 + case 184: { + rttVar_ = input.readUInt32(); + bitField0_ |= 0x00020000; + break; + } // case 184 + case 192: { + intraHost_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 192 + case 200: { + dnsSuccessfulResponses_ = input.readUInt32(); + bitField0_ |= 0x00080000; + break; + } // case 200 + case 208: { + dnsFailedResponses_ = input.readUInt32(); + bitField0_ |= 0x00100000; + break; + } // case 208 + case 216: { + dnsTimeouts_ = input.readUInt32(); + bitField0_ |= 0x00200000; + break; + } // case 216 + case 224: { + dnsSuccessLatencySum_ = input.readUInt64(); + bitField0_ |= 0x00400000; + break; + } // case 224 + case 232: { + dnsFailureLatencySum_ = input.readUInt64(); + bitField0_ |= 0x00800000; + break; + } // case 232 + case 240: { + lastTcpEstablished_ = input.readUInt32(); + bitField0_ |= 0x02000000; + break; + } // case 240 + case 248: { + lastTcpClosed_ = input.readUInt32(); + bitField0_ |= 0x04000000; + break; + } // case 248 + case 258: { + remoteNetworkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 258 + case 266: { + com.google.protobuf.MapEntry + dnsCountByRcode__ = input.readMessage( + DnsCountByRcodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDnsCountByRcode().getMutableMap().put( + dnsCountByRcode__.getKey(), dnsCountByRcode__.getValue()); + bitField0_ |= 0x01000000; + break; + } // case 266 + case 274: { + com.google.protobuf.MapEntry + dnsStatsByDomain__ = input.readMessage( + DnsStatsByDomainDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDnsStatsByDomain().getMutableMap().put( + dnsStatsByDomain__.getKey(), dnsStatsByDomain__.getValue()); + bitField0_ |= 0x08000000; + break; + } // case 274 + case 288: { + routeIdx_ = input.readInt32(); + bitField0_ |= 0x40000000; + break; + } // case 288 + case 298: { + httpAggregations_ = input.readBytes(); + bitField1_ |= 0x00000001; + break; + } // case 298 + case 304: { + lastPacketsSent_ = input.readUInt64(); + bitField0_ |= 0x00000400; + break; + } // case 304 + case 312: { + lastPacketsReceived_ = input.readUInt64(); + bitField0_ |= 0x00000800; + break; + } // case 312 + case 320: { + routeTargetIdx_ = input.readInt32(); + bitField0_ |= 0x80000000; + break; + } // case 320 + case 328: { + isLocalPortEphemeral_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 328 + case 338: { + com.google.protobuf.MapEntry + dnsStatsByDomainByQueryType__ = input.readMessage( + DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDnsStatsByDomainByQueryType().getMutableMap().put( + dnsStatsByDomainByQueryType__.getKey(), dnsStatsByDomainByQueryType__.getValue()); + bitField0_ |= 0x10000000; + break; + } // case 338 + case 346: { + com.google.protobuf.MapEntry + dnsStatsByDomainOffsetByQueryType__ = input.readMessage( + DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap().put( + dnsStatsByDomainOffsetByQueryType__.getKey(), dnsStatsByDomainOffsetByQueryType__.getValue()); + bitField0_ |= 0x20000000; + break; + } // case 346 + case 352: { + int v = input.readUInt32(); + ensureTagsIsMutable(); + tags_.addInt(v); + break; + } // case 352 + case 354: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureTagsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + tags_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 354 + case 360: { + tagsIdx_ = input.readInt32(); + bitField1_ |= 0x00000004; + break; + } // case 360 + case 368: { + stateIndex_ = input.readUInt32(); + bitField1_ |= 0x00000010; + break; + } // case 368 + case 376: { + tagsChecksum_ = input.readUInt32(); + bitField1_ |= 0x00000008; + break; + } // case 376 + case 386: { + input.readMessage( + getProtocolFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 386 + case 394: { + dataStreamsAggregations_ = input.readBytes(); + bitField1_ |= 0x00000020; + break; + } // case 394 + case 402: { + http2Aggregations_ = input.readBytes(); + bitField1_ |= 0x00000040; + break; + } // case 402 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + + private int pid_ ; + /** + * int32 pid = 1; + * @return The pid. + */ + @java.lang.Override + public int getPid() { + return pid_; + } + /** + * int32 pid = 1; + * @param value The pid to set. + * @return This builder for chaining. + */ + public Builder setPid(int value) { + + pid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 pid = 1; + * @return This builder for chaining. + */ + public Builder clearPid() { + bitField0_ = (bitField0_ & ~0x00000001); + pid_ = 0; + onChanged(); + return this; + } + + private datadog.process_agent.ConnectionsOuterClass.Addr laddr_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> laddrBuilder_; + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + * @return Whether the laddr field is set. + */ + public boolean hasLaddr() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + * @return The laddr. + */ + public datadog.process_agent.ConnectionsOuterClass.Addr getLaddr() { + if (laddrBuilder_ == null) { + return laddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; + } else { + return laddrBuilder_.getMessage(); + } + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + public Builder setLaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { + if (laddrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + laddr_ = value; + } else { + laddrBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + public Builder setLaddr( + datadog.process_agent.ConnectionsOuterClass.Addr.Builder builderForValue) { + if (laddrBuilder_ == null) { + laddr_ = builderForValue.build(); + } else { + laddrBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + public Builder mergeLaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { + if (laddrBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + laddr_ != null && + laddr_ != datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance()) { + getLaddrBuilder().mergeFrom(value); + } else { + laddr_ = value; + } + } else { + laddrBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + public Builder clearLaddr() { + bitField0_ = (bitField0_ & ~0x00000002); + laddr_ = null; + if (laddrBuilder_ != null) { + laddrBuilder_.dispose(); + laddrBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.Addr.Builder getLaddrBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLaddrFieldBuilder().getBuilder(); + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getLaddrOrBuilder() { + if (laddrBuilder_ != null) { + return laddrBuilder_.getMessageOrBuilder(); + } else { + return laddr_ == null ? + datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; + } + } + /** + *
+       * Local address
+       * 
+ * + * .datadog.process_agent.Addr laddr = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> + getLaddrFieldBuilder() { + if (laddrBuilder_ == null) { + laddrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder>( + getLaddr(), + getParentForChildren(), + isClean()); + laddr_ = null; + } + return laddrBuilder_; + } + + private datadog.process_agent.ConnectionsOuterClass.Addr raddr_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> raddrBuilder_; + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + * @return Whether the raddr field is set. + */ + public boolean hasRaddr() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + * @return The raddr. + */ + public datadog.process_agent.ConnectionsOuterClass.Addr getRaddr() { + if (raddrBuilder_ == null) { + return raddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; + } else { + return raddrBuilder_.getMessage(); + } + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + public Builder setRaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { + if (raddrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + raddr_ = value; + } else { + raddrBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + public Builder setRaddr( + datadog.process_agent.ConnectionsOuterClass.Addr.Builder builderForValue) { + if (raddrBuilder_ == null) { + raddr_ = builderForValue.build(); + } else { + raddrBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + public Builder mergeRaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { + if (raddrBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + raddr_ != null && + raddr_ != datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance()) { + getRaddrBuilder().mergeFrom(value); + } else { + raddr_ = value; + } + } else { + raddrBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + public Builder clearRaddr() { + bitField0_ = (bitField0_ & ~0x00000004); + raddr_ = null; + if (raddrBuilder_ != null) { + raddrBuilder_.dispose(); + raddrBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + public datadog.process_agent.ConnectionsOuterClass.Addr.Builder getRaddrBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRaddrFieldBuilder().getBuilder(); + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getRaddrOrBuilder() { + if (raddrBuilder_ != null) { + return raddrBuilder_.getMessageOrBuilder(); + } else { + return raddr_ == null ? + datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; + } + } + /** + *
+       * Remote address
+       * 
+ * + * .datadog.process_agent.Addr raddr = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> + getRaddrFieldBuilder() { + if (raddrBuilder_ == null) { + raddrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder>( + getRaddr(), + getParentForChildren(), + isClean()); + raddr_ = null; + } + return raddrBuilder_; + } + + private int family_ = 0; + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return The enum numeric value on the wire for family. + */ + @java.lang.Override public int getFamilyValue() { + return family_; + } + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @param value The enum numeric value on the wire for family to set. + * @return This builder for chaining. + */ + public Builder setFamilyValue(int value) { + family_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return The family. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionFamily getFamily() { + datadog.process_agent.ConnectionsOuterClass.ConnectionFamily result = datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.forNumber(family_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @param value The family to set. + * @return This builder for chaining. + */ + public Builder setFamily(datadog.process_agent.ConnectionsOuterClass.ConnectionFamily value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + family_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.ConnectionFamily family = 10; + * @return This builder for chaining. + */ + public Builder clearFamily() { + bitField0_ = (bitField0_ & ~0x00000008); + family_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .datadog.process_agent.ConnectionType type = 11; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return The type. + */ + @java.lang.Override + public datadog.process_agent.Agent.ConnectionType getType() { + datadog.process_agent.Agent.ConnectionType result = datadog.process_agent.Agent.ConnectionType.forNumber(type_); + return result == null ? datadog.process_agent.Agent.ConnectionType.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.ConnectionType type = 11; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(datadog.process_agent.Agent.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.ConnectionType type = 11; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); + return this; + } + + private int isLocalPortEphemeral_ = 0; + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return The enum numeric value on the wire for isLocalPortEphemeral. + */ + @java.lang.Override public int getIsLocalPortEphemeralValue() { + return isLocalPortEphemeral_; + } + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @param value The enum numeric value on the wire for isLocalPortEphemeral to set. + * @return This builder for chaining. + */ + public Builder setIsLocalPortEphemeralValue(int value) { + isLocalPortEphemeral_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return The isLocalPortEphemeral. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.EphemeralPortState getIsLocalPortEphemeral() { + datadog.process_agent.ConnectionsOuterClass.EphemeralPortState result = datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.forNumber(isLocalPortEphemeral_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @param value The isLocalPortEphemeral to set. + * @return This builder for chaining. + */ + public Builder setIsLocalPortEphemeral(datadog.process_agent.ConnectionsOuterClass.EphemeralPortState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + isLocalPortEphemeral_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; + * @return This builder for chaining. + */ + public Builder clearIsLocalPortEphemeral() { + bitField0_ = (bitField0_ & ~0x00000020); + isLocalPortEphemeral_ = 0; + onChanged(); + return this; + } + + private long lastBytesSent_ ; + /** + *
+       * Relative counters since last check
+       * 
+ * + * uint64 lastBytesSent = 16; + * @return The lastBytesSent. + */ + @java.lang.Override + public long getLastBytesSent() { + return lastBytesSent_; + } + /** + *
+       * Relative counters since last check
+       * 
+ * + * uint64 lastBytesSent = 16; + * @param value The lastBytesSent to set. + * @return This builder for chaining. + */ + public Builder setLastBytesSent(long value) { + + lastBytesSent_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * Relative counters since last check
+       * 
+ * + * uint64 lastBytesSent = 16; + * @return This builder for chaining. + */ + public Builder clearLastBytesSent() { + bitField0_ = (bitField0_ & ~0x00000040); + lastBytesSent_ = 0L; + onChanged(); + return this; + } + + private long lastBytesReceived_ ; + /** + * uint64 lastBytesReceived = 17; + * @return The lastBytesReceived. + */ + @java.lang.Override + public long getLastBytesReceived() { + return lastBytesReceived_; + } + /** + * uint64 lastBytesReceived = 17; + * @param value The lastBytesReceived to set. + * @return This builder for chaining. + */ + public Builder setLastBytesReceived(long value) { + + lastBytesReceived_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * uint64 lastBytesReceived = 17; + * @return This builder for chaining. + */ + public Builder clearLastBytesReceived() { + bitField0_ = (bitField0_ & ~0x00000080); + lastBytesReceived_ = 0L; + onChanged(); + return this; + } + + private int lastRetransmits_ ; + /** + * uint32 lastRetransmits = 18; + * @return The lastRetransmits. + */ + @java.lang.Override + public int getLastRetransmits() { + return lastRetransmits_; + } + /** + * uint32 lastRetransmits = 18; + * @param value The lastRetransmits to set. + * @return This builder for chaining. + */ + public Builder setLastRetransmits(int value) { + + lastRetransmits_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * uint32 lastRetransmits = 18; + * @return This builder for chaining. + */ + public Builder clearLastRetransmits() { + bitField0_ = (bitField0_ & ~0x00000100); + lastRetransmits_ = 0; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return The enum numeric value on the wire for direction. + */ + @java.lang.Override public int getDirectionValue() { + return direction_; + } + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @param value The enum numeric value on the wire for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionValue(int value) { + direction_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return The direction. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionDirection getDirection() { + datadog.process_agent.ConnectionsOuterClass.ConnectionDirection result = datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.forNumber(direction_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(datadog.process_agent.ConnectionsOuterClass.ConnectionDirection value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.ConnectionDirection direction = 19; + * @return This builder for chaining. + */ + public Builder clearDirection() { + bitField0_ = (bitField0_ & ~0x00000200); + direction_ = 0; + onChanged(); + return this; + } + + private long lastPacketsSent_ ; + /** + * uint64 lastPacketsSent = 38; + * @return The lastPacketsSent. + */ + @java.lang.Override + public long getLastPacketsSent() { + return lastPacketsSent_; + } + /** + * uint64 lastPacketsSent = 38; + * @param value The lastPacketsSent to set. + * @return This builder for chaining. + */ + public Builder setLastPacketsSent(long value) { + + lastPacketsSent_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * uint64 lastPacketsSent = 38; + * @return This builder for chaining. + */ + public Builder clearLastPacketsSent() { + bitField0_ = (bitField0_ & ~0x00000400); + lastPacketsSent_ = 0L; + onChanged(); + return this; + } + + private long lastPacketsReceived_ ; + /** + * uint64 lastPacketsReceived = 39; + * @return The lastPacketsReceived. + */ + @java.lang.Override + public long getLastPacketsReceived() { + return lastPacketsReceived_; + } + /** + * uint64 lastPacketsReceived = 39; + * @param value The lastPacketsReceived to set. + * @return This builder for chaining. + */ + public Builder setLastPacketsReceived(long value) { + + lastPacketsReceived_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * uint64 lastPacketsReceived = 39; + * @return This builder for chaining. + */ + public Builder clearLastPacketsReceived() { + bitField0_ = (bitField0_ & ~0x00000800); + lastPacketsReceived_ = 0L; + onChanged(); + return this; + } + + private datadog.process_agent.ConnectionsOuterClass.ProtocolStack protocol_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.ProtocolStack, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder, datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder> protocolBuilder_; + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + * @return Whether the protocol field is set. + */ + public boolean hasProtocol() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + * @return The protocol. + */ + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getProtocol() { + if (protocolBuilder_ == null) { + return protocol_ == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; + } else { + return protocolBuilder_.getMessage(); + } + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + public Builder setProtocol(datadog.process_agent.ConnectionsOuterClass.ProtocolStack value) { + if (protocolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + protocol_ = value; + } else { + protocolBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + public Builder setProtocol( + datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder builderForValue) { + if (protocolBuilder_ == null) { + protocol_ = builderForValue.build(); + } else { + protocolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + public Builder mergeProtocol(datadog.process_agent.ConnectionsOuterClass.ProtocolStack value) { + if (protocolBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + protocol_ != null && + protocol_ != datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance()) { + getProtocolBuilder().mergeFrom(value); + } else { + protocol_ = value; + } + } else { + protocolBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00001000); + protocol_ = null; + if (protocolBuilder_ != null) { + protocolBuilder_.dispose(); + protocolBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder getProtocolBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getProtocolFieldBuilder().getBuilder(); + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + public datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder getProtocolOrBuilder() { + if (protocolBuilder_ != null) { + return protocolBuilder_.getMessageOrBuilder(); + } else { + return protocol_ == null ? + datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; + } + } + /** + * .datadog.process_agent.ProtocolStack protocol = 48; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.ProtocolStack, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder, datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder> + getProtocolFieldBuilder() { + if (protocolBuilder_ == null) { + protocolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.ProtocolStack, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder, datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder>( + getProtocol(), + getParentForChildren(), + isClean()); + protocol_ = null; + } + return protocolBuilder_; + } + + private int netNS_ ; + /** + *
+       * Network namespace
+       * 
+ * + * uint32 netNS = 20; + * @return The netNS. + */ + @java.lang.Override + public int getNetNS() { + return netNS_; + } + /** + *
+       * Network namespace
+       * 
+ * + * uint32 netNS = 20; + * @param value The netNS to set. + * @return This builder for chaining. + */ + public Builder setNetNS(int value) { + + netNS_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+       * Network namespace
+       * 
+ * + * uint32 netNS = 20; + * @return This builder for chaining. + */ + public Builder clearNetNS() { + bitField0_ = (bitField0_ & ~0x00002000); + netNS_ = 0; + onChanged(); + return this; + } + + private java.lang.Object remoteNetworkId_ = ""; + /** + *
+       * NetworkID of the remote address (post-resolution field)
+       * 
+ * + * string remoteNetworkId = 32; + * @return The remoteNetworkId. + */ + public java.lang.String getRemoteNetworkId() { + java.lang.Object ref = remoteNetworkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + remoteNetworkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * NetworkID of the remote address (post-resolution field)
+       * 
+ * + * string remoteNetworkId = 32; + * @return The bytes for remoteNetworkId. + */ + public com.google.protobuf.ByteString + getRemoteNetworkIdBytes() { + java.lang.Object ref = remoteNetworkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + remoteNetworkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * NetworkID of the remote address (post-resolution field)
+       * 
+ * + * string remoteNetworkId = 32; + * @param value The remoteNetworkId to set. + * @return This builder for chaining. + */ + public Builder setRemoteNetworkId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + remoteNetworkId_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+       * NetworkID of the remote address (post-resolution field)
+       * 
+ * + * string remoteNetworkId = 32; + * @return This builder for chaining. + */ + public Builder clearRemoteNetworkId() { + remoteNetworkId_ = getDefaultInstance().getRemoteNetworkId(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + *
+       * NetworkID of the remote address (post-resolution field)
+       * 
+ * + * string remoteNetworkId = 32; + * @param value The bytes for remoteNetworkId to set. + * @return This builder for chaining. + */ + public Builder setRemoteNetworkIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + remoteNetworkId_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private datadog.process_agent.ConnectionsOuterClass.IPTranslation ipTranslation_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.IPTranslation, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder, datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder> ipTranslationBuilder_; + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + * @return Whether the ipTranslation field is set. + */ + public boolean hasIpTranslation() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + * @return The ipTranslation. + */ + public datadog.process_agent.ConnectionsOuterClass.IPTranslation getIpTranslation() { + if (ipTranslationBuilder_ == null) { + return ipTranslation_ == null ? datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; + } else { + return ipTranslationBuilder_.getMessage(); + } + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + public Builder setIpTranslation(datadog.process_agent.ConnectionsOuterClass.IPTranslation value) { + if (ipTranslationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipTranslation_ = value; + } else { + ipTranslationBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + public Builder setIpTranslation( + datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder builderForValue) { + if (ipTranslationBuilder_ == null) { + ipTranslation_ = builderForValue.build(); + } else { + ipTranslationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + public Builder mergeIpTranslation(datadog.process_agent.ConnectionsOuterClass.IPTranslation value) { + if (ipTranslationBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + ipTranslation_ != null && + ipTranslation_ != datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance()) { + getIpTranslationBuilder().mergeFrom(value); + } else { + ipTranslation_ = value; + } + } else { + ipTranslationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + public Builder clearIpTranslation() { + bitField0_ = (bitField0_ & ~0x00008000); + ipTranslation_ = null; + if (ipTranslationBuilder_ != null) { + ipTranslationBuilder_.dispose(); + ipTranslationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + public datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder getIpTranslationBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getIpTranslationFieldBuilder().getBuilder(); + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + public datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder getIpTranslationOrBuilder() { + if (ipTranslationBuilder_ != null) { + return ipTranslationBuilder_.getMessageOrBuilder(); + } else { + return ipTranslation_ == null ? + datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; + } + } + /** + *
+       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
+       * 
+ * + * .datadog.process_agent.IPTranslation ipTranslation = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.IPTranslation, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder, datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder> + getIpTranslationFieldBuilder() { + if (ipTranslationBuilder_ == null) { + ipTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.IPTranslation, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder, datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder>( + getIpTranslation(), + getParentForChildren(), + isClean()); + ipTranslation_ = null; + } + return ipTranslationBuilder_; + } + + private int rtt_ ; + /** + *
+       * TCP-specific metrics
+       * 
+ * + * uint32 rtt = 22; + * @return The rtt. + */ + @java.lang.Override + public int getRtt() { + return rtt_; + } + /** + *
+       * TCP-specific metrics
+       * 
+ * + * uint32 rtt = 22; + * @param value The rtt to set. + * @return This builder for chaining. + */ + public Builder setRtt(int value) { + + rtt_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+       * TCP-specific metrics
+       * 
+ * + * uint32 rtt = 22; + * @return This builder for chaining. + */ + public Builder clearRtt() { + bitField0_ = (bitField0_ & ~0x00010000); + rtt_ = 0; + onChanged(); + return this; + } + + private int rttVar_ ; + /** + * uint32 rttVar = 23; + * @return The rttVar. + */ + @java.lang.Override + public int getRttVar() { + return rttVar_; + } + /** + * uint32 rttVar = 23; + * @param value The rttVar to set. + * @return This builder for chaining. + */ + public Builder setRttVar(int value) { + + rttVar_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * uint32 rttVar = 23; + * @return This builder for chaining. + */ + public Builder clearRttVar() { + bitField0_ = (bitField0_ & ~0x00020000); + rttVar_ = 0; + onChanged(); + return this; + } + + private boolean intraHost_ ; + /** + *
+       * Indicates that this connection begins and ends on the same host
+       * 
+ * + * bool intraHost = 24; + * @return The intraHost. + */ + @java.lang.Override + public boolean getIntraHost() { + return intraHost_; + } + /** + *
+       * Indicates that this connection begins and ends on the same host
+       * 
+ * + * bool intraHost = 24; + * @param value The intraHost to set. + * @return This builder for chaining. + */ + public Builder setIntraHost(boolean value) { + + intraHost_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+       * Indicates that this connection begins and ends on the same host
+       * 
+ * + * bool intraHost = 24; + * @return This builder for chaining. + */ + public Builder clearIntraHost() { + bitField0_ = (bitField0_ & ~0x00040000); + intraHost_ = false; + onChanged(); + return this; + } + + private int dnsSuccessfulResponses_ ; + /** + *
+       * DNS-specific metrics
+       * 
+ * + * uint32 dnsSuccessfulResponses = 25; + * @return The dnsSuccessfulResponses. + */ + @java.lang.Override + public int getDnsSuccessfulResponses() { + return dnsSuccessfulResponses_; + } + /** + *
+       * DNS-specific metrics
+       * 
+ * + * uint32 dnsSuccessfulResponses = 25; + * @param value The dnsSuccessfulResponses to set. + * @return This builder for chaining. + */ + public Builder setDnsSuccessfulResponses(int value) { + + dnsSuccessfulResponses_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+       * DNS-specific metrics
+       * 
+ * + * uint32 dnsSuccessfulResponses = 25; + * @return This builder for chaining. + */ + public Builder clearDnsSuccessfulResponses() { + bitField0_ = (bitField0_ & ~0x00080000); + dnsSuccessfulResponses_ = 0; + onChanged(); + return this; + } + + private int dnsFailedResponses_ ; + /** + * uint32 dnsFailedResponses = 26; + * @return The dnsFailedResponses. + */ + @java.lang.Override + public int getDnsFailedResponses() { + return dnsFailedResponses_; + } + /** + * uint32 dnsFailedResponses = 26; + * @param value The dnsFailedResponses to set. + * @return This builder for chaining. + */ + public Builder setDnsFailedResponses(int value) { + + dnsFailedResponses_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * uint32 dnsFailedResponses = 26; + * @return This builder for chaining. + */ + public Builder clearDnsFailedResponses() { + bitField0_ = (bitField0_ & ~0x00100000); + dnsFailedResponses_ = 0; + onChanged(); + return this; + } + + private int dnsTimeouts_ ; + /** + * uint32 dnsTimeouts = 27; + * @return The dnsTimeouts. + */ + @java.lang.Override + public int getDnsTimeouts() { + return dnsTimeouts_; + } + /** + * uint32 dnsTimeouts = 27; + * @param value The dnsTimeouts to set. + * @return This builder for chaining. + */ + public Builder setDnsTimeouts(int value) { + + dnsTimeouts_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * uint32 dnsTimeouts = 27; + * @return This builder for chaining. + */ + public Builder clearDnsTimeouts() { + bitField0_ = (bitField0_ & ~0x00200000); + dnsTimeouts_ = 0; + onChanged(); + return this; + } + + private long dnsSuccessLatencySum_ ; + /** + * uint64 dnsSuccessLatencySum = 28; + * @return The dnsSuccessLatencySum. + */ + @java.lang.Override + public long getDnsSuccessLatencySum() { + return dnsSuccessLatencySum_; + } + /** + * uint64 dnsSuccessLatencySum = 28; + * @param value The dnsSuccessLatencySum to set. + * @return This builder for chaining. + */ + public Builder setDnsSuccessLatencySum(long value) { + + dnsSuccessLatencySum_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * uint64 dnsSuccessLatencySum = 28; + * @return This builder for chaining. + */ + public Builder clearDnsSuccessLatencySum() { + bitField0_ = (bitField0_ & ~0x00400000); + dnsSuccessLatencySum_ = 0L; + onChanged(); + return this; + } + + private long dnsFailureLatencySum_ ; + /** + * uint64 dnsFailureLatencySum = 29; + * @return The dnsFailureLatencySum. + */ + @java.lang.Override + public long getDnsFailureLatencySum() { + return dnsFailureLatencySum_; + } + /** + * uint64 dnsFailureLatencySum = 29; + * @param value The dnsFailureLatencySum to set. + * @return This builder for chaining. + */ + public Builder setDnsFailureLatencySum(long value) { + + dnsFailureLatencySum_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * uint64 dnsFailureLatencySum = 29; + * @return This builder for chaining. + */ + public Builder clearDnsFailureLatencySum() { + bitField0_ = (bitField0_ & ~0x00800000); + dnsFailureLatencySum_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> dnsCountByRcode_; + private com.google.protobuf.MapField + internalGetDnsCountByRcode() { + if (dnsCountByRcode_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsCountByRcodeDefaultEntryHolder.defaultEntry); + } + return dnsCountByRcode_; + } + private com.google.protobuf.MapField + internalGetMutableDnsCountByRcode() { + if (dnsCountByRcode_ == null) { + dnsCountByRcode_ = com.google.protobuf.MapField.newMapField( + DnsCountByRcodeDefaultEntryHolder.defaultEntry); + } + if (!dnsCountByRcode_.isMutable()) { + dnsCountByRcode_ = dnsCountByRcode_.copy(); + } + bitField0_ |= 0x01000000; + onChanged(); + return dnsCountByRcode_; + } + public int getDnsCountByRcodeCount() { + return internalGetDnsCountByRcode().getMap().size(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public boolean containsDnsCountByRcode( + int key) { + + return internalGetDnsCountByRcode().getMap().containsKey(key); + } + /** + * Use {@link #getDnsCountByRcodeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsCountByRcode() { + return getDnsCountByRcodeMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public java.util.Map getDnsCountByRcodeMap() { + return internalGetDnsCountByRcode().getMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public int getDnsCountByRcodeOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + @java.lang.Override + public int getDnsCountByRcodeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDnsCountByRcode() { + bitField0_ = (bitField0_ & ~0x01000000); + internalGetMutableDnsCountByRcode().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + public Builder removeDnsCountByRcode( + int key) { + + internalGetMutableDnsCountByRcode().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDnsCountByRcode() { + bitField0_ |= 0x01000000; + return internalGetMutableDnsCountByRcode().getMutableMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + public Builder putDnsCountByRcode( + int key, + int value) { + + + internalGetMutableDnsCountByRcode().getMutableMap() + .put(key, value); + bitField0_ |= 0x01000000; + return this; + } + /** + * map<uint32, uint32> dnsCountByRcode = 33; + */ + public Builder putAllDnsCountByRcode( + java.util.Map values) { + internalGetMutableDnsCountByRcode().getMutableMap() + .putAll(values); + bitField0_ |= 0x01000000; + return this; + } + + private int lastTcpEstablished_ ; + /** + *
+       * TCP state transition counters relative to last check
+       * 
+ * + * uint32 lastTcpEstablished = 30; + * @return The lastTcpEstablished. + */ + @java.lang.Override + public int getLastTcpEstablished() { + return lastTcpEstablished_; + } + /** + *
+       * TCP state transition counters relative to last check
+       * 
+ * + * uint32 lastTcpEstablished = 30; + * @param value The lastTcpEstablished to set. + * @return This builder for chaining. + */ + public Builder setLastTcpEstablished(int value) { + + lastTcpEstablished_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+       * TCP state transition counters relative to last check
+       * 
+ * + * uint32 lastTcpEstablished = 30; + * @return This builder for chaining. + */ + public Builder clearLastTcpEstablished() { + bitField0_ = (bitField0_ & ~0x02000000); + lastTcpEstablished_ = 0; + onChanged(); + return this; + } + + private int lastTcpClosed_ ; + /** + * uint32 lastTcpClosed = 31; + * @return The lastTcpClosed. + */ + @java.lang.Override + public int getLastTcpClosed() { + return lastTcpClosed_; + } + /** + * uint32 lastTcpClosed = 31; + * @param value The lastTcpClosed to set. + * @return This builder for chaining. + */ + public Builder setLastTcpClosed(int value) { + + lastTcpClosed_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * uint32 lastTcpClosed = 31; + * @return This builder for chaining. + */ + public Builder clearLastTcpClosed() { + bitField0_ = (bitField0_ & ~0x04000000); + lastTcpClosed_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByDomain_; + private com.google.protobuf.MapField + internalGetDnsStatsByDomain() { + if (dnsStatsByDomain_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByDomainDefaultEntryHolder.defaultEntry); + } + return dnsStatsByDomain_; + } + private com.google.protobuf.MapField + internalGetMutableDnsStatsByDomain() { + if (dnsStatsByDomain_ == null) { + dnsStatsByDomain_ = com.google.protobuf.MapField.newMapField( + DnsStatsByDomainDefaultEntryHolder.defaultEntry); + } + if (!dnsStatsByDomain_.isMutable()) { + dnsStatsByDomain_ = dnsStatsByDomain_.copy(); + } + bitField0_ |= 0x08000000; + onChanged(); + return dnsStatsByDomain_; + } + public int getDnsStatsByDomainCount() { + return internalGetDnsStatsByDomain().getMap().size(); + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public boolean containsDnsStatsByDomain( + int key) { + + return internalGetDnsStatsByDomain().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByDomainMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByDomain() { + return getDnsStatsByDomainMap(); + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public java.util.Map getDnsStatsByDomainMap() { + return internalGetDnsStatsByDomain().getMap(); + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { + + java.util.Map map = + internalGetDnsStatsByDomain().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByDomain().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDnsStatsByDomain() { + bitField0_ = (bitField0_ & ~0x08000000); + internalGetMutableDnsStatsByDomain().getMutableMap() + .clear(); + return this; + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + public Builder removeDnsStatsByDomain( + int key) { + + internalGetMutableDnsStatsByDomain().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDnsStatsByDomain() { + bitField0_ |= 0x08000000; + return internalGetMutableDnsStatsByDomain().getMutableMap(); + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + public Builder putDnsStatsByDomain( + int key, + datadog.process_agent.ConnectionsOuterClass.DNSStats value) { + + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDnsStatsByDomain().getMutableMap() + .put(key, value); + bitField0_ |= 0x08000000; + return this; + } + /** + *
+       * 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
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; + */ + public Builder putAllDnsStatsByDomain( + java.util.Map values) { + internalGetMutableDnsStatsByDomain().getMutableMap() + .putAll(values); + bitField0_ |= 0x08000000; + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainByQueryType_; + private com.google.protobuf.MapField + internalGetDnsStatsByDomainByQueryType() { + if (dnsStatsByDomainByQueryType_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry); + } + return dnsStatsByDomainByQueryType_; + } + private com.google.protobuf.MapField + internalGetMutableDnsStatsByDomainByQueryType() { + if (dnsStatsByDomainByQueryType_ == null) { + dnsStatsByDomainByQueryType_ = com.google.protobuf.MapField.newMapField( + DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry); + } + if (!dnsStatsByDomainByQueryType_.isMutable()) { + dnsStatsByDomainByQueryType_ = dnsStatsByDomainByQueryType_.copy(); + } + bitField0_ |= 0x10000000; + onChanged(); + return dnsStatsByDomainByQueryType_; + } + public int getDnsStatsByDomainByQueryTypeCount() { + return internalGetDnsStatsByDomainByQueryType().getMap().size(); + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public boolean containsDnsStatsByDomainByQueryType( + int key) { + + return internalGetDnsStatsByDomainByQueryType().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByDomainByQueryTypeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByDomainByQueryType() { + return getDnsStatsByDomainByQueryTypeMap(); + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public java.util.Map getDnsStatsByDomainByQueryTypeMap() { + return internalGetDnsStatsByDomainByQueryType().getMap(); + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { + + java.util.Map map = + internalGetDnsStatsByDomainByQueryType().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByDomainByQueryType().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDnsStatsByDomainByQueryType() { + bitField0_ = (bitField0_ & ~0x10000000); + internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() + .clear(); + return this; + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + public Builder removeDnsStatsByDomainByQueryType( + int key) { + + internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDnsStatsByDomainByQueryType() { + bitField0_ |= 0x10000000; + return internalGetMutableDnsStatsByDomainByQueryType().getMutableMap(); + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + public Builder putDnsStatsByDomainByQueryType( + int key, + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType value) { + + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() + .put(key, value); + bitField0_ |= 0x10000000; + return this; + } + /** + *
+       * dnsStatsByDomainByQueryType is new field
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; + */ + public Builder putAllDnsStatsByDomainByQueryType( + java.util.Map values) { + internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() + .putAll(values); + bitField0_ |= 0x10000000; + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType_; + private com.google.protobuf.MapField + internalGetDnsStatsByDomainOffsetByQueryType() { + if (dnsStatsByDomainOffsetByQueryType_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry); + } + return dnsStatsByDomainOffsetByQueryType_; + } + private com.google.protobuf.MapField + internalGetMutableDnsStatsByDomainOffsetByQueryType() { + if (dnsStatsByDomainOffsetByQueryType_ == null) { + dnsStatsByDomainOffsetByQueryType_ = com.google.protobuf.MapField.newMapField( + DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry); + } + if (!dnsStatsByDomainOffsetByQueryType_.isMutable()) { + dnsStatsByDomainOffsetByQueryType_ = dnsStatsByDomainOffsetByQueryType_.copy(); + } + bitField0_ |= 0x20000000; + onChanged(); + return dnsStatsByDomainOffsetByQueryType_; + } + public int getDnsStatsByDomainOffsetByQueryTypeCount() { + return internalGetDnsStatsByDomainOffsetByQueryType().getMap().size(); + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public boolean containsDnsStatsByDomainOffsetByQueryType( + int key) { + + return internalGetDnsStatsByDomainOffsetByQueryType().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByDomainOffsetByQueryTypeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByDomainOffsetByQueryType() { + return getDnsStatsByDomainOffsetByQueryTypeMap(); + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public java.util.Map getDnsStatsByDomainOffsetByQueryTypeMap() { + return internalGetDnsStatsByDomainOffsetByQueryType().getMap(); + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { + + java.util.Map map = + internalGetDnsStatsByDomainOffsetByQueryType().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByDomainOffsetByQueryType().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDnsStatsByDomainOffsetByQueryType() { + bitField0_ = (bitField0_ & ~0x20000000); + internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() + .clear(); + return this; + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + public Builder removeDnsStatsByDomainOffsetByQueryType( + int key) { + + internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDnsStatsByDomainOffsetByQueryType() { + bitField0_ |= 0x20000000; + return internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap(); + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + public Builder putDnsStatsByDomainOffsetByQueryType( + int key, + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType value) { + + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() + .put(key, value); + bitField0_ |= 0x20000000; + return this; + } + /** + *
+       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
+       * 
+ * + * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; + */ + public Builder putAllDnsStatsByDomainOffsetByQueryType( + java.util.Map values) { + internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() + .putAll(values); + bitField0_ |= 0x20000000; + return this; + } + + private int routeIdx_ ; + /** + * int32 routeIdx = 36; + * @return The routeIdx. + */ + @java.lang.Override + public int getRouteIdx() { + return routeIdx_; + } + /** + * int32 routeIdx = 36; + * @param value The routeIdx to set. + * @return This builder for chaining. + */ + public Builder setRouteIdx(int value) { + + routeIdx_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + * int32 routeIdx = 36; + * @return This builder for chaining. + */ + public Builder clearRouteIdx() { + bitField0_ = (bitField0_ & ~0x40000000); + routeIdx_ = 0; + onChanged(); + return this; + } + + private int routeTargetIdx_ ; + /** + *
+       * the index of the resolved target of the route (post-resolution field)
+       * 
+ * + * int32 routeTargetIdx = 40; + * @return The routeTargetIdx. + */ + @java.lang.Override + public int getRouteTargetIdx() { + return routeTargetIdx_; + } + /** + *
+       * the index of the resolved target of the route (post-resolution field)
+       * 
+ * + * int32 routeTargetIdx = 40; + * @param value The routeTargetIdx to set. + * @return This builder for chaining. + */ + public Builder setRouteTargetIdx(int value) { + + routeTargetIdx_ = value; + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+       * the index of the resolved target of the route (post-resolution field)
+       * 
+ * + * int32 routeTargetIdx = 40; + * @return This builder for chaining. + */ + public Builder clearRouteTargetIdx() { + bitField0_ = (bitField0_ & ~0x80000000); + routeTargetIdx_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString httpAggregations_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
+       * 
+ * + * bytes httpAggregations = 37; + * @return The httpAggregations. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHttpAggregations() { + return httpAggregations_; + } + /** + *
+       * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
+       * 
+ * + * bytes httpAggregations = 37; + * @param value The httpAggregations to set. + * @return This builder for chaining. + */ + public Builder setHttpAggregations(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + httpAggregations_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
+       * 
+ * + * bytes httpAggregations = 37; + * @return This builder for chaining. + */ + public Builder clearHttpAggregations() { + bitField1_ = (bitField1_ & ~0x00000001); + httpAggregations_ = getDefaultInstance().getHttpAggregations(); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList tags_ = emptyIntList(); + private void ensureTagsIsMutable() { + if (!((bitField1_ & 0x00000002) != 0)) { + tags_ = mutableCopy(tags_); + bitField1_ |= 0x00000002; + } + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @return A list containing the tags. + */ + public java.util.List + getTagsList() { + return ((bitField1_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(tags_) : tags_; + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public int getTags(int index) { + return tags_.getInt(index); + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, int value) { + + ensureTagsIsMutable(); + tags_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(int value) { + + ensureTagsIsMutable(); + tags_.addInt(value); + onChanged(); + return this; + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * The stored values corresponds to an index into the `Connections.tags` field
+       * 
+ * + * repeated uint32 tags = 44; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = emptyIntList(); + bitField1_ = (bitField1_ & ~0x00000002); + onChanged(); + return this; + } + + private int tagsIdx_ ; + /** + *
+       * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
+       * 
+ * + * int32 tagsIdx = 45; + * @return The tagsIdx. + */ + @java.lang.Override + public int getTagsIdx() { + return tagsIdx_; + } + /** + *
+       * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
+       * 
+ * + * int32 tagsIdx = 45; + * @param value The tagsIdx to set. + * @return This builder for chaining. + */ + public Builder setTagsIdx(int value) { + + tagsIdx_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
+       * 
+ * + * int32 tagsIdx = 45; + * @return This builder for chaining. + */ + public Builder clearTagsIdx() { + bitField1_ = (bitField1_ & ~0x00000004); + tagsIdx_ = 0; + onChanged(); + return this; + } + + private int tagsChecksum_ ; + /** + *
+       * 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.
+       * 
+ * + * uint32 tagsChecksum = 47; + * @return The tagsChecksum. + */ + @java.lang.Override + public int getTagsChecksum() { + return tagsChecksum_; + } + /** + *
+       * 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.
+       * 
+ * + * uint32 tagsChecksum = 47; + * @param value The tagsChecksum to set. + * @return This builder for chaining. + */ + public Builder setTagsChecksum(int value) { + + tagsChecksum_ = value; + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * 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.
+       * 
+ * + * uint32 tagsChecksum = 47; + * @return This builder for chaining. + */ + public Builder clearTagsChecksum() { + bitField1_ = (bitField1_ & ~0x00000008); + tagsChecksum_ = 0; + onChanged(); + return this; + } + + private int stateIndex_ ; + /** + *
+       * Used for offset state management (backend)
+       * 
+ * + * uint32 stateIndex = 46; + * @return The stateIndex. + */ + @java.lang.Override + public int getStateIndex() { + return stateIndex_; + } + /** + *
+       * Used for offset state management (backend)
+       * 
+ * + * uint32 stateIndex = 46; + * @param value The stateIndex to set. + * @return This builder for chaining. + */ + public Builder setStateIndex(int value) { + + stateIndex_ = value; + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * Used for offset state management (backend)
+       * 
+ * + * uint32 stateIndex = 46; + * @return This builder for chaining. + */ + public Builder clearStateIndex() { + bitField1_ = (bitField1_ & ~0x00000010); + stateIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
+       * 
+ * + * bytes dataStreamsAggregations = 49; + * @return The dataStreamsAggregations. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStreamsAggregations() { + return dataStreamsAggregations_; + } + /** + *
+       * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
+       * 
+ * + * bytes dataStreamsAggregations = 49; + * @param value The dataStreamsAggregations to set. + * @return This builder for chaining. + */ + public Builder setDataStreamsAggregations(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + dataStreamsAggregations_ = value; + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
+       * 
+ * + * bytes dataStreamsAggregations = 49; + * @return This builder for chaining. + */ + public Builder clearDataStreamsAggregations() { + bitField1_ = (bitField1_ & ~0x00000020); + dataStreamsAggregations_ = getDefaultInstance().getDataStreamsAggregations(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
+       * 
+ * + * bytes http2Aggregations = 50; + * @return The http2Aggregations. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHttp2Aggregations() { + return http2Aggregations_; + } + /** + *
+       * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
+       * 
+ * + * bytes http2Aggregations = 50; + * @param value The http2Aggregations to set. + * @return This builder for chaining. + */ + public Builder setHttp2Aggregations(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + http2Aggregations_ = value; + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+       * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
+       * 
+ * + * bytes http2Aggregations = 50; + * @return This builder for chaining. + */ + public Builder clearHttp2Aggregations() { + bitField1_ = (bitField1_ & ~0x00000040); + http2Aggregations_ = getDefaultInstance().getHttp2Aggregations(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.Connection) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.Connection) + private static final datadog.process_agent.ConnectionsOuterClass.Connection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Connection(); + } + + public static datadog.process_agent.ConnectionsOuterClass.Connection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Connection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.ResourceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * uint32 key = 2; + * @return The key. + */ + int getKey(); + + /** + * bytes byteKey = 3; + * @return The byteKey. + */ + com.google.protobuf.ByteString getByteKey(); + + /** + * repeated string tags = 4; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 4; + * @return The count of tags. + */ + int getTagsCount(); + /** + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + * int32 tagIndex = 5; + * @return The tagIndex. + */ + int getTagIndex(); + + /** + * int64 tagsModified = 6; + * @return The tagsModified. + */ + long getTagsModified(); + } + /** + *
+   * ResourceMetadata only holds enough information to identify a resource in connection data
+   * 
+ * + * Protobuf type {@code datadog.process_agent.ResourceMetadata} + */ + public static final class ResourceMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.ResourceMetadata) + ResourceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceMetadata.newBuilder() to construct. + private ResourceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceMetadata() { + id_ = ""; + byteKey_ = com.google.protobuf.ByteString.EMPTY; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.class, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + private int key_ = 0; + /** + * uint32 key = 2; + * @return The key. + */ + @java.lang.Override + public int getKey() { + return key_; + } + + public static final int BYTEKEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString byteKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes byteKey = 3; + * @return The byteKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getByteKey() { + return byteKey_; + } + + public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int TAGINDEX_FIELD_NUMBER = 5; + private int tagIndex_ = 0; + /** + * int32 tagIndex = 5; + * @return The tagIndex. + */ + @java.lang.Override + public int getTagIndex() { + return tagIndex_; + } + + public static final int TAGSMODIFIED_FIELD_NUMBER = 6; + private long tagsModified_ = 0L; + /** + * int64 tagsModified = 6; + * @return The tagsModified. + */ + @java.lang.Override + public long getTagsModified() { + return tagsModified_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (key_ != 0) { + output.writeUInt32(2, key_); + } + if (!byteKey_.isEmpty()) { + output.writeBytes(3, byteKey_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); + } + if (tagIndex_ != 0) { + output.writeInt32(5, tagIndex_); + } + if (tagsModified_ != 0L) { + output.writeInt64(6, tagsModified_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (key_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, key_); + } + if (!byteKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, byteKey_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (tagIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, tagIndex_); + } + if (tagsModified_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, tagsModified_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.ResourceMetadata)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata other = (datadog.process_agent.ConnectionsOuterClass.ResourceMetadata) obj; + + if (!getId() + .equals(other.getId())) return false; + if (getKey() + != other.getKey()) return false; + if (!getByteKey() + .equals(other.getByteKey())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (getTagIndex() + != other.getTagIndex()) return false; + if (getTagsModified() + != other.getTagsModified()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey(); + hash = (37 * hash) + BYTEKEY_FIELD_NUMBER; + hash = (53 * hash) + getByteKey().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + TAGINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTagIndex(); + hash = (37 * hash) + TAGSMODIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTagsModified()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceMetadata only holds enough information to identify a resource in connection data
+     * 
+ * + * Protobuf type {@code datadog.process_agent.ResourceMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.ResourceMetadata) + datadog.process_agent.ConnectionsOuterClass.ResourceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.class, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + key_ = 0; + byteKey_ = com.google.protobuf.ByteString.EMPTY; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + tagIndex_ = 0; + tagsModified_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata build() { + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata buildPartial() { + datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result = new datadog.process_agent.ConnectionsOuterClass.ResourceMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result) { + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.byteKey_ = byteKey_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tagIndex_ = tagIndex_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tagsModified_ = tagsModified_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.ResourceMetadata) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.ResourceMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata other) { + if (other == datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getKey() != 0) { + setKey(other.getKey()); + } + if (other.getByteKey() != com.google.protobuf.ByteString.EMPTY) { + setByteKey(other.getByteKey()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getTagIndex() != 0) { + setTagIndex(other.getTagIndex()); + } + if (other.getTagsModified() != 0L) { + setTagsModified(other.getTagsModified()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + key_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + byteKey_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: { + tagIndex_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + tagsModified_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int key_ ; + /** + * uint32 key = 2; + * @return The key. + */ + @java.lang.Override + public int getKey() { + return key_; + } + /** + * uint32 key = 2; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(int value) { + + key_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 key = 2; + * @return This builder for chaining. + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000002); + key_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString byteKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes byteKey = 3; + * @return The byteKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getByteKey() { + return byteKey_; + } + /** + * bytes byteKey = 3; + * @param value The byteKey to set. + * @return This builder for chaining. + */ + public Builder setByteKey(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + byteKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bytes byteKey = 3; + * @return This builder for chaining. + */ + public Builder clearByteKey() { + bitField0_ = (bitField0_ & ~0x00000004); + byteKey_ = getDefaultInstance().getByteKey(); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 4; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * repeated string tags = 4; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private int tagIndex_ ; + /** + * int32 tagIndex = 5; + * @return The tagIndex. + */ + @java.lang.Override + public int getTagIndex() { + return tagIndex_; + } + /** + * int32 tagIndex = 5; + * @param value The tagIndex to set. + * @return This builder for chaining. + */ + public Builder setTagIndex(int value) { + + tagIndex_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int32 tagIndex = 5; + * @return This builder for chaining. + */ + public Builder clearTagIndex() { + bitField0_ = (bitField0_ & ~0x00000010); + tagIndex_ = 0; + onChanged(); + return this; + } + + private long tagsModified_ ; + /** + * int64 tagsModified = 6; + * @return The tagsModified. + */ + @java.lang.Override + public long getTagsModified() { + return tagsModified_; + } + /** + * int64 tagsModified = 6; + * @param value The tagsModified to set. + * @return This builder for chaining. + */ + public Builder setTagsModified(long value) { + + tagsModified_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * int64 tagsModified = 6; + * @return This builder for chaining. + */ + public Builder clearTagsModified() { + bitField0_ = (bitField0_ & ~0x00000020); + tagsModified_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.ResourceMetadata) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.ResourceMetadata) + private static final datadog.process_agent.ConnectionsOuterClass.ResourceMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.ResourceMetadata(); + } + + public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConnectionsTelemetryOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.ConnectionsTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 monotonicKprobesTriggered = 1; + * @return The monotonicKprobesTriggered. + */ + long getMonotonicKprobesTriggered(); + + /** + * int64 monotonicKprobesMissed = 2; + * @return The monotonicKprobesMissed. + */ + long getMonotonicKprobesMissed(); + + /** + * int64 monotonicConntrackRegisters = 3; + * @return The monotonicConntrackRegisters. + */ + long getMonotonicConntrackRegisters(); + + /** + * int64 monotonicConntrackRegistersDropped = 4; + * @return The monotonicConntrackRegistersDropped. + */ + long getMonotonicConntrackRegistersDropped(); + + /** + * int64 monotonicDnsPacketsProcessed = 5; + * @return The monotonicDnsPacketsProcessed. + */ + long getMonotonicDnsPacketsProcessed(); + + /** + * int64 monotonicConnsClosed = 6; + * @return The monotonicConnsClosed. + */ + long getMonotonicConnsClosed(); + + /** + * int64 connsBpfMapSize = 7; + * @return The connsBpfMapSize. + */ + long getConnsBpfMapSize(); + + /** + * int64 monotonicUdpSendsProcessed = 8; + * @return The monotonicUdpSendsProcessed. + */ + long getMonotonicUdpSendsProcessed(); + + /** + * int64 monotonicUdpSendsMissed = 9; + * @return The monotonicUdpSendsMissed. + */ + long getMonotonicUdpSendsMissed(); + + /** + * int64 conntrackSamplingPercent = 10; + * @return The conntrackSamplingPercent. + */ + long getConntrackSamplingPercent(); + + /** + * int64 dnsStatsDropped = 11; + * @return The dnsStatsDropped. + */ + long getDnsStatsDropped(); + } + /** + * Protobuf type {@code datadog.process_agent.ConnectionsTelemetry} + */ + public static final class ConnectionsTelemetry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.ConnectionsTelemetry) + ConnectionsTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionsTelemetry.newBuilder() to construct. + private ConnectionsTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectionsTelemetry() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectionsTelemetry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder.class); + } + + public static final int MONOTONICKPROBESTRIGGERED_FIELD_NUMBER = 1; + private long monotonicKprobesTriggered_ = 0L; + /** + * int64 monotonicKprobesTriggered = 1; + * @return The monotonicKprobesTriggered. + */ + @java.lang.Override + public long getMonotonicKprobesTriggered() { + return monotonicKprobesTriggered_; + } + + public static final int MONOTONICKPROBESMISSED_FIELD_NUMBER = 2; + private long monotonicKprobesMissed_ = 0L; + /** + * int64 monotonicKprobesMissed = 2; + * @return The monotonicKprobesMissed. + */ + @java.lang.Override + public long getMonotonicKprobesMissed() { + return monotonicKprobesMissed_; + } + + public static final int MONOTONICCONNTRACKREGISTERS_FIELD_NUMBER = 3; + private long monotonicConntrackRegisters_ = 0L; + /** + * int64 monotonicConntrackRegisters = 3; + * @return The monotonicConntrackRegisters. + */ + @java.lang.Override + public long getMonotonicConntrackRegisters() { + return monotonicConntrackRegisters_; + } + + public static final int MONOTONICCONNTRACKREGISTERSDROPPED_FIELD_NUMBER = 4; + private long monotonicConntrackRegistersDropped_ = 0L; + /** + * int64 monotonicConntrackRegistersDropped = 4; + * @return The monotonicConntrackRegistersDropped. + */ + @java.lang.Override + public long getMonotonicConntrackRegistersDropped() { + return monotonicConntrackRegistersDropped_; + } + + public static final int MONOTONICDNSPACKETSPROCESSED_FIELD_NUMBER = 5; + private long monotonicDnsPacketsProcessed_ = 0L; + /** + * int64 monotonicDnsPacketsProcessed = 5; + * @return The monotonicDnsPacketsProcessed. + */ + @java.lang.Override + public long getMonotonicDnsPacketsProcessed() { + return monotonicDnsPacketsProcessed_; + } + + public static final int MONOTONICCONNSCLOSED_FIELD_NUMBER = 6; + private long monotonicConnsClosed_ = 0L; + /** + * int64 monotonicConnsClosed = 6; + * @return The monotonicConnsClosed. + */ + @java.lang.Override + public long getMonotonicConnsClosed() { + return monotonicConnsClosed_; + } + + public static final int CONNSBPFMAPSIZE_FIELD_NUMBER = 7; + private long connsBpfMapSize_ = 0L; + /** + * int64 connsBpfMapSize = 7; + * @return The connsBpfMapSize. + */ + @java.lang.Override + public long getConnsBpfMapSize() { + return connsBpfMapSize_; + } + + public static final int MONOTONICUDPSENDSPROCESSED_FIELD_NUMBER = 8; + private long monotonicUdpSendsProcessed_ = 0L; + /** + * int64 monotonicUdpSendsProcessed = 8; + * @return The monotonicUdpSendsProcessed. + */ + @java.lang.Override + public long getMonotonicUdpSendsProcessed() { + return monotonicUdpSendsProcessed_; + } + + public static final int MONOTONICUDPSENDSMISSED_FIELD_NUMBER = 9; + private long monotonicUdpSendsMissed_ = 0L; + /** + * int64 monotonicUdpSendsMissed = 9; + * @return The monotonicUdpSendsMissed. + */ + @java.lang.Override + public long getMonotonicUdpSendsMissed() { + return monotonicUdpSendsMissed_; + } + + public static final int CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER = 10; + private long conntrackSamplingPercent_ = 0L; + /** + * int64 conntrackSamplingPercent = 10; + * @return The conntrackSamplingPercent. + */ + @java.lang.Override + public long getConntrackSamplingPercent() { + return conntrackSamplingPercent_; + } + + public static final int DNSSTATSDROPPED_FIELD_NUMBER = 11; + private long dnsStatsDropped_ = 0L; + /** + * int64 dnsStatsDropped = 11; + * @return The dnsStatsDropped. + */ + @java.lang.Override + public long getDnsStatsDropped() { + return dnsStatsDropped_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (monotonicKprobesTriggered_ != 0L) { + output.writeInt64(1, monotonicKprobesTriggered_); + } + if (monotonicKprobesMissed_ != 0L) { + output.writeInt64(2, monotonicKprobesMissed_); + } + if (monotonicConntrackRegisters_ != 0L) { + output.writeInt64(3, monotonicConntrackRegisters_); + } + if (monotonicConntrackRegistersDropped_ != 0L) { + output.writeInt64(4, monotonicConntrackRegistersDropped_); + } + if (monotonicDnsPacketsProcessed_ != 0L) { + output.writeInt64(5, monotonicDnsPacketsProcessed_); + } + if (monotonicConnsClosed_ != 0L) { + output.writeInt64(6, monotonicConnsClosed_); + } + if (connsBpfMapSize_ != 0L) { + output.writeInt64(7, connsBpfMapSize_); + } + if (monotonicUdpSendsProcessed_ != 0L) { + output.writeInt64(8, monotonicUdpSendsProcessed_); + } + if (monotonicUdpSendsMissed_ != 0L) { + output.writeInt64(9, monotonicUdpSendsMissed_); + } + if (conntrackSamplingPercent_ != 0L) { + output.writeInt64(10, conntrackSamplingPercent_); + } + if (dnsStatsDropped_ != 0L) { + output.writeInt64(11, dnsStatsDropped_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (monotonicKprobesTriggered_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, monotonicKprobesTriggered_); + } + if (monotonicKprobesMissed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, monotonicKprobesMissed_); + } + if (monotonicConntrackRegisters_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, monotonicConntrackRegisters_); + } + if (monotonicConntrackRegistersDropped_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, monotonicConntrackRegistersDropped_); + } + if (monotonicDnsPacketsProcessed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, monotonicDnsPacketsProcessed_); + } + if (monotonicConnsClosed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, monotonicConnsClosed_); + } + if (connsBpfMapSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, connsBpfMapSize_); + } + if (monotonicUdpSendsProcessed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, monotonicUdpSendsProcessed_); + } + if (monotonicUdpSendsMissed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, monotonicUdpSendsMissed_); + } + if (conntrackSamplingPercent_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, conntrackSamplingPercent_); + } + if (dnsStatsDropped_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, dnsStatsDropped_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry other = (datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry) obj; + + if (getMonotonicKprobesTriggered() + != other.getMonotonicKprobesTriggered()) return false; + if (getMonotonicKprobesMissed() + != other.getMonotonicKprobesMissed()) return false; + if (getMonotonicConntrackRegisters() + != other.getMonotonicConntrackRegisters()) return false; + if (getMonotonicConntrackRegistersDropped() + != other.getMonotonicConntrackRegistersDropped()) return false; + if (getMonotonicDnsPacketsProcessed() + != other.getMonotonicDnsPacketsProcessed()) return false; + if (getMonotonicConnsClosed() + != other.getMonotonicConnsClosed()) return false; + if (getConnsBpfMapSize() + != other.getConnsBpfMapSize()) return false; + if (getMonotonicUdpSendsProcessed() + != other.getMonotonicUdpSendsProcessed()) return false; + if (getMonotonicUdpSendsMissed() + != other.getMonotonicUdpSendsMissed()) return false; + if (getConntrackSamplingPercent() + != other.getConntrackSamplingPercent()) return false; + if (getDnsStatsDropped() + != other.getDnsStatsDropped()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MONOTONICKPROBESTRIGGERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicKprobesTriggered()); + hash = (37 * hash) + MONOTONICKPROBESMISSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicKprobesMissed()); + hash = (37 * hash) + MONOTONICCONNTRACKREGISTERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicConntrackRegisters()); + hash = (37 * hash) + MONOTONICCONNTRACKREGISTERSDROPPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicConntrackRegistersDropped()); + hash = (37 * hash) + MONOTONICDNSPACKETSPROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicDnsPacketsProcessed()); + hash = (37 * hash) + MONOTONICCONNSCLOSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicConnsClosed()); + hash = (37 * hash) + CONNSBPFMAPSIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConnsBpfMapSize()); + hash = (37 * hash) + MONOTONICUDPSENDSPROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicUdpSendsProcessed()); + hash = (37 * hash) + MONOTONICUDPSENDSMISSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMonotonicUdpSendsMissed()); + hash = (37 * hash) + CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConntrackSamplingPercent()); + hash = (37 * hash) + DNSSTATSDROPPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsStatsDropped()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.ConnectionsTelemetry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.ConnectionsTelemetry) + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + monotonicKprobesTriggered_ = 0L; + monotonicKprobesMissed_ = 0L; + monotonicConntrackRegisters_ = 0L; + monotonicConntrackRegistersDropped_ = 0L; + monotonicDnsPacketsProcessed_ = 0L; + monotonicConnsClosed_ = 0L; + connsBpfMapSize_ = 0L; + monotonicUdpSendsProcessed_ = 0L; + monotonicUdpSendsMissed_ = 0L; + conntrackSamplingPercent_ = 0L; + dnsStatsDropped_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry build() { + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry buildPartial() { + datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry result = new datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.monotonicKprobesTriggered_ = monotonicKprobesTriggered_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.monotonicKprobesMissed_ = monotonicKprobesMissed_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.monotonicConntrackRegisters_ = monotonicConntrackRegisters_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.monotonicConntrackRegistersDropped_ = monotonicConntrackRegistersDropped_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.monotonicDnsPacketsProcessed_ = monotonicDnsPacketsProcessed_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.monotonicConnsClosed_ = monotonicConnsClosed_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.connsBpfMapSize_ = connsBpfMapSize_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.monotonicUdpSendsProcessed_ = monotonicUdpSendsProcessed_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.monotonicUdpSendsMissed_ = monotonicUdpSendsMissed_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.conntrackSamplingPercent_ = conntrackSamplingPercent_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.dnsStatsDropped_ = dnsStatsDropped_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry other) { + if (other == datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance()) return this; + if (other.getMonotonicKprobesTriggered() != 0L) { + setMonotonicKprobesTriggered(other.getMonotonicKprobesTriggered()); + } + if (other.getMonotonicKprobesMissed() != 0L) { + setMonotonicKprobesMissed(other.getMonotonicKprobesMissed()); + } + if (other.getMonotonicConntrackRegisters() != 0L) { + setMonotonicConntrackRegisters(other.getMonotonicConntrackRegisters()); + } + if (other.getMonotonicConntrackRegistersDropped() != 0L) { + setMonotonicConntrackRegistersDropped(other.getMonotonicConntrackRegistersDropped()); + } + if (other.getMonotonicDnsPacketsProcessed() != 0L) { + setMonotonicDnsPacketsProcessed(other.getMonotonicDnsPacketsProcessed()); + } + if (other.getMonotonicConnsClosed() != 0L) { + setMonotonicConnsClosed(other.getMonotonicConnsClosed()); + } + if (other.getConnsBpfMapSize() != 0L) { + setConnsBpfMapSize(other.getConnsBpfMapSize()); + } + if (other.getMonotonicUdpSendsProcessed() != 0L) { + setMonotonicUdpSendsProcessed(other.getMonotonicUdpSendsProcessed()); + } + if (other.getMonotonicUdpSendsMissed() != 0L) { + setMonotonicUdpSendsMissed(other.getMonotonicUdpSendsMissed()); + } + if (other.getConntrackSamplingPercent() != 0L) { + setConntrackSamplingPercent(other.getConntrackSamplingPercent()); + } + if (other.getDnsStatsDropped() != 0L) { + setDnsStatsDropped(other.getDnsStatsDropped()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + monotonicKprobesTriggered_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + monotonicKprobesMissed_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + monotonicConntrackRegisters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + monotonicConntrackRegistersDropped_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + monotonicDnsPacketsProcessed_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + monotonicConnsClosed_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + connsBpfMapSize_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + monotonicUdpSendsProcessed_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + monotonicUdpSendsMissed_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + conntrackSamplingPercent_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + dnsStatsDropped_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long monotonicKprobesTriggered_ ; + /** + * int64 monotonicKprobesTriggered = 1; + * @return The monotonicKprobesTriggered. + */ + @java.lang.Override + public long getMonotonicKprobesTriggered() { + return monotonicKprobesTriggered_; + } + /** + * int64 monotonicKprobesTriggered = 1; + * @param value The monotonicKprobesTriggered to set. + * @return This builder for chaining. + */ + public Builder setMonotonicKprobesTriggered(long value) { + + monotonicKprobesTriggered_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int64 monotonicKprobesTriggered = 1; + * @return This builder for chaining. + */ + public Builder clearMonotonicKprobesTriggered() { + bitField0_ = (bitField0_ & ~0x00000001); + monotonicKprobesTriggered_ = 0L; + onChanged(); + return this; + } + + private long monotonicKprobesMissed_ ; + /** + * int64 monotonicKprobesMissed = 2; + * @return The monotonicKprobesMissed. + */ + @java.lang.Override + public long getMonotonicKprobesMissed() { + return monotonicKprobesMissed_; + } + /** + * int64 monotonicKprobesMissed = 2; + * @param value The monotonicKprobesMissed to set. + * @return This builder for chaining. + */ + public Builder setMonotonicKprobesMissed(long value) { + + monotonicKprobesMissed_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 monotonicKprobesMissed = 2; + * @return This builder for chaining. + */ + public Builder clearMonotonicKprobesMissed() { + bitField0_ = (bitField0_ & ~0x00000002); + monotonicKprobesMissed_ = 0L; + onChanged(); + return this; + } + + private long monotonicConntrackRegisters_ ; + /** + * int64 monotonicConntrackRegisters = 3; + * @return The monotonicConntrackRegisters. + */ + @java.lang.Override + public long getMonotonicConntrackRegisters() { + return monotonicConntrackRegisters_; + } + /** + * int64 monotonicConntrackRegisters = 3; + * @param value The monotonicConntrackRegisters to set. + * @return This builder for chaining. + */ + public Builder setMonotonicConntrackRegisters(long value) { + + monotonicConntrackRegisters_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 monotonicConntrackRegisters = 3; + * @return This builder for chaining. + */ + public Builder clearMonotonicConntrackRegisters() { + bitField0_ = (bitField0_ & ~0x00000004); + monotonicConntrackRegisters_ = 0L; + onChanged(); + return this; + } + + private long monotonicConntrackRegistersDropped_ ; + /** + * int64 monotonicConntrackRegistersDropped = 4; + * @return The monotonicConntrackRegistersDropped. + */ + @java.lang.Override + public long getMonotonicConntrackRegistersDropped() { + return monotonicConntrackRegistersDropped_; + } + /** + * int64 monotonicConntrackRegistersDropped = 4; + * @param value The monotonicConntrackRegistersDropped to set. + * @return This builder for chaining. + */ + public Builder setMonotonicConntrackRegistersDropped(long value) { + + monotonicConntrackRegistersDropped_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 monotonicConntrackRegistersDropped = 4; + * @return This builder for chaining. + */ + public Builder clearMonotonicConntrackRegistersDropped() { + bitField0_ = (bitField0_ & ~0x00000008); + monotonicConntrackRegistersDropped_ = 0L; + onChanged(); + return this; + } + + private long monotonicDnsPacketsProcessed_ ; + /** + * int64 monotonicDnsPacketsProcessed = 5; + * @return The monotonicDnsPacketsProcessed. + */ + @java.lang.Override + public long getMonotonicDnsPacketsProcessed() { + return monotonicDnsPacketsProcessed_; + } + /** + * int64 monotonicDnsPacketsProcessed = 5; + * @param value The monotonicDnsPacketsProcessed to set. + * @return This builder for chaining. + */ + public Builder setMonotonicDnsPacketsProcessed(long value) { + + monotonicDnsPacketsProcessed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 monotonicDnsPacketsProcessed = 5; + * @return This builder for chaining. + */ + public Builder clearMonotonicDnsPacketsProcessed() { + bitField0_ = (bitField0_ & ~0x00000010); + monotonicDnsPacketsProcessed_ = 0L; + onChanged(); + return this; + } + + private long monotonicConnsClosed_ ; + /** + * int64 monotonicConnsClosed = 6; + * @return The monotonicConnsClosed. + */ + @java.lang.Override + public long getMonotonicConnsClosed() { + return monotonicConnsClosed_; + } + /** + * int64 monotonicConnsClosed = 6; + * @param value The monotonicConnsClosed to set. + * @return This builder for chaining. + */ + public Builder setMonotonicConnsClosed(long value) { + + monotonicConnsClosed_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * int64 monotonicConnsClosed = 6; + * @return This builder for chaining. + */ + public Builder clearMonotonicConnsClosed() { + bitField0_ = (bitField0_ & ~0x00000020); + monotonicConnsClosed_ = 0L; + onChanged(); + return this; + } + + private long connsBpfMapSize_ ; + /** + * int64 connsBpfMapSize = 7; + * @return The connsBpfMapSize. + */ + @java.lang.Override + public long getConnsBpfMapSize() { + return connsBpfMapSize_; + } + /** + * int64 connsBpfMapSize = 7; + * @param value The connsBpfMapSize to set. + * @return This builder for chaining. + */ + public Builder setConnsBpfMapSize(long value) { + + connsBpfMapSize_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * int64 connsBpfMapSize = 7; + * @return This builder for chaining. + */ + public Builder clearConnsBpfMapSize() { + bitField0_ = (bitField0_ & ~0x00000040); + connsBpfMapSize_ = 0L; + onChanged(); + return this; + } + + private long monotonicUdpSendsProcessed_ ; + /** + * int64 monotonicUdpSendsProcessed = 8; + * @return The monotonicUdpSendsProcessed. + */ + @java.lang.Override + public long getMonotonicUdpSendsProcessed() { + return monotonicUdpSendsProcessed_; + } + /** + * int64 monotonicUdpSendsProcessed = 8; + * @param value The monotonicUdpSendsProcessed to set. + * @return This builder for chaining. + */ + public Builder setMonotonicUdpSendsProcessed(long value) { + + monotonicUdpSendsProcessed_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * int64 monotonicUdpSendsProcessed = 8; + * @return This builder for chaining. + */ + public Builder clearMonotonicUdpSendsProcessed() { + bitField0_ = (bitField0_ & ~0x00000080); + monotonicUdpSendsProcessed_ = 0L; + onChanged(); + return this; + } + + private long monotonicUdpSendsMissed_ ; + /** + * int64 monotonicUdpSendsMissed = 9; + * @return The monotonicUdpSendsMissed. + */ + @java.lang.Override + public long getMonotonicUdpSendsMissed() { + return monotonicUdpSendsMissed_; + } + /** + * int64 monotonicUdpSendsMissed = 9; + * @param value The monotonicUdpSendsMissed to set. + * @return This builder for chaining. + */ + public Builder setMonotonicUdpSendsMissed(long value) { + + monotonicUdpSendsMissed_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * int64 monotonicUdpSendsMissed = 9; + * @return This builder for chaining. + */ + public Builder clearMonotonicUdpSendsMissed() { + bitField0_ = (bitField0_ & ~0x00000100); + monotonicUdpSendsMissed_ = 0L; + onChanged(); + return this; + } + + private long conntrackSamplingPercent_ ; + /** + * int64 conntrackSamplingPercent = 10; + * @return The conntrackSamplingPercent. + */ + @java.lang.Override + public long getConntrackSamplingPercent() { + return conntrackSamplingPercent_; + } + /** + * int64 conntrackSamplingPercent = 10; + * @param value The conntrackSamplingPercent to set. + * @return This builder for chaining. + */ + public Builder setConntrackSamplingPercent(long value) { + + conntrackSamplingPercent_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * int64 conntrackSamplingPercent = 10; + * @return This builder for chaining. + */ + public Builder clearConntrackSamplingPercent() { + bitField0_ = (bitField0_ & ~0x00000200); + conntrackSamplingPercent_ = 0L; + onChanged(); + return this; + } + + private long dnsStatsDropped_ ; + /** + * int64 dnsStatsDropped = 11; + * @return The dnsStatsDropped. + */ + @java.lang.Override + public long getDnsStatsDropped() { + return dnsStatsDropped_; + } + /** + * int64 dnsStatsDropped = 11; + * @param value The dnsStatsDropped to set. + * @return This builder for chaining. + */ + public Builder setDnsStatsDropped(long value) { + + dnsStatsDropped_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * int64 dnsStatsDropped = 11; + * @return This builder for chaining. + */ + public Builder clearDnsStatsDropped() { + bitField0_ = (bitField0_ & ~0x00000400); + dnsStatsDropped_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.ConnectionsTelemetry) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.ConnectionsTelemetry) + private static final datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry(); + } + + public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionsTelemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CollectorConnectionsTelemetryOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.CollectorConnectionsTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 kprobesTriggered = 1; + * @return The kprobesTriggered. + */ + long getKprobesTriggered(); + + /** + * int64 kprobesMissed = 2; + * @return The kprobesMissed. + */ + long getKprobesMissed(); + + /** + * int64 conntrackRegisters = 3; + * @return The conntrackRegisters. + */ + long getConntrackRegisters(); + + /** + * int64 conntrackRegistersDropped = 4; + * @return The conntrackRegistersDropped. + */ + long getConntrackRegistersDropped(); + + /** + * int64 dnsPacketsProcessed = 5; + * @return The dnsPacketsProcessed. + */ + long getDnsPacketsProcessed(); + + /** + * int64 connsClosed = 6; + * @return The connsClosed. + */ + long getConnsClosed(); + + /** + * int64 connsBpfMapSize = 7; + * @return The connsBpfMapSize. + */ + long getConnsBpfMapSize(); + + /** + * int64 udpSendsProcessed = 8; + * @return The udpSendsProcessed. + */ + long getUdpSendsProcessed(); + + /** + * int64 udpSendsMissed = 9; + * @return The udpSendsMissed. + */ + long getUdpSendsMissed(); + + /** + * int64 conntrackSamplingPercent = 10; + * @return The conntrackSamplingPercent. + */ + long getConntrackSamplingPercent(); + + /** + * int64 dnsStatsDropped = 11; + * @return The dnsStatsDropped. + */ + long getDnsStatsDropped(); + } + /** + * Protobuf type {@code datadog.process_agent.CollectorConnectionsTelemetry} + */ + public static final class CollectorConnectionsTelemetry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.CollectorConnectionsTelemetry) + CollectorConnectionsTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + // Use CollectorConnectionsTelemetry.newBuilder() to construct. + private CollectorConnectionsTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CollectorConnectionsTelemetry() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollectorConnectionsTelemetry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder.class); + } + + public static final int KPROBESTRIGGERED_FIELD_NUMBER = 1; + private long kprobesTriggered_ = 0L; + /** + * int64 kprobesTriggered = 1; + * @return The kprobesTriggered. + */ + @java.lang.Override + public long getKprobesTriggered() { + return kprobesTriggered_; + } + + public static final int KPROBESMISSED_FIELD_NUMBER = 2; + private long kprobesMissed_ = 0L; + /** + * int64 kprobesMissed = 2; + * @return The kprobesMissed. + */ + @java.lang.Override + public long getKprobesMissed() { + return kprobesMissed_; + } + + public static final int CONNTRACKREGISTERS_FIELD_NUMBER = 3; + private long conntrackRegisters_ = 0L; + /** + * int64 conntrackRegisters = 3; + * @return The conntrackRegisters. + */ + @java.lang.Override + public long getConntrackRegisters() { + return conntrackRegisters_; + } + + public static final int CONNTRACKREGISTERSDROPPED_FIELD_NUMBER = 4; + private long conntrackRegistersDropped_ = 0L; + /** + * int64 conntrackRegistersDropped = 4; + * @return The conntrackRegistersDropped. + */ + @java.lang.Override + public long getConntrackRegistersDropped() { + return conntrackRegistersDropped_; + } + + public static final int DNSPACKETSPROCESSED_FIELD_NUMBER = 5; + private long dnsPacketsProcessed_ = 0L; + /** + * int64 dnsPacketsProcessed = 5; + * @return The dnsPacketsProcessed. + */ + @java.lang.Override + public long getDnsPacketsProcessed() { + return dnsPacketsProcessed_; + } + + public static final int CONNSCLOSED_FIELD_NUMBER = 6; + private long connsClosed_ = 0L; + /** + * int64 connsClosed = 6; + * @return The connsClosed. + */ + @java.lang.Override + public long getConnsClosed() { + return connsClosed_; + } + + public static final int CONNSBPFMAPSIZE_FIELD_NUMBER = 7; + private long connsBpfMapSize_ = 0L; + /** + * int64 connsBpfMapSize = 7; + * @return The connsBpfMapSize. + */ + @java.lang.Override + public long getConnsBpfMapSize() { + return connsBpfMapSize_; + } + + public static final int UDPSENDSPROCESSED_FIELD_NUMBER = 8; + private long udpSendsProcessed_ = 0L; + /** + * int64 udpSendsProcessed = 8; + * @return The udpSendsProcessed. + */ + @java.lang.Override + public long getUdpSendsProcessed() { + return udpSendsProcessed_; + } + + public static final int UDPSENDSMISSED_FIELD_NUMBER = 9; + private long udpSendsMissed_ = 0L; + /** + * int64 udpSendsMissed = 9; + * @return The udpSendsMissed. + */ + @java.lang.Override + public long getUdpSendsMissed() { + return udpSendsMissed_; + } + + public static final int CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER = 10; + private long conntrackSamplingPercent_ = 0L; + /** + * int64 conntrackSamplingPercent = 10; + * @return The conntrackSamplingPercent. + */ + @java.lang.Override + public long getConntrackSamplingPercent() { + return conntrackSamplingPercent_; + } + + public static final int DNSSTATSDROPPED_FIELD_NUMBER = 11; + private long dnsStatsDropped_ = 0L; + /** + * int64 dnsStatsDropped = 11; + * @return The dnsStatsDropped. + */ + @java.lang.Override + public long getDnsStatsDropped() { + return dnsStatsDropped_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (kprobesTriggered_ != 0L) { + output.writeInt64(1, kprobesTriggered_); + } + if (kprobesMissed_ != 0L) { + output.writeInt64(2, kprobesMissed_); + } + if (conntrackRegisters_ != 0L) { + output.writeInt64(3, conntrackRegisters_); + } + if (conntrackRegistersDropped_ != 0L) { + output.writeInt64(4, conntrackRegistersDropped_); + } + if (dnsPacketsProcessed_ != 0L) { + output.writeInt64(5, dnsPacketsProcessed_); + } + if (connsClosed_ != 0L) { + output.writeInt64(6, connsClosed_); + } + if (connsBpfMapSize_ != 0L) { + output.writeInt64(7, connsBpfMapSize_); + } + if (udpSendsProcessed_ != 0L) { + output.writeInt64(8, udpSendsProcessed_); + } + if (udpSendsMissed_ != 0L) { + output.writeInt64(9, udpSendsMissed_); + } + if (conntrackSamplingPercent_ != 0L) { + output.writeInt64(10, conntrackSamplingPercent_); + } + if (dnsStatsDropped_ != 0L) { + output.writeInt64(11, dnsStatsDropped_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kprobesTriggered_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, kprobesTriggered_); + } + if (kprobesMissed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, kprobesMissed_); + } + if (conntrackRegisters_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, conntrackRegisters_); + } + if (conntrackRegistersDropped_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, conntrackRegistersDropped_); + } + if (dnsPacketsProcessed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, dnsPacketsProcessed_); + } + if (connsClosed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, connsClosed_); + } + if (connsBpfMapSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, connsBpfMapSize_); + } + if (udpSendsProcessed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, udpSendsProcessed_); + } + if (udpSendsMissed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, udpSendsMissed_); + } + if (conntrackSamplingPercent_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, conntrackSamplingPercent_); + } + if (dnsStatsDropped_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(11, dnsStatsDropped_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry other = (datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry) obj; + + if (getKprobesTriggered() + != other.getKprobesTriggered()) return false; + if (getKprobesMissed() + != other.getKprobesMissed()) return false; + if (getConntrackRegisters() + != other.getConntrackRegisters()) return false; + if (getConntrackRegistersDropped() + != other.getConntrackRegistersDropped()) return false; + if (getDnsPacketsProcessed() + != other.getDnsPacketsProcessed()) return false; + if (getConnsClosed() + != other.getConnsClosed()) return false; + if (getConnsBpfMapSize() + != other.getConnsBpfMapSize()) return false; + if (getUdpSendsProcessed() + != other.getUdpSendsProcessed()) return false; + if (getUdpSendsMissed() + != other.getUdpSendsMissed()) return false; + if (getConntrackSamplingPercent() + != other.getConntrackSamplingPercent()) return false; + if (getDnsStatsDropped() + != other.getDnsStatsDropped()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KPROBESTRIGGERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getKprobesTriggered()); + hash = (37 * hash) + KPROBESMISSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getKprobesMissed()); + hash = (37 * hash) + CONNTRACKREGISTERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConntrackRegisters()); + hash = (37 * hash) + CONNTRACKREGISTERSDROPPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConntrackRegistersDropped()); + hash = (37 * hash) + DNSPACKETSPROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsPacketsProcessed()); + hash = (37 * hash) + CONNSCLOSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConnsClosed()); + hash = (37 * hash) + CONNSBPFMAPSIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConnsBpfMapSize()); + hash = (37 * hash) + UDPSENDSPROCESSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUdpSendsProcessed()); + hash = (37 * hash) + UDPSENDSMISSED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUdpSendsMissed()); + hash = (37 * hash) + CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getConntrackSamplingPercent()); + hash = (37 * hash) + DNSSTATSDROPPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsStatsDropped()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.CollectorConnectionsTelemetry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.CollectorConnectionsTelemetry) + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kprobesTriggered_ = 0L; + kprobesMissed_ = 0L; + conntrackRegisters_ = 0L; + conntrackRegistersDropped_ = 0L; + dnsPacketsProcessed_ = 0L; + connsClosed_ = 0L; + connsBpfMapSize_ = 0L; + udpSendsProcessed_ = 0L; + udpSendsMissed_ = 0L; + conntrackSamplingPercent_ = 0L; + dnsStatsDropped_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry build() { + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry buildPartial() { + datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry result = new datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kprobesTriggered_ = kprobesTriggered_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kprobesMissed_ = kprobesMissed_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conntrackRegisters_ = conntrackRegisters_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conntrackRegistersDropped_ = conntrackRegistersDropped_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dnsPacketsProcessed_ = dnsPacketsProcessed_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connsClosed_ = connsClosed_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.connsBpfMapSize_ = connsBpfMapSize_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.udpSendsProcessed_ = udpSendsProcessed_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.udpSendsMissed_ = udpSendsMissed_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.conntrackSamplingPercent_ = conntrackSamplingPercent_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.dnsStatsDropped_ = dnsStatsDropped_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry other) { + if (other == datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance()) return this; + if (other.getKprobesTriggered() != 0L) { + setKprobesTriggered(other.getKprobesTriggered()); + } + if (other.getKprobesMissed() != 0L) { + setKprobesMissed(other.getKprobesMissed()); + } + if (other.getConntrackRegisters() != 0L) { + setConntrackRegisters(other.getConntrackRegisters()); + } + if (other.getConntrackRegistersDropped() != 0L) { + setConntrackRegistersDropped(other.getConntrackRegistersDropped()); + } + if (other.getDnsPacketsProcessed() != 0L) { + setDnsPacketsProcessed(other.getDnsPacketsProcessed()); + } + if (other.getConnsClosed() != 0L) { + setConnsClosed(other.getConnsClosed()); + } + if (other.getConnsBpfMapSize() != 0L) { + setConnsBpfMapSize(other.getConnsBpfMapSize()); + } + if (other.getUdpSendsProcessed() != 0L) { + setUdpSendsProcessed(other.getUdpSendsProcessed()); + } + if (other.getUdpSendsMissed() != 0L) { + setUdpSendsMissed(other.getUdpSendsMissed()); + } + if (other.getConntrackSamplingPercent() != 0L) { + setConntrackSamplingPercent(other.getConntrackSamplingPercent()); + } + if (other.getDnsStatsDropped() != 0L) { + setDnsStatsDropped(other.getDnsStatsDropped()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + kprobesTriggered_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + kprobesMissed_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + conntrackRegisters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + conntrackRegistersDropped_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + dnsPacketsProcessed_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + connsClosed_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + connsBpfMapSize_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + udpSendsProcessed_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + udpSendsMissed_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + conntrackSamplingPercent_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + dnsStatsDropped_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long kprobesTriggered_ ; + /** + * int64 kprobesTriggered = 1; + * @return The kprobesTriggered. + */ + @java.lang.Override + public long getKprobesTriggered() { + return kprobesTriggered_; + } + /** + * int64 kprobesTriggered = 1; + * @param value The kprobesTriggered to set. + * @return This builder for chaining. + */ + public Builder setKprobesTriggered(long value) { + + kprobesTriggered_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int64 kprobesTriggered = 1; + * @return This builder for chaining. + */ + public Builder clearKprobesTriggered() { + bitField0_ = (bitField0_ & ~0x00000001); + kprobesTriggered_ = 0L; + onChanged(); + return this; + } + + private long kprobesMissed_ ; + /** + * int64 kprobesMissed = 2; + * @return The kprobesMissed. + */ + @java.lang.Override + public long getKprobesMissed() { + return kprobesMissed_; + } + /** + * int64 kprobesMissed = 2; + * @param value The kprobesMissed to set. + * @return This builder for chaining. + */ + public Builder setKprobesMissed(long value) { + + kprobesMissed_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 kprobesMissed = 2; + * @return This builder for chaining. + */ + public Builder clearKprobesMissed() { + bitField0_ = (bitField0_ & ~0x00000002); + kprobesMissed_ = 0L; + onChanged(); + return this; + } + + private long conntrackRegisters_ ; + /** + * int64 conntrackRegisters = 3; + * @return The conntrackRegisters. + */ + @java.lang.Override + public long getConntrackRegisters() { + return conntrackRegisters_; + } + /** + * int64 conntrackRegisters = 3; + * @param value The conntrackRegisters to set. + * @return This builder for chaining. + */ + public Builder setConntrackRegisters(long value) { + + conntrackRegisters_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 conntrackRegisters = 3; + * @return This builder for chaining. + */ + public Builder clearConntrackRegisters() { + bitField0_ = (bitField0_ & ~0x00000004); + conntrackRegisters_ = 0L; + onChanged(); + return this; + } + + private long conntrackRegistersDropped_ ; + /** + * int64 conntrackRegistersDropped = 4; + * @return The conntrackRegistersDropped. + */ + @java.lang.Override + public long getConntrackRegistersDropped() { + return conntrackRegistersDropped_; + } + /** + * int64 conntrackRegistersDropped = 4; + * @param value The conntrackRegistersDropped to set. + * @return This builder for chaining. + */ + public Builder setConntrackRegistersDropped(long value) { + + conntrackRegistersDropped_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 conntrackRegistersDropped = 4; + * @return This builder for chaining. + */ + public Builder clearConntrackRegistersDropped() { + bitField0_ = (bitField0_ & ~0x00000008); + conntrackRegistersDropped_ = 0L; + onChanged(); + return this; + } + + private long dnsPacketsProcessed_ ; + /** + * int64 dnsPacketsProcessed = 5; + * @return The dnsPacketsProcessed. + */ + @java.lang.Override + public long getDnsPacketsProcessed() { + return dnsPacketsProcessed_; + } + /** + * int64 dnsPacketsProcessed = 5; + * @param value The dnsPacketsProcessed to set. + * @return This builder for chaining. + */ + public Builder setDnsPacketsProcessed(long value) { + + dnsPacketsProcessed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 dnsPacketsProcessed = 5; + * @return This builder for chaining. + */ + public Builder clearDnsPacketsProcessed() { + bitField0_ = (bitField0_ & ~0x00000010); + dnsPacketsProcessed_ = 0L; + onChanged(); + return this; + } + + private long connsClosed_ ; + /** + * int64 connsClosed = 6; + * @return The connsClosed. + */ + @java.lang.Override + public long getConnsClosed() { + return connsClosed_; + } + /** + * int64 connsClosed = 6; + * @param value The connsClosed to set. + * @return This builder for chaining. + */ + public Builder setConnsClosed(long value) { + + connsClosed_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * int64 connsClosed = 6; + * @return This builder for chaining. + */ + public Builder clearConnsClosed() { + bitField0_ = (bitField0_ & ~0x00000020); + connsClosed_ = 0L; + onChanged(); + return this; + } + + private long connsBpfMapSize_ ; + /** + * int64 connsBpfMapSize = 7; + * @return The connsBpfMapSize. + */ + @java.lang.Override + public long getConnsBpfMapSize() { + return connsBpfMapSize_; + } + /** + * int64 connsBpfMapSize = 7; + * @param value The connsBpfMapSize to set. + * @return This builder for chaining. + */ + public Builder setConnsBpfMapSize(long value) { + + connsBpfMapSize_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * int64 connsBpfMapSize = 7; + * @return This builder for chaining. + */ + public Builder clearConnsBpfMapSize() { + bitField0_ = (bitField0_ & ~0x00000040); + connsBpfMapSize_ = 0L; + onChanged(); + return this; + } + + private long udpSendsProcessed_ ; + /** + * int64 udpSendsProcessed = 8; + * @return The udpSendsProcessed. + */ + @java.lang.Override + public long getUdpSendsProcessed() { + return udpSendsProcessed_; + } + /** + * int64 udpSendsProcessed = 8; + * @param value The udpSendsProcessed to set. + * @return This builder for chaining. + */ + public Builder setUdpSendsProcessed(long value) { + + udpSendsProcessed_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * int64 udpSendsProcessed = 8; + * @return This builder for chaining. + */ + public Builder clearUdpSendsProcessed() { + bitField0_ = (bitField0_ & ~0x00000080); + udpSendsProcessed_ = 0L; + onChanged(); + return this; + } + + private long udpSendsMissed_ ; + /** + * int64 udpSendsMissed = 9; + * @return The udpSendsMissed. + */ + @java.lang.Override + public long getUdpSendsMissed() { + return udpSendsMissed_; + } + /** + * int64 udpSendsMissed = 9; + * @param value The udpSendsMissed to set. + * @return This builder for chaining. + */ + public Builder setUdpSendsMissed(long value) { + + udpSendsMissed_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * int64 udpSendsMissed = 9; + * @return This builder for chaining. + */ + public Builder clearUdpSendsMissed() { + bitField0_ = (bitField0_ & ~0x00000100); + udpSendsMissed_ = 0L; + onChanged(); + return this; + } + + private long conntrackSamplingPercent_ ; + /** + * int64 conntrackSamplingPercent = 10; + * @return The conntrackSamplingPercent. + */ + @java.lang.Override + public long getConntrackSamplingPercent() { + return conntrackSamplingPercent_; + } + /** + * int64 conntrackSamplingPercent = 10; + * @param value The conntrackSamplingPercent to set. + * @return This builder for chaining. + */ + public Builder setConntrackSamplingPercent(long value) { + + conntrackSamplingPercent_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * int64 conntrackSamplingPercent = 10; + * @return This builder for chaining. + */ + public Builder clearConntrackSamplingPercent() { + bitField0_ = (bitField0_ & ~0x00000200); + conntrackSamplingPercent_ = 0L; + onChanged(); + return this; + } + + private long dnsStatsDropped_ ; + /** + * int64 dnsStatsDropped = 11; + * @return The dnsStatsDropped. + */ + @java.lang.Override + public long getDnsStatsDropped() { + return dnsStatsDropped_; + } + /** + * int64 dnsStatsDropped = 11; + * @param value The dnsStatsDropped to set. + * @return This builder for chaining. + */ + public Builder setDnsStatsDropped(long value) { + + dnsStatsDropped_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * int64 dnsStatsDropped = 11; + * @return This builder for chaining. + */ + public Builder clearDnsStatsDropped() { + bitField0_ = (bitField0_ & ~0x00000400); + dnsStatsDropped_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.CollectorConnectionsTelemetry) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.CollectorConnectionsTelemetry) + private static final datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry(); + } + + public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectorConnectionsTelemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeCompilationTelemetryOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.RuntimeCompilationTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * bool runtimeCompilationEnabled = 1; + * @return The runtimeCompilationEnabled. + */ + boolean getRuntimeCompilationEnabled(); + + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return The enum numeric value on the wire for runtimeCompilationResult. + */ + int getRuntimeCompilationResultValue(); + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return The runtimeCompilationResult. + */ + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult getRuntimeCompilationResult(); + + /** + * int64 runtimeCompilationDuration = 3; + * @return The runtimeCompilationDuration. + */ + long getRuntimeCompilationDuration(); + + /** + *
+     * Field below was deprecated in agent 7.41
+     * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + int getKernelHeaderFetchResultValue(); + /** + *
+     * Field below was deprecated in agent 7.41
+     * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return The kernelHeaderFetchResult. + */ + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult(); + } + /** + * Protobuf type {@code datadog.process_agent.RuntimeCompilationTelemetry} + */ + public static final class RuntimeCompilationTelemetry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.RuntimeCompilationTelemetry) + RuntimeCompilationTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeCompilationTelemetry.newBuilder() to construct. + private RuntimeCompilationTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeCompilationTelemetry() { + runtimeCompilationResult_ = 0; + kernelHeaderFetchResult_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RuntimeCompilationTelemetry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.class, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.Builder.class); + } + + public static final int RUNTIMECOMPILATIONENABLED_FIELD_NUMBER = 1; + private boolean runtimeCompilationEnabled_ = false; + /** + * bool runtimeCompilationEnabled = 1; + * @return The runtimeCompilationEnabled. + */ + @java.lang.Override + public boolean getRuntimeCompilationEnabled() { + return runtimeCompilationEnabled_; + } + + public static final int RUNTIMECOMPILATIONRESULT_FIELD_NUMBER = 2; + private int runtimeCompilationResult_ = 0; + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return The enum numeric value on the wire for runtimeCompilationResult. + */ + @java.lang.Override public int getRuntimeCompilationResultValue() { + return runtimeCompilationResult_; + } + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return The runtimeCompilationResult. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult getRuntimeCompilationResult() { + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult result = datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.forNumber(runtimeCompilationResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.UNRECOGNIZED : result; + } + + public static final int RUNTIMECOMPILATIONDURATION_FIELD_NUMBER = 3; + private long runtimeCompilationDuration_ = 0L; + /** + * int64 runtimeCompilationDuration = 3; + * @return The runtimeCompilationDuration. + */ + @java.lang.Override + public long getRuntimeCompilationDuration() { + return runtimeCompilationDuration_; + } + + public static final int KERNELHEADERFETCHRESULT_FIELD_NUMBER = 4; + private int kernelHeaderFetchResult_ = 0; + /** + *
+     * Field below was deprecated in agent 7.41
+     * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + @java.lang.Override public int getKernelHeaderFetchResultValue() { + return kernelHeaderFetchResult_; + } + /** + *
+     * Field below was deprecated in agent 7.41
+     * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return The kernelHeaderFetchResult. + */ + @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (runtimeCompilationEnabled_ != false) { + output.writeBool(1, runtimeCompilationEnabled_); + } + if (runtimeCompilationResult_ != datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.NotAttempted.getNumber()) { + output.writeEnum(2, runtimeCompilationResult_); + } + if (runtimeCompilationDuration_ != 0L) { + output.writeInt64(3, runtimeCompilationDuration_); + } + if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { + output.writeEnum(4, kernelHeaderFetchResult_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runtimeCompilationEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, runtimeCompilationEnabled_); + } + if (runtimeCompilationResult_ != datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.NotAttempted.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, runtimeCompilationResult_); + } + if (runtimeCompilationDuration_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, runtimeCompilationDuration_); + } + if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, kernelHeaderFetchResult_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry other = (datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry) obj; + + if (getRuntimeCompilationEnabled() + != other.getRuntimeCompilationEnabled()) return false; + if (runtimeCompilationResult_ != other.runtimeCompilationResult_) return false; + if (getRuntimeCompilationDuration() + != other.getRuntimeCompilationDuration()) return false; + if (kernelHeaderFetchResult_ != other.kernelHeaderFetchResult_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RUNTIMECOMPILATIONENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRuntimeCompilationEnabled()); + hash = (37 * hash) + RUNTIMECOMPILATIONRESULT_FIELD_NUMBER; + hash = (53 * hash) + runtimeCompilationResult_; + hash = (37 * hash) + RUNTIMECOMPILATIONDURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRuntimeCompilationDuration()); + hash = (37 * hash) + KERNELHEADERFETCHRESULT_FIELD_NUMBER; + hash = (53 * hash) + kernelHeaderFetchResult_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.RuntimeCompilationTelemetry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.RuntimeCompilationTelemetry) + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.class, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + runtimeCompilationEnabled_ = false; + runtimeCompilationResult_ = 0; + runtimeCompilationDuration_ = 0L; + kernelHeaderFetchResult_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry build() { + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry buildPartial() { + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry result = new datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.runtimeCompilationEnabled_ = runtimeCompilationEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.runtimeCompilationResult_ = runtimeCompilationResult_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.runtimeCompilationDuration_ = runtimeCompilationDuration_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kernelHeaderFetchResult_ = kernelHeaderFetchResult_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry other) { + if (other == datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance()) return this; + if (other.getRuntimeCompilationEnabled() != false) { + setRuntimeCompilationEnabled(other.getRuntimeCompilationEnabled()); + } + if (other.runtimeCompilationResult_ != 0) { + setRuntimeCompilationResultValue(other.getRuntimeCompilationResultValue()); + } + if (other.getRuntimeCompilationDuration() != 0L) { + setRuntimeCompilationDuration(other.getRuntimeCompilationDuration()); + } + if (other.kernelHeaderFetchResult_ != 0) { + setKernelHeaderFetchResultValue(other.getKernelHeaderFetchResultValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + runtimeCompilationEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + runtimeCompilationResult_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + runtimeCompilationDuration_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + kernelHeaderFetchResult_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean runtimeCompilationEnabled_ ; + /** + * bool runtimeCompilationEnabled = 1; + * @return The runtimeCompilationEnabled. + */ + @java.lang.Override + public boolean getRuntimeCompilationEnabled() { + return runtimeCompilationEnabled_; + } + /** + * bool runtimeCompilationEnabled = 1; + * @param value The runtimeCompilationEnabled to set. + * @return This builder for chaining. + */ + public Builder setRuntimeCompilationEnabled(boolean value) { + + runtimeCompilationEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool runtimeCompilationEnabled = 1; + * @return This builder for chaining. + */ + public Builder clearRuntimeCompilationEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + runtimeCompilationEnabled_ = false; + onChanged(); + return this; + } + + private int runtimeCompilationResult_ = 0; + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return The enum numeric value on the wire for runtimeCompilationResult. + */ + @java.lang.Override public int getRuntimeCompilationResultValue() { + return runtimeCompilationResult_; + } + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @param value The enum numeric value on the wire for runtimeCompilationResult to set. + * @return This builder for chaining. + */ + public Builder setRuntimeCompilationResultValue(int value) { + runtimeCompilationResult_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return The runtimeCompilationResult. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult getRuntimeCompilationResult() { + datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult result = datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.forNumber(runtimeCompilationResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.UNRECOGNIZED : result; + } + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @param value The runtimeCompilationResult to set. + * @return This builder for chaining. + */ + public Builder setRuntimeCompilationResult(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + runtimeCompilationResult_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; + * @return This builder for chaining. + */ + public Builder clearRuntimeCompilationResult() { + bitField0_ = (bitField0_ & ~0x00000002); + runtimeCompilationResult_ = 0; + onChanged(); + return this; + } + + private long runtimeCompilationDuration_ ; + /** + * int64 runtimeCompilationDuration = 3; + * @return The runtimeCompilationDuration. + */ + @java.lang.Override + public long getRuntimeCompilationDuration() { + return runtimeCompilationDuration_; + } + /** + * int64 runtimeCompilationDuration = 3; + * @param value The runtimeCompilationDuration to set. + * @return This builder for chaining. + */ + public Builder setRuntimeCompilationDuration(long value) { + + runtimeCompilationDuration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 runtimeCompilationDuration = 3; + * @return This builder for chaining. + */ + public Builder clearRuntimeCompilationDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + runtimeCompilationDuration_ = 0L; + onChanged(); + return this; + } + + private int kernelHeaderFetchResult_ = 0; + /** + *
+       * Field below was deprecated in agent 7.41
+       * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return The enum numeric value on the wire for kernelHeaderFetchResult. + */ + @java.lang.Override public int getKernelHeaderFetchResultValue() { + return kernelHeaderFetchResult_; + } + /** + *
+       * Field below was deprecated in agent 7.41
+       * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @param value The enum numeric value on the wire for kernelHeaderFetchResult to set. + * @return This builder for chaining. + */ + public Builder setKernelHeaderFetchResultValue(int value) { + kernelHeaderFetchResult_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Field below was deprecated in agent 7.41
+       * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return The kernelHeaderFetchResult. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { + datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); + return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; + } + /** + *
+       * Field below was deprecated in agent 7.41
+       * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @param value The kernelHeaderFetchResult to set. + * @return This builder for chaining. + */ + public Builder setKernelHeaderFetchResult(datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + kernelHeaderFetchResult_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Field below was deprecated in agent 7.41
+       * 
+ * + * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; + * @return This builder for chaining. + */ + public Builder clearKernelHeaderFetchResult() { + bitField0_ = (bitField0_ & ~0x00000008); + kernelHeaderFetchResult_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.RuntimeCompilationTelemetry) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.RuntimeCompilationTelemetry) + private static final datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry(); + } + + public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeCompilationTelemetry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AgentConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.AgentConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * bool npmEnabled = 1; + * @return The npmEnabled. + */ + boolean getNpmEnabled(); + + /** + * bool usmEnabled = 2; + * @return The usmEnabled. + */ + boolean getUsmEnabled(); + + /** + * bool dsmEnabled = 3; + * @return The dsmEnabled. + */ + boolean getDsmEnabled(); + } + /** + * Protobuf type {@code datadog.process_agent.AgentConfiguration} + */ + public static final class AgentConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.AgentConfiguration) + AgentConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use AgentConfiguration.newBuilder() to construct. + private AgentConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AgentConfiguration() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AgentConfiguration(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.class, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder.class); + } + + public static final int NPMENABLED_FIELD_NUMBER = 1; + private boolean npmEnabled_ = false; + /** + * bool npmEnabled = 1; + * @return The npmEnabled. + */ + @java.lang.Override + public boolean getNpmEnabled() { + return npmEnabled_; + } + + public static final int USMENABLED_FIELD_NUMBER = 2; + private boolean usmEnabled_ = false; + /** + * bool usmEnabled = 2; + * @return The usmEnabled. + */ + @java.lang.Override + public boolean getUsmEnabled() { + return usmEnabled_; + } + + public static final int DSMENABLED_FIELD_NUMBER = 3; + private boolean dsmEnabled_ = false; + /** + * bool dsmEnabled = 3; + * @return The dsmEnabled. + */ + @java.lang.Override + public boolean getDsmEnabled() { + return dsmEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (npmEnabled_ != false) { + output.writeBool(1, npmEnabled_); + } + if (usmEnabled_ != false) { + output.writeBool(2, usmEnabled_); + } + if (dsmEnabled_ != false) { + output.writeBool(3, dsmEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (npmEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, npmEnabled_); + } + if (usmEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, usmEnabled_); + } + if (dsmEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, dsmEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.AgentConfiguration)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration other = (datadog.process_agent.ConnectionsOuterClass.AgentConfiguration) obj; + + if (getNpmEnabled() + != other.getNpmEnabled()) return false; + if (getUsmEnabled() + != other.getUsmEnabled()) return false; + if (getDsmEnabled() + != other.getDsmEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NPMENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNpmEnabled()); + hash = (37 * hash) + USMENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUsmEnabled()); + hash = (37 * hash) + DSMENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDsmEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.AgentConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.AgentConfiguration) + datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.class, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + npmEnabled_ = false; + usmEnabled_ = false; + dsmEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration build() { + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration buildPartial() { + datadog.process_agent.ConnectionsOuterClass.AgentConfiguration result = new datadog.process_agent.ConnectionsOuterClass.AgentConfiguration(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.npmEnabled_ = npmEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usmEnabled_ = usmEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dsmEnabled_ = dsmEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.AgentConfiguration) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.AgentConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration other) { + if (other == datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance()) return this; + if (other.getNpmEnabled() != false) { + setNpmEnabled(other.getNpmEnabled()); + } + if (other.getUsmEnabled() != false) { + setUsmEnabled(other.getUsmEnabled()); + } + if (other.getDsmEnabled() != false) { + setDsmEnabled(other.getDsmEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + npmEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + usmEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + dsmEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean npmEnabled_ ; + /** + * bool npmEnabled = 1; + * @return The npmEnabled. + */ + @java.lang.Override + public boolean getNpmEnabled() { + return npmEnabled_; + } + /** + * bool npmEnabled = 1; + * @param value The npmEnabled to set. + * @return This builder for chaining. + */ + public Builder setNpmEnabled(boolean value) { + + npmEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool npmEnabled = 1; + * @return This builder for chaining. + */ + public Builder clearNpmEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + npmEnabled_ = false; + onChanged(); + return this; + } + + private boolean usmEnabled_ ; + /** + * bool usmEnabled = 2; + * @return The usmEnabled. + */ + @java.lang.Override + public boolean getUsmEnabled() { + return usmEnabled_; + } + /** + * bool usmEnabled = 2; + * @param value The usmEnabled to set. + * @return This builder for chaining. + */ + public Builder setUsmEnabled(boolean value) { + + usmEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool usmEnabled = 2; + * @return This builder for chaining. + */ + public Builder clearUsmEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + usmEnabled_ = false; + onChanged(); + return this; + } + + private boolean dsmEnabled_ ; + /** + * bool dsmEnabled = 3; + * @return The dsmEnabled. + */ + @java.lang.Override + public boolean getDsmEnabled() { + return dsmEnabled_; + } + /** + * bool dsmEnabled = 3; + * @param value The dsmEnabled to set. + * @return This builder for chaining. + */ + public Builder setDsmEnabled(boolean value) { + + dsmEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool dsmEnabled = 3; + * @return This builder for chaining. + */ + public Builder clearDsmEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + dsmEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.AgentConfiguration) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.AgentConfiguration) + private static final datadog.process_agent.ConnectionsOuterClass.AgentConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.AgentConfiguration(); + } + + public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RouteOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.Route) + com.google.protobuf.MessageOrBuilder { + + /** + * .datadog.process_agent.Subnet subnet = 1; + * @return Whether the subnet field is set. + */ + boolean hasSubnet(); + /** + * .datadog.process_agent.Subnet subnet = 1; + * @return The subnet. + */ + datadog.process_agent.ConnectionsOuterClass.Subnet getSubnet(); + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder getSubnetOrBuilder(); + } + /** + * Protobuf type {@code datadog.process_agent.Route} + */ + public static final class Route extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.Route) + RouteOrBuilder { + private static final long serialVersionUID = 0L; + // Use Route.newBuilder() to construct. + private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Route() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Route(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Route.class, datadog.process_agent.ConnectionsOuterClass.Route.Builder.class); + } + + public static final int SUBNET_FIELD_NUMBER = 1; + private datadog.process_agent.ConnectionsOuterClass.Subnet subnet_; + /** + * .datadog.process_agent.Subnet subnet = 1; + * @return Whether the subnet field is set. + */ + @java.lang.Override + public boolean hasSubnet() { + return subnet_ != null; + } + /** + * .datadog.process_agent.Subnet subnet = 1; + * @return The subnet. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Subnet getSubnet() { + return subnet_ == null ? datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder getSubnetOrBuilder() { + return subnet_ == null ? datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (subnet_ != null) { + output.writeMessage(1, getSubnet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subnet_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubnet()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Route)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.Route other = (datadog.process_agent.ConnectionsOuterClass.Route) obj; + + if (hasSubnet() != other.hasSubnet()) return false; + if (hasSubnet()) { + if (!getSubnet() + .equals(other.getSubnet())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSubnet()) { + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Route prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.Route} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.Route) + datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Route.class, datadog.process_agent.ConnectionsOuterClass.Route.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.Route.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subnet_ = null; + if (subnetBuilder_ != null) { + subnetBuilder_.dispose(); + subnetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Route getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Route build() { + datadog.process_agent.ConnectionsOuterClass.Route result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Route buildPartial() { + datadog.process_agent.ConnectionsOuterClass.Route result = new datadog.process_agent.ConnectionsOuterClass.Route(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Route result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subnet_ = subnetBuilder_ == null + ? subnet_ + : subnetBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.Route) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Route)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Route other) { + if (other == datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()) return this; + if (other.hasSubnet()) { + mergeSubnet(other.getSubnet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getSubnetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private datadog.process_agent.ConnectionsOuterClass.Subnet subnet_; + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Subnet, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder, datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder> subnetBuilder_; + /** + * .datadog.process_agent.Subnet subnet = 1; + * @return Whether the subnet field is set. + */ + public boolean hasSubnet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .datadog.process_agent.Subnet subnet = 1; + * @return The subnet. + */ + public datadog.process_agent.ConnectionsOuterClass.Subnet getSubnet() { + if (subnetBuilder_ == null) { + return subnet_ == null ? datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; + } else { + return subnetBuilder_.getMessage(); + } + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + public Builder setSubnet(datadog.process_agent.ConnectionsOuterClass.Subnet value) { + if (subnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subnet_ = value; + } else { + subnetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + public Builder setSubnet( + datadog.process_agent.ConnectionsOuterClass.Subnet.Builder builderForValue) { + if (subnetBuilder_ == null) { + subnet_ = builderForValue.build(); + } else { + subnetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + public Builder mergeSubnet(datadog.process_agent.ConnectionsOuterClass.Subnet value) { + if (subnetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + subnet_ != null && + subnet_ != datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance()) { + getSubnetBuilder().mergeFrom(value); + } else { + subnet_ = value; + } + } else { + subnetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + public Builder clearSubnet() { + bitField0_ = (bitField0_ & ~0x00000001); + subnet_ = null; + if (subnetBuilder_ != null) { + subnetBuilder_.dispose(); + subnetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.Subnet.Builder getSubnetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSubnetFieldBuilder().getBuilder(); + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + public datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder getSubnetOrBuilder() { + if (subnetBuilder_ != null) { + return subnetBuilder_.getMessageOrBuilder(); + } else { + return subnet_ == null ? + datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; + } + } + /** + * .datadog.process_agent.Subnet subnet = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Subnet, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder, datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder> + getSubnetFieldBuilder() { + if (subnetBuilder_ == null) { + subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datadog.process_agent.ConnectionsOuterClass.Subnet, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder, datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder>( + getSubnet(), + getParentForChildren(), + isClean()); + subnet_ = null; + } + return subnetBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.Route) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.Route) + private static final datadog.process_agent.ConnectionsOuterClass.Route DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Route(); + } + + public static datadog.process_agent.ConnectionsOuterClass.Route getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Route parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Route getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SubnetOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.Subnet) + com.google.protobuf.MessageOrBuilder { + + /** + * string alias = 1; + * @return The alias. + */ + java.lang.String getAlias(); + /** + * string alias = 1; + * @return The bytes for alias. + */ + com.google.protobuf.ByteString + getAliasBytes(); + } + /** + * Protobuf type {@code datadog.process_agent.Subnet} + */ + public static final class Subnet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.Subnet) + SubnetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Subnet.newBuilder() to construct. + private Subnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Subnet() { + alias_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Subnet(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Subnet.class, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder.class); + } + + public static final int ALIAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + /** + * string alias = 1; + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + /** + * string alias = 1; + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Subnet)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.Subnet other = (datadog.process_agent.ConnectionsOuterClass.Subnet) obj; + + if (!getAlias() + .equals(other.getAlias())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Subnet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.Subnet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.Subnet) + datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Subnet.class, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.Subnet.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alias_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Subnet getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Subnet build() { + datadog.process_agent.ConnectionsOuterClass.Subnet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Subnet buildPartial() { + datadog.process_agent.ConnectionsOuterClass.Subnet result = new datadog.process_agent.ConnectionsOuterClass.Subnet(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Subnet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alias_ = alias_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.Subnet) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Subnet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Subnet other) { + if (other == datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance()) return this; + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + alias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object alias_ = ""; + /** + * string alias = 1; + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string alias = 1; + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string alias = 1; + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + alias_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string alias = 1; + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string alias = 1; + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.Subnet) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.Subnet) + private static final datadog.process_agent.ConnectionsOuterClass.Subnet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Subnet(); + } + + public static datadog.process_agent.ConnectionsOuterClass.Subnet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subnet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Subnet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RouteMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.RouteMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * string alias = 1; + * @return The alias. + */ + java.lang.String getAlias(); + /** + * string alias = 1; + * @return The bytes for alias. + */ + com.google.protobuf.ByteString + getAliasBytes(); + + /** + * int32 tagIndex = 2; + * @return The tagIndex. + */ + int getTagIndex(); + + /** + * int64 tagsModified = 3; + * @return The tagsModified. + */ + long getTagsModified(); + + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + * Protobuf type {@code datadog.process_agent.RouteMetadata} + */ + public static final class RouteMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.RouteMetadata) + RouteMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RouteMetadata.newBuilder() to construct. + private RouteMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteMetadata() { + alias_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.RouteMetadata.class, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder.class); + } + + public static final int ALIAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + /** + * string alias = 1; + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } + } + /** + * string alias = 1; + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAGINDEX_FIELD_NUMBER = 2; + private int tagIndex_ = 0; + /** + * int32 tagIndex = 2; + * @return The tagIndex. + */ + @java.lang.Override + public int getTagIndex() { + return tagIndex_; + } + + public static final int TAGSMODIFIED_FIELD_NUMBER = 3; + private long tagsModified_ = 0L; + /** + * int64 tagsModified = 3; + * @return The tagsModified. + */ + @java.lang.Override + public long getTagsModified() { + return tagsModified_; + } + + public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Used only on the backend
+     * 
+ * + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); + } + if (tagIndex_ != 0) { + output.writeInt32(2, tagIndex_); + } + if (tagsModified_ != 0L) { + output.writeInt64(3, tagsModified_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); + } + if (tagIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, tagIndex_); + } + if (tagsModified_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, tagsModified_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.RouteMetadata)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.RouteMetadata other = (datadog.process_agent.ConnectionsOuterClass.RouteMetadata) obj; + + if (!getAlias() + .equals(other.getAlias())) return false; + if (getTagIndex() + != other.getTagIndex()) return false; + if (getTagsModified() + != other.getTagsModified()) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (37 * hash) + TAGINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTagIndex(); + hash = (37 * hash) + TAGSMODIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTagsModified()); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.RouteMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.RouteMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.RouteMetadata) + datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.RouteMetadata.class, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.RouteMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alias_ = ""; + tagIndex_ = 0; + tagsModified_ = 0L; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata build() { + datadog.process_agent.ConnectionsOuterClass.RouteMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata buildPartial() { + datadog.process_agent.ConnectionsOuterClass.RouteMetadata result = new datadog.process_agent.ConnectionsOuterClass.RouteMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.RouteMetadata result) { + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.RouteMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alias_ = alias_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tagIndex_ = tagIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tagsModified_ = tagsModified_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.RouteMetadata) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.RouteMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.RouteMetadata other) { + if (other == datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance()) return this; + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getTagIndex() != 0) { + setTagIndex(other.getTagIndex()); + } + if (other.getTagsModified() != 0L) { + setTagsModified(other.getTagsModified()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + alias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + tagIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + tagsModified_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object alias_ = ""; + /** + * string alias = 1; + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string alias = 1; + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string alias = 1; + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + alias_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string alias = 1; + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string alias = 1; + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int tagIndex_ ; + /** + * int32 tagIndex = 2; + * @return The tagIndex. + */ + @java.lang.Override + public int getTagIndex() { + return tagIndex_; + } + /** + * int32 tagIndex = 2; + * @param value The tagIndex to set. + * @return This builder for chaining. + */ + public Builder setTagIndex(int value) { + + tagIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 tagIndex = 2; + * @return This builder for chaining. + */ + public Builder clearTagIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + tagIndex_ = 0; + onChanged(); + return this; + } + + private long tagsModified_ ; + /** + * int64 tagsModified = 3; + * @return The tagsModified. + */ + @java.lang.Override + public long getTagsModified() { + return tagsModified_; + } + /** + * int64 tagsModified = 3; + * @param value The tagsModified to set. + * @return This builder for chaining. + */ + public Builder setTagsModified(long value) { + + tagsModified_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 tagsModified = 3; + * @return This builder for chaining. + */ + public Builder clearTagsModified() { + bitField0_ = (bitField0_ & ~0x00000004); + tagsModified_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * Used only on the backend
+       * 
+ * + * repeated string tags = 4; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.RouteMetadata) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.RouteMetadata) + private static final datadog.process_agent.ConnectionsOuterClass.RouteMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.RouteMetadata(); + } + + public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IPTranslationOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.IPTranslation) + com.google.protobuf.MessageOrBuilder { + + /** + * string replSrcIP = 1; + * @return The replSrcIP. + */ + java.lang.String getReplSrcIP(); + /** + * string replSrcIP = 1; + * @return The bytes for replSrcIP. + */ + com.google.protobuf.ByteString + getReplSrcIPBytes(); + + /** + * string replDstIP = 2; + * @return The replDstIP. + */ + java.lang.String getReplDstIP(); + /** + * string replDstIP = 2; + * @return The bytes for replDstIP. + */ + com.google.protobuf.ByteString + getReplDstIPBytes(); + + /** + * int32 replSrcPort = 3; + * @return The replSrcPort. + */ + int getReplSrcPort(); + + /** + * int32 replDstPort = 4; + * @return The replDstPort. + */ + int getReplDstPort(); + } + /** + * Protobuf type {@code datadog.process_agent.IPTranslation} + */ + public static final class IPTranslation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.IPTranslation) + IPTranslationOrBuilder { + private static final long serialVersionUID = 0L; + // Use IPTranslation.newBuilder() to construct. + private IPTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IPTranslation() { + replSrcIP_ = ""; + replDstIP_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IPTranslation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.IPTranslation.class, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder.class); + } + + public static final int REPLSRCIP_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object replSrcIP_ = ""; + /** + * string replSrcIP = 1; + * @return The replSrcIP. + */ + @java.lang.Override + public java.lang.String getReplSrcIP() { + java.lang.Object ref = replSrcIP_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replSrcIP_ = s; + return s; + } + } + /** + * string replSrcIP = 1; + * @return The bytes for replSrcIP. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReplSrcIPBytes() { + java.lang.Object ref = replSrcIP_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replSrcIP_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLDSTIP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object replDstIP_ = ""; + /** + * string replDstIP = 2; + * @return The replDstIP. + */ + @java.lang.Override + public java.lang.String getReplDstIP() { + java.lang.Object ref = replDstIP_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replDstIP_ = s; + return s; + } + } + /** + * string replDstIP = 2; + * @return The bytes for replDstIP. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReplDstIPBytes() { + java.lang.Object ref = replDstIP_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replDstIP_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLSRCPORT_FIELD_NUMBER = 3; + private int replSrcPort_ = 0; + /** + * int32 replSrcPort = 3; + * @return The replSrcPort. + */ + @java.lang.Override + public int getReplSrcPort() { + return replSrcPort_; + } + + public static final int REPLDSTPORT_FIELD_NUMBER = 4; + private int replDstPort_ = 0; + /** + * int32 replDstPort = 4; + * @return The replDstPort. + */ + @java.lang.Override + public int getReplDstPort() { + return replDstPort_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replSrcIP_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replSrcIP_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replDstIP_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, replDstIP_); + } + if (replSrcPort_ != 0) { + output.writeInt32(3, replSrcPort_); + } + if (replDstPort_ != 0) { + output.writeInt32(4, replDstPort_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replSrcIP_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replSrcIP_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replDstIP_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replDstIP_); + } + if (replSrcPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, replSrcPort_); + } + if (replDstPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, replDstPort_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.IPTranslation)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.IPTranslation other = (datadog.process_agent.ConnectionsOuterClass.IPTranslation) obj; + + if (!getReplSrcIP() + .equals(other.getReplSrcIP())) return false; + if (!getReplDstIP() + .equals(other.getReplDstIP())) return false; + if (getReplSrcPort() + != other.getReplSrcPort()) return false; + if (getReplDstPort() + != other.getReplDstPort()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPLSRCIP_FIELD_NUMBER; + hash = (53 * hash) + getReplSrcIP().hashCode(); + hash = (37 * hash) + REPLDSTIP_FIELD_NUMBER; + hash = (53 * hash) + getReplDstIP().hashCode(); + hash = (37 * hash) + REPLSRCPORT_FIELD_NUMBER; + hash = (53 * hash) + getReplSrcPort(); + hash = (37 * hash) + REPLDSTPORT_FIELD_NUMBER; + hash = (53 * hash) + getReplDstPort(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.IPTranslation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.IPTranslation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.IPTranslation) + datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.IPTranslation.class, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.IPTranslation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + replSrcIP_ = ""; + replDstIP_ = ""; + replSrcPort_ = 0; + replDstPort_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.IPTranslation getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.IPTranslation build() { + datadog.process_agent.ConnectionsOuterClass.IPTranslation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.IPTranslation buildPartial() { + datadog.process_agent.ConnectionsOuterClass.IPTranslation result = new datadog.process_agent.ConnectionsOuterClass.IPTranslation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.IPTranslation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.replSrcIP_ = replSrcIP_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.replDstIP_ = replDstIP_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.replSrcPort_ = replSrcPort_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.replDstPort_ = replDstPort_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.IPTranslation) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.IPTranslation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.IPTranslation other) { + if (other == datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance()) return this; + if (!other.getReplSrcIP().isEmpty()) { + replSrcIP_ = other.replSrcIP_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReplDstIP().isEmpty()) { + replDstIP_ = other.replDstIP_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getReplSrcPort() != 0) { + setReplSrcPort(other.getReplSrcPort()); + } + if (other.getReplDstPort() != 0) { + setReplDstPort(other.getReplDstPort()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + replSrcIP_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + replDstIP_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + replSrcPort_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + replDstPort_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object replSrcIP_ = ""; + /** + * string replSrcIP = 1; + * @return The replSrcIP. + */ + public java.lang.String getReplSrcIP() { + java.lang.Object ref = replSrcIP_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replSrcIP_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string replSrcIP = 1; + * @return The bytes for replSrcIP. + */ + public com.google.protobuf.ByteString + getReplSrcIPBytes() { + java.lang.Object ref = replSrcIP_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replSrcIP_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string replSrcIP = 1; + * @param value The replSrcIP to set. + * @return This builder for chaining. + */ + public Builder setReplSrcIP( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + replSrcIP_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string replSrcIP = 1; + * @return This builder for chaining. + */ + public Builder clearReplSrcIP() { + replSrcIP_ = getDefaultInstance().getReplSrcIP(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string replSrcIP = 1; + * @param value The bytes for replSrcIP to set. + * @return This builder for chaining. + */ + public Builder setReplSrcIPBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + replSrcIP_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object replDstIP_ = ""; + /** + * string replDstIP = 2; + * @return The replDstIP. + */ + public java.lang.String getReplDstIP() { + java.lang.Object ref = replDstIP_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replDstIP_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string replDstIP = 2; + * @return The bytes for replDstIP. + */ + public com.google.protobuf.ByteString + getReplDstIPBytes() { + java.lang.Object ref = replDstIP_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replDstIP_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string replDstIP = 2; + * @param value The replDstIP to set. + * @return This builder for chaining. + */ + public Builder setReplDstIP( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + replDstIP_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string replDstIP = 2; + * @return This builder for chaining. + */ + public Builder clearReplDstIP() { + replDstIP_ = getDefaultInstance().getReplDstIP(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string replDstIP = 2; + * @param value The bytes for replDstIP to set. + * @return This builder for chaining. + */ + public Builder setReplDstIPBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + replDstIP_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int replSrcPort_ ; + /** + * int32 replSrcPort = 3; + * @return The replSrcPort. + */ + @java.lang.Override + public int getReplSrcPort() { + return replSrcPort_; + } + /** + * int32 replSrcPort = 3; + * @param value The replSrcPort to set. + * @return This builder for chaining. + */ + public Builder setReplSrcPort(int value) { + + replSrcPort_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int32 replSrcPort = 3; + * @return This builder for chaining. + */ + public Builder clearReplSrcPort() { + bitField0_ = (bitField0_ & ~0x00000004); + replSrcPort_ = 0; + onChanged(); + return this; + } + + private int replDstPort_ ; + /** + * int32 replDstPort = 4; + * @return The replDstPort. + */ + @java.lang.Override + public int getReplDstPort() { + return replDstPort_; + } + /** + * int32 replDstPort = 4; + * @param value The replDstPort to set. + * @return This builder for chaining. + */ + public Builder setReplDstPort(int value) { + + replDstPort_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int32 replDstPort = 4; + * @return This builder for chaining. + */ + public Builder clearReplDstPort() { + bitField0_ = (bitField0_ & ~0x00000008); + replDstPort_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.IPTranslation) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.IPTranslation) + private static final datadog.process_agent.ConnectionsOuterClass.IPTranslation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.IPTranslation(); + } + + public static datadog.process_agent.ConnectionsOuterClass.IPTranslation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IPTranslation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.IPTranslation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddrOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.Addr) + com.google.protobuf.MessageOrBuilder { + + /** + * string ip = 2; + * @return The ip. + */ + java.lang.String getIp(); + /** + * string ip = 2; + * @return The bytes for ip. + */ + com.google.protobuf.ByteString + getIpBytes(); + + /** + * int32 port = 3; + * @return The port. + */ + int getPort(); + + /** + *
+     * post-resolution field
+     * 
+ * + * string containerId = 5; + * @return The containerId. + */ + java.lang.String getContainerId(); + /** + *
+     * post-resolution field
+     * 
+ * + * string containerId = 5; + * @return The bytes for containerId. + */ + com.google.protobuf.ByteString + getContainerIdBytes(); + + /** + *
+     * post-resolution field
+     * 
+ * + * string hostName = 7; + * @return The hostName. + */ + java.lang.String getHostName(); + /** + *
+     * post-resolution field
+     * 
+ * + * string hostName = 7; + * @return The bytes for hostName. + */ + com.google.protobuf.ByteString + getHostNameBytes(); + } + /** + * Protobuf type {@code datadog.process_agent.Addr} + */ + public static final class Addr extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.Addr) + AddrOrBuilder { + private static final long serialVersionUID = 0L; + // Use Addr.newBuilder() to construct. + private Addr(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Addr() { + ip_ = ""; + containerId_ = ""; + hostName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Addr(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Addr.class, datadog.process_agent.ConnectionsOuterClass.Addr.Builder.class); + } + + public static final int IP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object ip_ = ""; + /** + * string ip = 2; + * @return The ip. + */ + @java.lang.Override + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } + } + /** + * string ip = 2; + * @return The bytes for ip. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 3; + private int port_ = 0; + /** + * int32 port = 3; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int CONTAINERID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object containerId_ = ""; + /** + *
+     * post-resolution field
+     * 
+ * + * string containerId = 5; + * @return The containerId. + */ + @java.lang.Override + public java.lang.String getContainerId() { + java.lang.Object ref = containerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerId_ = s; + return s; + } + } + /** + *
+     * post-resolution field
+     * 
+ * + * string containerId = 5; + * @return The bytes for containerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContainerIdBytes() { + java.lang.Object ref = containerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + containerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HOSTNAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object hostName_ = ""; + /** + *
+     * post-resolution field
+     * 
+ * + * string hostName = 7; + * @return The hostName. + */ + @java.lang.Override + public java.lang.String getHostName() { + java.lang.Object ref = hostName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostName_ = s; + return s; + } + } + /** + *
+     * post-resolution field
+     * 
+ * + * string hostName = 7; + * @return The bytes for hostName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); + } + if (port_ != 0) { + output.writeInt32(3, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, containerId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hostName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, containerId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hostName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Addr)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.Addr other = (datadog.process_agent.ConnectionsOuterClass.Addr) obj; + + if (!getIp() + .equals(other.getIp())) return false; + if (getPort() + != other.getPort()) return false; + if (!getContainerId() + .equals(other.getContainerId())) return false; + if (!getHostName() + .equals(other.getHostName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; + hash = (53 * hash) + getContainerId().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Addr prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.Addr} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.Addr) + datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.Addr.class, datadog.process_agent.ConnectionsOuterClass.Addr.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.Addr.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ip_ = ""; + port_ = 0; + containerId_ = ""; + hostName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Addr getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Addr build() { + datadog.process_agent.ConnectionsOuterClass.Addr result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Addr buildPartial() { + datadog.process_agent.ConnectionsOuterClass.Addr result = new datadog.process_agent.ConnectionsOuterClass.Addr(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Addr result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ip_ = ip_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containerId_ = containerId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hostName_ = hostName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.Addr) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Addr)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Addr other) { + if (other == datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance()) return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getContainerId().isEmpty()) { + containerId_ = other.containerId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getHostName().isEmpty()) { + hostName_ = other.hostName_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 42: { + containerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 58: { + hostName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object ip_ = ""; + /** + * string ip = 2; + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ip = 2; + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString + getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ip = 2; + * @param value The ip to set. + * @return This builder for chaining. + */ + public Builder setIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string ip = 2; + * @return This builder for chaining. + */ + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string ip = 2; + * @param value The bytes for ip to set. + * @return This builder for chaining. + */ + public Builder setIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int port_ ; + /** + * int32 port = 3; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * int32 port = 3; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 port = 3; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object containerId_ = ""; + /** + *
+       * post-resolution field
+       * 
+ * + * string containerId = 5; + * @return The containerId. + */ + public java.lang.String getContainerId() { + java.lang.Object ref = containerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + containerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * post-resolution field
+       * 
+ * + * string containerId = 5; + * @return The bytes for containerId. + */ + public com.google.protobuf.ByteString + getContainerIdBytes() { + java.lang.Object ref = containerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + containerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * post-resolution field
+       * 
+ * + * string containerId = 5; + * @param value The containerId to set. + * @return This builder for chaining. + */ + public Builder setContainerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + containerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * post-resolution field
+       * 
+ * + * string containerId = 5; + * @return This builder for chaining. + */ + public Builder clearContainerId() { + containerId_ = getDefaultInstance().getContainerId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * post-resolution field
+       * 
+ * + * string containerId = 5; + * @param value The bytes for containerId to set. + * @return This builder for chaining. + */ + public Builder setContainerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + containerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object hostName_ = ""; + /** + *
+       * post-resolution field
+       * 
+ * + * string hostName = 7; + * @return The hostName. + */ + public java.lang.String getHostName() { + java.lang.Object ref = hostName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * post-resolution field
+       * 
+ * + * string hostName = 7; + * @return The bytes for hostName. + */ + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * post-resolution field
+       * 
+ * + * string hostName = 7; + * @param value The hostName to set. + * @return This builder for chaining. + */ + public Builder setHostName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + hostName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * post-resolution field
+       * 
+ * + * string hostName = 7; + * @return This builder for chaining. + */ + public Builder clearHostName() { + hostName_ = getDefaultInstance().getHostName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * post-resolution field
+       * 
+ * + * string hostName = 7; + * @param value The bytes for hostName to set. + * @return This builder for chaining. + */ + public Builder setHostNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + hostName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.Addr) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.Addr) + private static final datadog.process_agent.ConnectionsOuterClass.Addr DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Addr(); + } + + public static datadog.process_agent.ConnectionsOuterClass.Addr getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Addr parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.Addr getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProtocolStackOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.ProtocolStack) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return A list containing the stack. + */ + java.util.List getStackList(); + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return The count of stack. + */ + int getStackCount(); + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index of the element to return. + * @return The stack at the given index. + */ + datadog.process_agent.ConnectionsOuterClass.ProtocolType getStack(int index); + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return A list containing the enum numeric values on the wire for stack. + */ + java.util.List + getStackValueList(); + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of stack at the given index. + */ + int getStackValue(int index); + } + /** + * Protobuf type {@code datadog.process_agent.ProtocolStack} + */ + public static final class ProtocolStack extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.ProtocolStack) + ProtocolStackOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProtocolStack.newBuilder() to construct. + private ProtocolStack(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProtocolStack() { + stack_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProtocolStack(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.ProtocolStack.class, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder.class); + } + + public static final int STACK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List stack_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType> stack_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType>() { + public datadog.process_agent.ConnectionsOuterClass.ProtocolType convert(java.lang.Integer from) { + datadog.process_agent.ConnectionsOuterClass.ProtocolType result = datadog.process_agent.ConnectionsOuterClass.ProtocolType.forNumber(from); + return result == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolType.UNRECOGNIZED : result; + } + }; + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return A list containing the stack. + */ + @java.lang.Override + public java.util.List getStackList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType>(stack_, stack_converter_); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return The count of stack. + */ + @java.lang.Override + public int getStackCount() { + return stack_.size(); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index of the element to return. + * @return The stack at the given index. + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolType getStack(int index) { + return stack_converter_.convert(stack_.get(index)); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return A list containing the enum numeric values on the wire for stack. + */ + @java.lang.Override + public java.util.List + getStackValueList() { + return stack_; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of stack at the given index. + */ + @java.lang.Override + public int getStackValue(int index) { + return stack_.get(index); + } + private int stackMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getStackList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(stackMemoizedSerializedSize); + } + for (int i = 0; i < stack_.size(); i++) { + output.writeEnumNoTag(stack_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < stack_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(stack_.get(i)); + } + size += dataSize; + if (!getStackList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }stackMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.ProtocolStack)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.ProtocolStack other = (datadog.process_agent.ConnectionsOuterClass.ProtocolStack) obj; + + if (!stack_.equals(other.stack_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStackCount() > 0) { + hash = (37 * hash) + STACK_FIELD_NUMBER; + hash = (53 * hash) + stack_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.ProtocolStack prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.ProtocolStack} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.ProtocolStack) + datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.ProtocolStack.class, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.ProtocolStack.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stack_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack build() { + datadog.process_agent.ConnectionsOuterClass.ProtocolStack result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack buildPartial() { + datadog.process_agent.ConnectionsOuterClass.ProtocolStack result = new datadog.process_agent.ConnectionsOuterClass.ProtocolStack(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.ProtocolStack result) { + if (((bitField0_ & 0x00000001) != 0)) { + stack_ = java.util.Collections.unmodifiableList(stack_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stack_ = stack_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.ProtocolStack result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.ProtocolStack) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.ProtocolStack)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.ProtocolStack other) { + if (other == datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance()) return this; + if (!other.stack_.isEmpty()) { + if (stack_.isEmpty()) { + stack_ = other.stack_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStackIsMutable(); + stack_.addAll(other.stack_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureStackIsMutable(); + stack_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureStackIsMutable(); + stack_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List stack_ = + java.util.Collections.emptyList(); + private void ensureStackIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stack_ = new java.util.ArrayList(stack_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return A list containing the stack. + */ + public java.util.List getStackList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType>(stack_, stack_converter_); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return The count of stack. + */ + public int getStackCount() { + return stack_.size(); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index of the element to return. + * @return The stack at the given index. + */ + public datadog.process_agent.ConnectionsOuterClass.ProtocolType getStack(int index) { + return stack_converter_.convert(stack_.get(index)); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index to set the value at. + * @param value The stack to set. + * @return This builder for chaining. + */ + public Builder setStack( + int index, datadog.process_agent.ConnectionsOuterClass.ProtocolType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStackIsMutable(); + stack_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param value The stack to add. + * @return This builder for chaining. + */ + public Builder addStack(datadog.process_agent.ConnectionsOuterClass.ProtocolType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStackIsMutable(); + stack_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param values The stack to add. + * @return This builder for chaining. + */ + public Builder addAllStack( + java.lang.Iterable values) { + ensureStackIsMutable(); + for (datadog.process_agent.ConnectionsOuterClass.ProtocolType value : values) { + stack_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return This builder for chaining. + */ + public Builder clearStack() { + stack_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @return A list containing the enum numeric values on the wire for stack. + */ + public java.util.List + getStackValueList() { + return java.util.Collections.unmodifiableList(stack_); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of stack at the given index. + */ + public int getStackValue(int index) { + return stack_.get(index); + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for stack to set. + * @return This builder for chaining. + */ + public Builder setStackValue( + int index, int value) { + ensureStackIsMutable(); + stack_.set(index, value); + onChanged(); + return this; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param value The enum numeric value on the wire for stack to add. + * @return This builder for chaining. + */ + public Builder addStackValue(int value) { + ensureStackIsMutable(); + stack_.add(value); + onChanged(); + return this; + } + /** + * repeated .datadog.process_agent.ProtocolType stack = 1; + * @param values The enum numeric values on the wire for stack to add. + * @return This builder for chaining. + */ + public Builder addAllStackValue( + java.lang.Iterable values) { + ensureStackIsMutable(); + for (int value : values) { + stack_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.ProtocolStack) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.ProtocolStack) + private static final datadog.process_agent.ConnectionsOuterClass.ProtocolStack DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.ProtocolStack(); + } + + public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtocolStack parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DNSEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.DNSEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string names = 1; + * @return A list containing the names. + */ + java.util.List + getNamesList(); + /** + * repeated string names = 1; + * @return The count of names. + */ + int getNamesCount(); + /** + * repeated string names = 1; + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + /** + * repeated string names = 1; + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString + getNamesBytes(int index); + } + /** + * Protobuf type {@code datadog.process_agent.DNSEntry} + */ + public static final class DNSEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.DNSEntry) + DNSEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSEntry.newBuilder() to construct. + private DNSEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSEntry() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSEntry(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.DNSEntry.class, datadog.process_agent.ConnectionsOuterClass.DNSEntry.Builder.class); + } + + public static final int NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList names_; + /** + * repeated string names = 1; + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList + getNamesList() { + return names_; + } + /** + * repeated string names = 1; + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + * repeated string names = 1; + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + * repeated string names = 1; + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString + getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.DNSEntry)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.DNSEntry other = (datadog.process_agent.ConnectionsOuterClass.DNSEntry) obj; + + if (!getNamesList() + .equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.DNSEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.DNSEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.DNSEntry) + datadog.process_agent.ConnectionsOuterClass.DNSEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.DNSEntry.class, datadog.process_agent.ConnectionsOuterClass.DNSEntry.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.DNSEntry.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.DNSEntry.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSEntry build() { + datadog.process_agent.ConnectionsOuterClass.DNSEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSEntry buildPartial() { + datadog.process_agent.ConnectionsOuterClass.DNSEntry result = new datadog.process_agent.ConnectionsOuterClass.DNSEntry(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.DNSEntry result) { + if (((bitField0_ & 0x00000001) != 0)) { + names_ = names_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.names_ = names_; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.DNSEntry result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.DNSEntry) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.DNSEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.DNSEntry other) { + if (other == datadog.process_agent.ConnectionsOuterClass.DNSEntry.getDefaultInstance()) return this; + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string names = 1; + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList + getNamesList() { + return names_.getUnmodifiableView(); + } + /** + * repeated string names = 1; + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + * repeated string names = 1; + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + * repeated string names = 1; + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString + getNamesBytes(int index) { + return names_.getByteString(index); + } + /** + * repeated string names = 1; + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNamesIsMutable(); + names_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string names = 1; + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureNamesIsMutable(); + names_.add(value); + onChanged(); + return this; + } + /** + * repeated string names = 1; + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames( + java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, names_); + onChanged(); + return this; + } + /** + * repeated string names = 1; + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string names = 1; + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.DNSEntry) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.DNSEntry) + private static final datadog.process_agent.ConnectionsOuterClass.DNSEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.DNSEntry(); + } + + public static datadog.process_agent.ConnectionsOuterClass.DNSEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DNSStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.DNSStats) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 dnsTimeouts = 1; + * @return The dnsTimeouts. + */ + int getDnsTimeouts(); + + /** + * uint64 dnsSuccessLatencySum = 2; + * @return The dnsSuccessLatencySum. + */ + long getDnsSuccessLatencySum(); + + /** + * uint64 dnsFailureLatencySum = 3; + * @return The dnsFailureLatencySum. + */ + long getDnsFailureLatencySum(); + + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + int getDnsCountByRcodeCount(); + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + boolean containsDnsCountByRcode( + int key); + /** + * Use {@link #getDnsCountByRcodeMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDnsCountByRcode(); + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + java.util.Map + getDnsCountByRcodeMap(); + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + int getDnsCountByRcodeOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + int getDnsCountByRcodeOrThrow( + int key); + } + /** + * Protobuf type {@code datadog.process_agent.DNSStats} + */ + public static final class DNSStats extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.DNSStats) + DNSStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSStats.newBuilder() to construct. + private DNSStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSStats() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetDnsCountByRcode(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.DNSStats.class, datadog.process_agent.ConnectionsOuterClass.DNSStats.Builder.class); + } + + public static final int DNSTIMEOUTS_FIELD_NUMBER = 1; + private int dnsTimeouts_ = 0; + /** + * uint32 dnsTimeouts = 1; + * @return The dnsTimeouts. + */ + @java.lang.Override + public int getDnsTimeouts() { + return dnsTimeouts_; + } + + public static final int DNSSUCCESSLATENCYSUM_FIELD_NUMBER = 2; + private long dnsSuccessLatencySum_ = 0L; + /** + * uint64 dnsSuccessLatencySum = 2; + * @return The dnsSuccessLatencySum. + */ + @java.lang.Override + public long getDnsSuccessLatencySum() { + return dnsSuccessLatencySum_; + } + + public static final int DNSFAILURELATENCYSUM_FIELD_NUMBER = 3; + private long dnsFailureLatencySum_ = 0L; + /** + * uint64 dnsFailureLatencySum = 3; + * @return The dnsFailureLatencySum. + */ + @java.lang.Override + public long getDnsFailureLatencySum() { + return dnsFailureLatencySum_; + } + + public static final int DNSCOUNTBYRCODE_FIELD_NUMBER = 4; + private static final class DnsCountByRcodeDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, java.lang.Integer> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0, + com.google.protobuf.WireFormat.FieldType.UINT32, + 0); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> dnsCountByRcode_; + private com.google.protobuf.MapField + internalGetDnsCountByRcode() { + if (dnsCountByRcode_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsCountByRcodeDefaultEntryHolder.defaultEntry); + } + return dnsCountByRcode_; + } + public int getDnsCountByRcodeCount() { + return internalGetDnsCountByRcode().getMap().size(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public boolean containsDnsCountByRcode( + int key) { + + return internalGetDnsCountByRcode().getMap().containsKey(key); + } + /** + * Use {@link #getDnsCountByRcodeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsCountByRcode() { + return getDnsCountByRcodeMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public java.util.Map getDnsCountByRcodeMap() { + return internalGetDnsCountByRcode().getMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public int getDnsCountByRcodeOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public int getDnsCountByRcodeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dnsTimeouts_ != 0) { + output.writeUInt32(1, dnsTimeouts_); + } + if (dnsSuccessLatencySum_ != 0L) { + output.writeUInt64(2, dnsSuccessLatencySum_); + } + if (dnsFailureLatencySum_ != 0L) { + output.writeUInt64(3, dnsFailureLatencySum_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetDnsCountByRcode(), + DnsCountByRcodeDefaultEntryHolder.defaultEntry, + 4); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dnsTimeouts_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, dnsTimeouts_); + } + if (dnsSuccessLatencySum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, dnsSuccessLatencySum_); + } + if (dnsFailureLatencySum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(3, dnsFailureLatencySum_); + } + for (java.util.Map.Entry entry + : internalGetDnsCountByRcode().getMap().entrySet()) { + com.google.protobuf.MapEntry + dnsCountByRcode__ = DnsCountByRcodeDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, dnsCountByRcode__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.DNSStats)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.DNSStats other = (datadog.process_agent.ConnectionsOuterClass.DNSStats) obj; + + if (getDnsTimeouts() + != other.getDnsTimeouts()) return false; + if (getDnsSuccessLatencySum() + != other.getDnsSuccessLatencySum()) return false; + if (getDnsFailureLatencySum() + != other.getDnsFailureLatencySum()) return false; + if (!internalGetDnsCountByRcode().equals( + other.internalGetDnsCountByRcode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DNSTIMEOUTS_FIELD_NUMBER; + hash = (53 * hash) + getDnsTimeouts(); + hash = (37 * hash) + DNSSUCCESSLATENCYSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsSuccessLatencySum()); + hash = (37 * hash) + DNSFAILURELATENCYSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDnsFailureLatencySum()); + if (!internalGetDnsCountByRcode().getMap().isEmpty()) { + hash = (37 * hash) + DNSCOUNTBYRCODE_FIELD_NUMBER; + hash = (53 * hash) + internalGetDnsCountByRcode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.DNSStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.DNSStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.DNSStats) + datadog.process_agent.ConnectionsOuterClass.DNSStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetDnsCountByRcode(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableDnsCountByRcode(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.DNSStats.class, datadog.process_agent.ConnectionsOuterClass.DNSStats.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.DNSStats.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dnsTimeouts_ = 0; + dnsSuccessLatencySum_ = 0L; + dnsFailureLatencySum_ = 0L; + internalGetMutableDnsCountByRcode().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats build() { + datadog.process_agent.ConnectionsOuterClass.DNSStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats buildPartial() { + datadog.process_agent.ConnectionsOuterClass.DNSStats result = new datadog.process_agent.ConnectionsOuterClass.DNSStats(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.DNSStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dnsTimeouts_ = dnsTimeouts_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dnsSuccessLatencySum_ = dnsSuccessLatencySum_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dnsFailureLatencySum_ = dnsFailureLatencySum_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dnsCountByRcode_ = internalGetDnsCountByRcode(); + result.dnsCountByRcode_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.DNSStats) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.DNSStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.DNSStats other) { + if (other == datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance()) return this; + if (other.getDnsTimeouts() != 0) { + setDnsTimeouts(other.getDnsTimeouts()); + } + if (other.getDnsSuccessLatencySum() != 0L) { + setDnsSuccessLatencySum(other.getDnsSuccessLatencySum()); + } + if (other.getDnsFailureLatencySum() != 0L) { + setDnsFailureLatencySum(other.getDnsFailureLatencySum()); + } + internalGetMutableDnsCountByRcode().mergeFrom( + other.internalGetDnsCountByRcode()); + bitField0_ |= 0x00000008; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + dnsTimeouts_ = input.readUInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + dnsSuccessLatencySum_ = input.readUInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + dnsFailureLatencySum_ = input.readUInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + com.google.protobuf.MapEntry + dnsCountByRcode__ = input.readMessage( + DnsCountByRcodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDnsCountByRcode().getMutableMap().put( + dnsCountByRcode__.getKey(), dnsCountByRcode__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int dnsTimeouts_ ; + /** + * uint32 dnsTimeouts = 1; + * @return The dnsTimeouts. + */ + @java.lang.Override + public int getDnsTimeouts() { + return dnsTimeouts_; + } + /** + * uint32 dnsTimeouts = 1; + * @param value The dnsTimeouts to set. + * @return This builder for chaining. + */ + public Builder setDnsTimeouts(int value) { + + dnsTimeouts_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * uint32 dnsTimeouts = 1; + * @return This builder for chaining. + */ + public Builder clearDnsTimeouts() { + bitField0_ = (bitField0_ & ~0x00000001); + dnsTimeouts_ = 0; + onChanged(); + return this; + } + + private long dnsSuccessLatencySum_ ; + /** + * uint64 dnsSuccessLatencySum = 2; + * @return The dnsSuccessLatencySum. + */ + @java.lang.Override + public long getDnsSuccessLatencySum() { + return dnsSuccessLatencySum_; + } + /** + * uint64 dnsSuccessLatencySum = 2; + * @param value The dnsSuccessLatencySum to set. + * @return This builder for chaining. + */ + public Builder setDnsSuccessLatencySum(long value) { + + dnsSuccessLatencySum_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint64 dnsSuccessLatencySum = 2; + * @return This builder for chaining. + */ + public Builder clearDnsSuccessLatencySum() { + bitField0_ = (bitField0_ & ~0x00000002); + dnsSuccessLatencySum_ = 0L; + onChanged(); + return this; + } + + private long dnsFailureLatencySum_ ; + /** + * uint64 dnsFailureLatencySum = 3; + * @return The dnsFailureLatencySum. + */ + @java.lang.Override + public long getDnsFailureLatencySum() { + return dnsFailureLatencySum_; + } + /** + * uint64 dnsFailureLatencySum = 3; + * @param value The dnsFailureLatencySum to set. + * @return This builder for chaining. + */ + public Builder setDnsFailureLatencySum(long value) { + + dnsFailureLatencySum_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * uint64 dnsFailureLatencySum = 3; + * @return This builder for chaining. + */ + public Builder clearDnsFailureLatencySum() { + bitField0_ = (bitField0_ & ~0x00000004); + dnsFailureLatencySum_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> dnsCountByRcode_; + private com.google.protobuf.MapField + internalGetDnsCountByRcode() { + if (dnsCountByRcode_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsCountByRcodeDefaultEntryHolder.defaultEntry); + } + return dnsCountByRcode_; + } + private com.google.protobuf.MapField + internalGetMutableDnsCountByRcode() { + if (dnsCountByRcode_ == null) { + dnsCountByRcode_ = com.google.protobuf.MapField.newMapField( + DnsCountByRcodeDefaultEntryHolder.defaultEntry); + } + if (!dnsCountByRcode_.isMutable()) { + dnsCountByRcode_ = dnsCountByRcode_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return dnsCountByRcode_; + } + public int getDnsCountByRcodeCount() { + return internalGetDnsCountByRcode().getMap().size(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public boolean containsDnsCountByRcode( + int key) { + + return internalGetDnsCountByRcode().getMap().containsKey(key); + } + /** + * Use {@link #getDnsCountByRcodeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsCountByRcode() { + return getDnsCountByRcodeMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public java.util.Map getDnsCountByRcodeMap() { + return internalGetDnsCountByRcode().getMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public int getDnsCountByRcodeOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + @java.lang.Override + public int getDnsCountByRcodeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsCountByRcode().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDnsCountByRcode() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableDnsCountByRcode().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + public Builder removeDnsCountByRcode( + int key) { + + internalGetMutableDnsCountByRcode().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDnsCountByRcode() { + bitField0_ |= 0x00000008; + return internalGetMutableDnsCountByRcode().getMutableMap(); + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + public Builder putDnsCountByRcode( + int key, + int value) { + + + internalGetMutableDnsCountByRcode().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * map<uint32, uint32> dnsCountByRcode = 4; + */ + public Builder putAllDnsCountByRcode( + java.util.Map values) { + internalGetMutableDnsCountByRcode().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.DNSStats) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.DNSStats) + private static final datadog.process_agent.ConnectionsOuterClass.DNSStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.DNSStats(); + } + + public static datadog.process_agent.ConnectionsOuterClass.DNSStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DNSStatsByQueryTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datadog.process_agent.DNSStatsByQueryType) + com.google.protobuf.MessageOrBuilder { + + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + int getDnsStatsByQueryTypeCount(); + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + boolean containsDnsStatsByQueryType( + int key); + /** + * Use {@link #getDnsStatsByQueryTypeMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDnsStatsByQueryType(); + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + java.util.Map + getDnsStatsByQueryTypeMap(); + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue); + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrThrow( + int key); + } + /** + * Protobuf type {@code datadog.process_agent.DNSStatsByQueryType} + */ + public static final class DNSStatsByQueryType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datadog.process_agent.DNSStatsByQueryType) + DNSStatsByQueryTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DNSStatsByQueryType.newBuilder() to construct. + private DNSStatsByQueryType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSStatsByQueryType() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSStatsByQueryType(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetDnsStatsByQueryType(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.class, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.Builder.class); + } + + public static final int DNSSTATSBYQUERYTYPE_FIELD_NUMBER = 1; + private static final class DnsStatsByQueryTypeDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByQueryType_; + private com.google.protobuf.MapField + internalGetDnsStatsByQueryType() { + if (dnsStatsByQueryType_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry); + } + return dnsStatsByQueryType_; + } + public int getDnsStatsByQueryTypeCount() { + return internalGetDnsStatsByQueryType().getMap().size(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public boolean containsDnsStatsByQueryType( + int key) { + + return internalGetDnsStatsByQueryType().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByQueryTypeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByQueryType() { + return getDnsStatsByQueryTypeMap(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public java.util.Map getDnsStatsByQueryTypeMap() { + return internalGetDnsStatsByQueryType().getMap(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { + + java.util.Map map = + internalGetDnsStatsByQueryType().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByQueryType().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeIntegerMapTo( + output, + internalGetDnsStatsByQueryType(), + DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetDnsStatsByQueryType().getMap().entrySet()) { + com.google.protobuf.MapEntry + dnsStatsByQueryType__ = DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dnsStatsByQueryType__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType)) { + return super.equals(obj); + } + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType other = (datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType) obj; + + if (!internalGetDnsStatsByQueryType().equals( + other.internalGetDnsStatsByQueryType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetDnsStatsByQueryType().getMap().isEmpty()) { + hash = (37 * hash) + DNSSTATSBYQUERYTYPE_FIELD_NUMBER; + hash = (53 * hash) + internalGetDnsStatsByQueryType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code datadog.process_agent.DNSStatsByQueryType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datadog.process_agent.DNSStatsByQueryType) + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetDnsStatsByQueryType(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableDnsStatsByQueryType(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.class, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.Builder.class); + } + + // Construct using datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableDnsStatsByQueryType().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDefaultInstanceForType() { + return datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance(); + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType build() { + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType buildPartial() { + datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType result = new datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dnsStatsByQueryType_ = internalGetDnsStatsByQueryType(); + result.dnsStatsByQueryType_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType) { + return mergeFrom((datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType other) { + if (other == datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance()) return this; + internalGetMutableDnsStatsByQueryType().mergeFrom( + other.internalGetDnsStatsByQueryType()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + dnsStatsByQueryType__ = input.readMessage( + DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDnsStatsByQueryType().getMutableMap().put( + dnsStatsByQueryType__.getKey(), dnsStatsByQueryType__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByQueryType_; + private com.google.protobuf.MapField + internalGetDnsStatsByQueryType() { + if (dnsStatsByQueryType_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry); + } + return dnsStatsByQueryType_; + } + private com.google.protobuf.MapField + internalGetMutableDnsStatsByQueryType() { + if (dnsStatsByQueryType_ == null) { + dnsStatsByQueryType_ = com.google.protobuf.MapField.newMapField( + DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry); + } + if (!dnsStatsByQueryType_.isMutable()) { + dnsStatsByQueryType_ = dnsStatsByQueryType_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return dnsStatsByQueryType_; + } + public int getDnsStatsByQueryTypeCount() { + return internalGetDnsStatsByQueryType().getMap().size(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public boolean containsDnsStatsByQueryType( + int key) { + + return internalGetDnsStatsByQueryType().getMap().containsKey(key); + } + /** + * Use {@link #getDnsStatsByQueryTypeMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDnsStatsByQueryType() { + return getDnsStatsByQueryTypeMap(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public java.util.Map getDnsStatsByQueryTypeMap() { + return internalGetDnsStatsByQueryType().getMap(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrDefault( + int key, + /* nullable */ +datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { + + java.util.Map map = + internalGetDnsStatsByQueryType().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrThrow( + int key) { + + java.util.Map map = + internalGetDnsStatsByQueryType().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearDnsStatsByQueryType() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableDnsStatsByQueryType().getMutableMap() + .clear(); + return this; + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + public Builder removeDnsStatsByQueryType( + int key) { + + internalGetMutableDnsStatsByQueryType().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDnsStatsByQueryType() { + bitField0_ |= 0x00000001; + return internalGetMutableDnsStatsByQueryType().getMutableMap(); + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + public Builder putDnsStatsByQueryType( + int key, + datadog.process_agent.ConnectionsOuterClass.DNSStats value) { + + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDnsStatsByQueryType().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; + */ + public Builder putAllDnsStatsByQueryType( + java.util.Map values) { + internalGetMutableDnsStatsByQueryType().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:datadog.process_agent.DNSStatsByQueryType) + } + + // @@protoc_insertion_point(class_scope:datadog.process_agent.DNSStatsByQueryType) + private static final datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType(); + } + + public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSStatsByQueryType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connections_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connections_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connections_DnsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connections_DnsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_ResourceMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_AgentConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Route_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Route_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Subnet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Subnet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_RouteMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_IPTranslation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_Addr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_Addr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_ProtocolStack_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_DNSEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_DNSStats_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_DNSStats_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037proto/process/connections.proto\022\025datad" + + "og.process_agent\032\031proto/process/agent.pr" + + "oto\"\265\017\n\024CollectorConnections\022\020\n\010hostName" + + "\030\002 \001(\t\022\021\n\tnetworkId\030\014 \001(\t\0226\n\013connections" + + "\030\003 \003(\0132!.datadog.process_agent.Connectio" + + "n\022\017\n\007groupId\030\005 \001(\005\022\021\n\tgroupSize\030\006 \001(\005\022]\n" + + "\021resolvedResources\030\010 \003(\0132B.datadog.proce" + + "ss_agent.CollectorConnections.ResolvedRe" + + "sourcesEntry\022Y\n\017containerForPid\030\n \003(\0132@." + + "datadog.process_agent.CollectorConnectio" + + "ns.ContainerForPidEntry\022\023\n\013encodedTags\030\013" + + " \001(\014\022\036\n\026encodedConnectionsTags\030& \001(\014\022C\n\021" + + "containerHostType\030\017 \001(\0162(.datadog.proces" + + "s_agent.ContainerHostType\022K\n\rconnTelemet" + + "ry\030\020 \001(\01324.datadog.process_agent.Collect" + + "orConnectionsTelemetry\022[\n\020connTelemetryM" + + "ap\030\' \003(\0132A.datadog.process_agent.Collect" + + "orConnections.ConnTelemetryMapEntry\022\024\n\014a" + + "rchitecture\030\021 \001(\t\022\025\n\rkernelVersion\030\022 \001(\t" + + "\022\020\n\010platform\030\023 \001(\t\022\027\n\017platformVersion\030\024 " + + "\001(\t\022q\n\033compilationTelemetryByAsset\030\025 \003(\013" + + "2L.datadog.process_agent.CollectorConnec" + + "tions.CompilationTelemetryByAssetEntry\022O" + + "\n\027kernelHeaderFetchResult\030) \001(\0162..datado" + + "g.process_agent.KernelHeaderFetchResult\022" + + "c\n\024CORETelemetryByAsset\030* \003(\0132E.datadog." + + "process_agent.CollectorConnections.CORET" + + "elemetryByAssetEntry\022\032\n\022PrebuiltEBPFAsse" + + "ts\030, \003(\t\022,\n\006routes\030\037 \003(\0132\034.datadog.proce" + + "ss_agent.Route\022;\n\rrouteMetadata\030\" \003(\0132$." + + "datadog.process_agent.RouteMetadata\022E\n\022a" + + "gentConfiguration\030# \001(\0132).datadog.proces" + + "s_agent.AgentConfiguration\022\022\n\nencodedDNS" + + "\030\016 \001(\014\022\017\n\007domains\030\036 \003(\t\022\035\n\025encodedDomain" + + "Database\030$ \001(\014\022\031\n\021encodedDnsLookups\030% \001(" + + "\014\022a\n\023resolvedHostsByName\030( \003(\0132D.datadog" + + ".process_agent.CollectorConnections.Reso" + + "lvedHostsByNameEntry\032a\n\026ResolvedResource" + + "sEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.dat" + + "adog.process_agent.ResourceMetadata:\0028\001\032" + + "6\n\024ContainerForPidEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\0327\n\025ConnTelemetryMapEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\032v\n Comp" + + "ilationTelemetryByAssetEntry\022\013\n\003key\030\001 \001(" + + "\t\022A\n\005value\030\002 \001(\01322.datadog.process_agent" + + ".RuntimeCompilationTelemetry:\0028\001\032^\n\031CORE" + + "TelemetryByAssetEntry\022\013\n\003key\030\001 \001(\t\0220\n\005va" + + "lue\030\002 \001(\0162!.datadog.process_agent.CORERe" + + "sult:\0028\001\032W\n\030ResolvedHostsByNameEntry\022\013\n\003" + + "key\030\001 \001(\t\022*\n\005value\030\002 \001(\0132\033.datadog.proce" + + "ss_agent.Host:\0028\001J\004\010\001\020\002J\004\010\004\020\005J\004\010\007\020\010J\004\010\t\020" + + "\nJ\004\010\r\020\016J\004\010 \020!J\004\010!\020\"\"\266\010\n\013Connections\0220\n\005c" + + "onns\030\001 \003(\0132!.datadog.process_agent.Conne" + + "ction\0228\n\003dns\030\002 \003(\0132+.datadog.process_age" + + "nt.Connections.DnsEntry\022B\n\rconnTelemetry" + + "\030\003 \001(\0132+.datadog.process_agent.Connectio" + + "nsTelemetry\022\017\n\007domains\030\004 \003(\t\022,\n\006routes\030\005" + + " \003(\0132\034.datadog.process_agent.Route\022h\n\033co" + + "mpilationTelemetryByAsset\030\006 \003(\0132C.datado" + + "g.process_agent.Connections.CompilationT" + + "elemetryByAssetEntry\022E\n\022agentConfigurati" + + "on\030\007 \001(\0132).datadog.process_agent.AgentCo" + + "nfiguration\022\014\n\004tags\030\010 \003(\t\022R\n\020connTelemet" + + "ryMap\030\t \003(\01328.datadog.process_agent.Conn" + + "ections.ConnTelemetryMapEntry\022O\n\027kernelH" + + "eaderFetchResult\030\n \001(\0162..datadog.process" + + "_agent.KernelHeaderFetchResult\022Z\n\024CORETe" + + "lemetryByAsset\030\013 \003(\0132<.datadog.process_a" + + "gent.Connections.CORETelemetryByAssetEnt" + + "ry\022\032\n\022PrebuiltEBPFAssets\030\014 \003(\t\032K\n\010DnsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.datadog" + + ".process_agent.DNSEntry:\0028\001\032v\n Compilati" + + "onTelemetryByAssetEntry\022\013\n\003key\030\001 \001(\t\022A\n\005" + + "value\030\002 \001(\01322.datadog.process_agent.Runt" + + "imeCompilationTelemetry:\0028\001\0327\n\025ConnTelem" + + "etryMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" + + ":\0028\001\032^\n\031CORETelemetryByAssetEntry\022\013\n\003key" + + "\030\001 \001(\t\0220\n\005value\030\002 \001(\0162!.datadog.process_" + + "agent.COREResult:\0028\001\"\372\016\n\nConnection\022\013\n\003p" + + "id\030\001 \001(\005\022*\n\005laddr\030\005 \001(\0132\033.datadog.proces" + + "s_agent.Addr\022*\n\005raddr\030\006 \001(\0132\033.datadog.pr" + + "ocess_agent.Addr\0227\n\006family\030\n \001(\0162\'.datad" + + "og.process_agent.ConnectionFamily\0223\n\004typ" + + "e\030\013 \001(\0162%.datadog.process_agent.Connecti" + + "onType\022G\n\024isLocalPortEphemeral\030) \001(\0162).d" + + "atadog.process_agent.EphemeralPortState\022" + + "\025\n\rlastBytesSent\030\020 \001(\004\022\031\n\021lastBytesRecei" + + "ved\030\021 \001(\004\022\027\n\017lastRetransmits\030\022 \001(\r\022=\n\tdi" + + "rection\030\023 \001(\0162*.datadog.process_agent.Co" + + "nnectionDirection\022\027\n\017lastPacketsSent\030& \001" + + "(\004\022\033\n\023lastPacketsReceived\030\' \001(\004\0226\n\010proto" + + "col\0300 \001(\0132$.datadog.process_agent.Protoc" + + "olStack\022\r\n\005netNS\030\024 \001(\r\022\027\n\017remoteNetworkI" + + "d\030 \001(\t\022;\n\ripTranslation\030\025 \001(\0132$.datadog" + + ".process_agent.IPTranslation\022\013\n\003rtt\030\026 \001(" + + "\r\022\016\n\006rttVar\030\027 \001(\r\022\021\n\tintraHost\030\030 \001(\010\022\036\n\026" + + "dnsSuccessfulResponses\030\031 \001(\r\022\032\n\022dnsFaile" + + "dResponses\030\032 \001(\r\022\023\n\013dnsTimeouts\030\033 \001(\r\022\034\n" + + "\024dnsSuccessLatencySum\030\034 \001(\004\022\034\n\024dnsFailur" + + "eLatencySum\030\035 \001(\004\022O\n\017dnsCountByRcode\030! \003" + + "(\01326.datadog.process_agent.Connection.Dn" + + "sCountByRcodeEntry\022\032\n\022lastTcpEstablished" + + "\030\036 \001(\r\022\025\n\rlastTcpClosed\030\037 \001(\r\022Q\n\020dnsStat" + + "sByDomain\030\" \003(\01327.datadog.process_agent." + + "Connection.DnsStatsByDomainEntry\022g\n\033dnsS" + + "tatsByDomainByQueryType\030* \003(\0132B.datadog." + + "process_agent.Connection.DnsStatsByDomai" + + "nByQueryTypeEntry\022s\n!dnsStatsByDomainOff" + + "setByQueryType\030+ \003(\0132H.datadog.process_a" + + "gent.Connection.DnsStatsByDomainOffsetBy" + + "QueryTypeEntry\022\020\n\010routeIdx\030$ \001(\005\022\026\n\016rout" + + "eTargetIdx\030( \001(\005\022\030\n\020httpAggregations\030% \001" + + "(\014\022\014\n\004tags\030, \003(\r\022\017\n\007tagsIdx\030- \001(\005\022\024\n\014tag" + + "sChecksum\030/ \001(\r\022\022\n\nstateIndex\030. \001(\r\022\037\n\027d" + + "ataStreamsAggregations\0301 \001(\014\022\031\n\021http2Agg" + + "regations\0302 \001(\014\0326\n\024DnsCountByRcodeEntry\022" + + "\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\032X\n\025DnsSt" + + "atsByDomainEntry\022\013\n\003key\030\001 \001(\005\022.\n\005value\030\002" + + " \001(\0132\037.datadog.process_agent.DNSStats:\0028" + + "\001\032n\n DnsStatsByDomainByQueryTypeEntry\022\013\n" + + "\003key\030\001 \001(\005\0229\n\005value\030\002 \001(\0132*.datadog.proc" + + "ess_agent.DNSStatsByQueryType:\0028\001\032t\n&Dns" + + "StatsByDomainOffsetByQueryTypeEntry\022\013\n\003k" + + "ey\030\001 \001(\005\0229\n\005value\030\002 \001(\0132*.datadog.proces" + + "s_agent.DNSStatsByQueryType:\0028\001J\004\010\002\020\003J\004\010" + + "\003\020\004J\004\010\004\020\005J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\014\020\rJ\004\010\r\020\016J" + + "\004\010\016\020\017J\004\010\017\020\020J\004\010#\020$\"r\n\020ResourceMetadata\022\n\n" + + "\002id\030\001 \001(\t\022\013\n\003key\030\002 \001(\r\022\017\n\007byteKey\030\003 \001(\014\022" + + "\014\n\004tags\030\004 \003(\t\022\020\n\010tagIndex\030\005 \001(\005\022\024\n\014tagsM" + + "odified\030\006 \001(\003\"\207\003\n\024ConnectionsTelemetry\022!" + + "\n\031monotonicKprobesTriggered\030\001 \001(\003\022\036\n\026mon" + + "otonicKprobesMissed\030\002 \001(\003\022#\n\033monotonicCo" + + "nntrackRegisters\030\003 \001(\003\022*\n\"monotonicConnt" + + "rackRegistersDropped\030\004 \001(\003\022$\n\034monotonicD" + + "nsPacketsProcessed\030\005 \001(\003\022\034\n\024monotonicCon" + + "nsClosed\030\006 \001(\003\022\027\n\017connsBpfMapSize\030\007 \001(\003\022" + + "\"\n\032monotonicUdpSendsProcessed\030\010 \001(\003\022\037\n\027m" + + "onotonicUdpSendsMissed\030\t \001(\003\022 \n\030conntrac" + + "kSamplingPercent\030\n \001(\003\022\027\n\017dnsStatsDroppe" + + "d\030\013 \001(\003\"\310\002\n\035CollectorConnectionsTelemetr" + + "y\022\030\n\020kprobesTriggered\030\001 \001(\003\022\025\n\rkprobesMi" + + "ssed\030\002 \001(\003\022\032\n\022conntrackRegisters\030\003 \001(\003\022!" + + "\n\031conntrackRegistersDropped\030\004 \001(\003\022\033\n\023dns" + + "PacketsProcessed\030\005 \001(\003\022\023\n\013connsClosed\030\006 " + + "\001(\003\022\027\n\017connsBpfMapSize\030\007 \001(\003\022\031\n\021udpSends" + + "Processed\030\010 \001(\003\022\026\n\016udpSendsMissed\030\t \001(\003\022" + + " \n\030conntrackSamplingPercent\030\n \001(\003\022\027\n\017dns" + + "StatsDropped\030\013 \001(\003\"\210\002\n\033RuntimeCompilatio" + + "nTelemetry\022!\n\031runtimeCompilationEnabled\030" + + "\001 \001(\010\022Q\n\030runtimeCompilationResult\030\002 \001(\0162" + + "/.datadog.process_agent.RuntimeCompilati" + + "onResult\022\"\n\032runtimeCompilationDuration\030\003" + + " \001(\003\022O\n\027kernelHeaderFetchResult\030\004 \001(\0162.." + + "datadog.process_agent.KernelHeaderFetchR" + + "esult\"P\n\022AgentConfiguration\022\022\n\nnpmEnable" + + "d\030\001 \001(\010\022\022\n\nusmEnabled\030\002 \001(\010\022\022\n\ndsmEnable" + + "d\030\003 \001(\010\"6\n\005Route\022-\n\006subnet\030\001 \001(\0132\035.datad" + + "og.process_agent.Subnet\"\027\n\006Subnet\022\r\n\005ali" + + "as\030\001 \001(\t\"T\n\rRouteMetadata\022\r\n\005alias\030\001 \001(\t" + + "\022\020\n\010tagIndex\030\002 \001(\005\022\024\n\014tagsModified\030\003 \001(\003" + + "\022\014\n\004tags\030\004 \003(\t\"_\n\rIPTranslation\022\021\n\treplS" + + "rcIP\030\001 \001(\t\022\021\n\treplDstIP\030\002 \001(\t\022\023\n\013replSrc" + + "Port\030\003 \001(\005\022\023\n\013replDstPort\030\004 \001(\005\"Y\n\004Addr\022" + + "\n\n\002ip\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\023\n\013containerId" + + "\030\005 \001(\t\022\020\n\010hostName\030\007 \001(\tJ\004\010\001\020\002J\004\010\004\020\005J\004\010\006" + + "\020\007\"C\n\rProtocolStack\0222\n\005stack\030\001 \003(\0162#.dat" + + "adog.process_agent.ProtocolType\"\031\n\010DNSEn" + + "try\022\r\n\005names\030\001 \003(\t\"\342\001\n\010DNSStats\022\023\n\013dnsTi" + + "meouts\030\001 \001(\r\022\034\n\024dnsSuccessLatencySum\030\002 \001" + + "(\004\022\034\n\024dnsFailureLatencySum\030\003 \001(\004\022M\n\017dnsC" + + "ountByRcode\030\004 \003(\01324.datadog.process_agen" + + "t.DNSStats.DnsCountByRcodeEntry\0326\n\024DnsCo" + + "untByRcodeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 " + + "\001(\r:\0028\001\"\324\001\n\023DNSStatsByQueryType\022`\n\023dnsSt" + + "atsByQueryType\030\001 \003(\0132C.datadog.process_a" + + "gent.DNSStatsByQueryType.DnsStatsByQuery" + + "TypeEntry\032[\n\030DnsStatsByQueryTypeEntry\022\013\n" + + "\003key\030\001 \001(\005\022.\n\005value\030\002 \001(\0132\037.datadog.proc" + + "ess_agent.DNSStats:\0028\001*\222\002\n\030RuntimeCompil" + + "ationResult\022\020\n\014NotAttempted\020\000\022\026\n\022Compila" + + "tionSuccess\020\001\022\024\n\020KernelVersionErr\020\002\022\025\n\021V" + + "erificationError\020\003\022\020\n\014OutputDirErr\020\004\022\021\n\r" + + "OutputFileErr\020\005\022\022\n\016NewCompilerErr\020\006\022\022\n\016C" + + "ompilationErr\020\007\022\021\n\rResultReadErr\020\010\022\022\n\016He" + + "aderFetchErr\020\t\022\027\n\023CompiledOutputFound\020\n\022" + + "\022\n\016InputHashError\020\013*\251\002\n\027KernelHeaderFetc" + + "hResult\022\025\n\021FetchNotAttempted\020\000\022\026\n\022Custom" + + "HeadersFound\020\001\022\027\n\023DefaultHeadersFound\020\002\022" + + "\025\n\021SysfsHeadersFound\020\003\022\032\n\026DownloadedHead" + + "ersFound\020\004\022\023\n\017DownloadSuccess\020\005\022\022\n\016HostV" + + "ersionErr\020\006\022\023\n\017DownloadFailure\020\007\022\025\n\021Vali" + + "dationFailure\020\010\022\031\n\025ReposDirAccessFailure" + + "\020\t\022#\n\037HeadersNotFoundDownloadDisabled\020\n*" + + "\232\001\n\nCOREResult\022\024\n\020SuccessCustomBTF\020\000\022\026\n\022" + + "SuccessEmbeddedBTF\020\001\022\025\n\021SuccessDefaultBT" + + "F\020\002\022\017\n\013BtfNotFound\020\003\022\022\n\016AssetReadError\020\004" + + "\022\021\n\rVerifierError\020\005\022\017\n\013LoaderError\020\006*\"\n\020" + + "ConnectionFamily\022\006\n\002v4\020\000\022\006\n\002v6\020\001*W\n\023Conn" + + "ectionDirection\022\017\n\013unspecified\020\000\022\014\n\010inco" + + "ming\020\001\022\014\n\010outgoing\020\002\022\t\n\005local\020\003\022\010\n\004none\020" + + "\004*U\n\022EphemeralPortState\022\030\n\024ephemeralUnsp" + + "ecified\020\000\022\021\n\rephemeralTrue\020\001\022\022\n\016ephemera" + + "lFalse\020\002*\347\001\n\014ProtocolType\022\030\n\024protocolUnc" + + "lassified\020\000\022\023\n\017protocolUnknown\020\001\022\020\n\014prot" + + "ocolHTTP\020\002\022\021\n\rprotocolHTTP2\020\003\022\017\n\013protoco" + + "lTLS\020\004\022\021\n\rprotocolKafka\020\005\022\021\n\rprotocolMon" + + "go\020\006\022\024\n\020protocolPostgres\020\007\022\020\n\014protocolAM" + + "QP\020\010\022\021\n\rprotocolRedis\020\t\022\021\n\rprotocolMySQL" + + "\020\nB-Z+github.com/DataDog/agent-payload/v" + + "5/processb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + datadog.process_agent.Agent.getDescriptor(), + }); + internal_static_datadog_process_agent_CollectorConnections_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_descriptor, + new java.lang.String[] { "HostName", "NetworkId", "Connections", "GroupId", "GroupSize", "ResolvedResources", "ContainerForPid", "EncodedTags", "EncodedConnectionsTags", "ContainerHostType", "ConnTelemetry", "ConnTelemetryMap", "Architecture", "KernelVersion", "Platform", "PlatformVersion", "CompilationTelemetryByAsset", "KernelHeaderFetchResult", "CORETelemetryByAsset", "PrebuiltEBPFAssets", "Routes", "RouteMetadata", "AgentConfiguration", "EncodedDNS", "Domains", "EncodedDomainDatabase", "EncodedDnsLookups", "ResolvedHostsByName", }); + internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor = + internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(0); + internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor = + internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(1); + internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor = + internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(2); + internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor = + internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(3); + internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor = + internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(4); + internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor = + internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(5); + internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connections_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_datadog_process_agent_Connections_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connections_descriptor, + new java.lang.String[] { "Conns", "Dns", "ConnTelemetry", "Domains", "Routes", "CompilationTelemetryByAsset", "AgentConfiguration", "Tags", "ConnTelemetryMap", "KernelHeaderFetchResult", "CORETelemetryByAsset", "PrebuiltEBPFAssets", }); + internal_static_datadog_process_agent_Connections_DnsEntry_descriptor = + internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(0); + internal_static_datadog_process_agent_Connections_DnsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connections_DnsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor = + internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(1); + internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor = + internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(2); + internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor = + internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(3); + internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connection_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_datadog_process_agent_Connection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connection_descriptor, + new java.lang.String[] { "Pid", "Laddr", "Raddr", "Family", "Type", "IsLocalPortEphemeral", "LastBytesSent", "LastBytesReceived", "LastRetransmits", "Direction", "LastPacketsSent", "LastPacketsReceived", "Protocol", "NetNS", "RemoteNetworkId", "IpTranslation", "Rtt", "RttVar", "IntraHost", "DnsSuccessfulResponses", "DnsFailedResponses", "DnsTimeouts", "DnsSuccessLatencySum", "DnsFailureLatencySum", "DnsCountByRcode", "LastTcpEstablished", "LastTcpClosed", "DnsStatsByDomain", "DnsStatsByDomainByQueryType", "DnsStatsByDomainOffsetByQueryType", "RouteIdx", "RouteTargetIdx", "HttpAggregations", "Tags", "TagsIdx", "TagsChecksum", "StateIndex", "DataStreamsAggregations", "Http2Aggregations", }); + internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor = + internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(0); + internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor = + internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(1); + internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor = + internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(2); + internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor = + internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(3); + internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_ResourceMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_ResourceMetadata_descriptor, + new java.lang.String[] { "Id", "Key", "ByteKey", "Tags", "TagIndex", "TagsModified", }); + internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor, + new java.lang.String[] { "MonotonicKprobesTriggered", "MonotonicKprobesMissed", "MonotonicConntrackRegisters", "MonotonicConntrackRegistersDropped", "MonotonicDnsPacketsProcessed", "MonotonicConnsClosed", "ConnsBpfMapSize", "MonotonicUdpSendsProcessed", "MonotonicUdpSendsMissed", "ConntrackSamplingPercent", "DnsStatsDropped", }); + internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor, + new java.lang.String[] { "KprobesTriggered", "KprobesMissed", "ConntrackRegisters", "ConntrackRegistersDropped", "DnsPacketsProcessed", "ConnsClosed", "ConnsBpfMapSize", "UdpSendsProcessed", "UdpSendsMissed", "ConntrackSamplingPercent", "DnsStatsDropped", }); + internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor, + new java.lang.String[] { "RuntimeCompilationEnabled", "RuntimeCompilationResult", "RuntimeCompilationDuration", "KernelHeaderFetchResult", }); + internal_static_datadog_process_agent_AgentConfiguration_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_AgentConfiguration_descriptor, + new java.lang.String[] { "NpmEnabled", "UsmEnabled", "DsmEnabled", }); + internal_static_datadog_process_agent_Route_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_datadog_process_agent_Route_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Route_descriptor, + new java.lang.String[] { "Subnet", }); + internal_static_datadog_process_agent_Subnet_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_datadog_process_agent_Subnet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Subnet_descriptor, + new java.lang.String[] { "Alias", }); + internal_static_datadog_process_agent_RouteMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_RouteMetadata_descriptor, + new java.lang.String[] { "Alias", "TagIndex", "TagsModified", "Tags", }); + internal_static_datadog_process_agent_IPTranslation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_IPTranslation_descriptor, + new java.lang.String[] { "ReplSrcIP", "ReplDstIP", "ReplSrcPort", "ReplDstPort", }); + internal_static_datadog_process_agent_Addr_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_datadog_process_agent_Addr_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_Addr_descriptor, + new java.lang.String[] { "Ip", "Port", "ContainerId", "HostName", }); + internal_static_datadog_process_agent_ProtocolStack_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_ProtocolStack_descriptor, + new java.lang.String[] { "Stack", }); + internal_static_datadog_process_agent_DNSEntry_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_DNSEntry_descriptor, + new java.lang.String[] { "Names", }); + internal_static_datadog_process_agent_DNSStats_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_datadog_process_agent_DNSStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_DNSStats_descriptor, + new java.lang.String[] { "DnsTimeouts", "DnsSuccessLatencySum", "DnsFailureLatencySum", "DnsCountByRcode", }); + internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor = + internal_static_datadog_process_agent_DNSStats_descriptor.getNestedTypes().get(0); + internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor, + new java.lang.String[] { "DnsStatsByQueryType", }); + internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor = + internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor.getNestedTypes().get(0); + internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + datadog.process_agent.Agent.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/process/connections.pb.go b/process/connections.pb.go index 41e3474e..9ec9cd99 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 @@ -249,49 +396,78 @@ const ( ProtocolType_protocolMySQL ProtocolType = 10 ) -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", -} -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, +// 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", + } + 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, + } +) + +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"` @@ -299,28 +475,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 @@ -330,172 +506,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"` @@ -506,13 +891,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"` @@ -524,24 +909,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. @@ -554,8329 +939,2330 @@ 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, 0xe7, 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, 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{ - // 3146 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcd, 0x73, 0xdb, 0xc6, - 0xd9, 0x37, 0x48, 0x4a, 0x22, 0x1f, 0x8a, 0x12, 0xb4, 0x92, 0x6c, 0x58, 0x76, 0x64, 0x9a, 0x76, - 0x6c, 0x45, 0x49, 0xe4, 0x44, 0xaf, 0xf3, 0x39, 0x49, 0x5e, 0x4b, 0xa2, 0x34, 0x92, 0x6c, 0xcb, - 0x32, 0x28, 0x3b, 0xf3, 0x66, 0xe6, 0x6d, 0x0b, 0x01, 0x2b, 0x0a, 0x11, 0x88, 0xc5, 0xec, 0x2e, - 0xec, 0x30, 0xa7, 0x4e, 0xa7, 0xbd, 0xb6, 0x9d, 0x1e, 0x3a, 0xd3, 0x9e, 0x32, 0xbd, 0xf5, 0x3f, - 0xe8, 0x9f, 0xd0, 0xde, 0xfa, 0x27, 0x74, 0xd2, 0x43, 0xef, 0x9d, 0xe9, 0xb1, 0x33, 0x9d, 0xdd, - 0x05, 0x48, 0x80, 0x04, 0x44, 0x2a, 0x75, 0x33, 0x3d, 0x11, 0xf8, 0x3d, 0x5f, 0xfb, 0xf1, 0xec, - 0x3e, 0x1f, 0x20, 0xdc, 0x08, 0x28, 0xe1, 0xe4, 0x5e, 0x40, 0x89, 0x8d, 0x19, 0xbb, 0x67, 0x13, - 0xdf, 0xc7, 0x36, 0x77, 0x89, 0xcf, 0xd6, 0x24, 0x05, 0x2d, 0x3a, 0x16, 0xb7, 0x1c, 0xd2, 0x5e, - 0x8b, 0x58, 0x7e, 0x68, 0xb5, 0xb1, 0xcf, 0x97, 0xae, 0xa6, 0xe5, 0x24, 0xa8, 0x24, 0x1a, 0x7f, - 0x9a, 0x87, 0x85, 0x2d, 0xe2, 0x79, 0xd8, 0xe6, 0x84, 0x6e, 0xf5, 0x15, 0xa2, 0x25, 0x28, 0x9f, - 0x12, 0xc6, 0x0f, 0xac, 0x0e, 0x36, 0x0a, 0x75, 0x6d, 0xa5, 0x62, 0xf6, 0xde, 0xd1, 0x16, 0x54, - 0x13, 0xb6, 0x8d, 0x62, 0xbd, 0xb8, 0x52, 0x5d, 0xbf, 0xb9, 0x96, 0x69, 0x7c, 0xad, 0xaf, 0xd4, - 0x4c, 0x4a, 0x21, 0x03, 0xa6, 0xda, 0x94, 0x84, 0xc1, 0x9e, 0x63, 0x4c, 0xd4, 0xb5, 0x95, 0x09, - 0x33, 0x7e, 0x45, 0xd7, 0xa1, 0x22, 0x1f, 0x5b, 0xee, 0xd7, 0xd8, 0x98, 0x94, 0xb4, 0x3e, 0x80, - 0x02, 0x98, 0xa3, 0x98, 0x11, 0xef, 0x05, 0x76, 0x4c, 0xcc, 0x48, 0x48, 0x6d, 0xcc, 0x8c, 0xb2, - 0x1c, 0xc2, 0x66, 0xee, 0x10, 0x86, 0x27, 0xb8, 0x66, 0x0e, 0x2a, 0xd9, 0xf6, 0x39, 0xed, 0x9a, - 0xc3, 0xca, 0xd1, 0x97, 0x30, 0x6b, 0x13, 0x9f, 0x5b, 0xae, 0x8f, 0xe9, 0x0e, 0xa1, 0x87, 0xae, - 0x63, 0x80, 0xb4, 0xf7, 0xe0, 0x22, 0xf6, 0xb6, 0xd2, 0x2a, 0x94, 0xb5, 0x41, 0xc5, 0xa8, 0x0e, - 0x55, 0xec, 0xdb, 0xc4, 0xc1, 0xce, 0x91, 0xd5, 0x66, 0x46, 0xb5, 0xae, 0xad, 0x4c, 0x9b, 0x49, - 0x48, 0xac, 0x8e, 0x8f, 0xf9, 0x4b, 0x42, 0xcf, 0xf6, 0x1c, 0x63, 0x5a, 0xee, 0x4c, 0x1f, 0x40, - 0xcb, 0x00, 0x11, 0x73, 0xf3, 0xa0, 0x65, 0xcc, 0x48, 0xf1, 0x04, 0x82, 0x9e, 0xc3, 0x5c, 0xcf, - 0xe4, 0x2e, 0x61, 0xfc, 0xa8, 0x1b, 0x60, 0x63, 0xb6, 0xae, 0xad, 0xcc, 0xac, 0xaf, 0xe4, 0x6f, - 0x60, 0x9a, 0xdf, 0x1c, 0x56, 0x81, 0xbe, 0x80, 0x9a, 0xd8, 0xdc, 0x23, 0xec, 0xe1, 0x0e, 0xe6, - 0xb4, 0x6b, 0xe8, 0x75, 0x6d, 0xa5, 0xba, 0x7e, 0xff, 0x02, 0x2b, 0xd4, 0x93, 0x35, 0xd3, 0xaa, - 0x50, 0x03, 0xa6, 0x2d, 0x6a, 0x9f, 0xba, 0x1c, 0xdb, 0x3c, 0xa4, 0xd8, 0x98, 0x93, 0x93, 0x4e, - 0x61, 0xe8, 0x36, 0xd4, 0xce, 0x30, 0xf5, 0xb1, 0xf7, 0x1c, 0x53, 0xe6, 0x12, 0xdf, 0x40, 0x92, - 0x29, 0x0d, 0x0a, 0xa7, 0x0e, 0x3c, 0x8b, 0x9f, 0x10, 0xda, 0x31, 0xe6, 0x95, 0x53, 0xc7, 0xef, - 0x68, 0x05, 0x66, 0xe3, 0xe7, 0x58, 0xc7, 0x82, 0x64, 0x19, 0x84, 0xd1, 0xcf, 0x35, 0xb8, 0x66, - 0x93, 0x4e, 0xe0, 0x7a, 0x96, 0x18, 0x78, 0x6f, 0xa0, 0x9b, 0xdd, 0x0d, 0xc6, 0x30, 0x37, 0x16, - 0xa5, 0x73, 0x3c, 0xba, 0x98, 0x73, 0xe4, 0xaa, 0x53, 0x8e, 0x72, 0x9e, 0x41, 0x71, 0x94, 0x1c, - 0xd2, 0xb1, 0x5c, 0x9f, 0x19, 0xcb, 0xf5, 0xe2, 0x4a, 0xc5, 0x8c, 0x5f, 0xd1, 0x7d, 0x98, 0xa4, - 0x24, 0xe4, 0x98, 0x19, 0x37, 0xe4, 0xa0, 0xae, 0xe7, 0x0c, 0xca, 0x14, 0x4c, 0x66, 0xc4, 0x8b, - 0xf6, 0xa1, 0x26, 0x9f, 0x1e, 0x63, 0x6e, 0x09, 0x7e, 0xa3, 0x21, 0x85, 0x6f, 0x9f, 0x27, 0x1c, - 0xf3, 0x9a, 0x69, 0x51, 0xf4, 0x7f, 0x80, 0x24, 0xd7, 0x16, 0xf1, 0x4f, 0xdc, 0x76, 0x48, 0xe5, - 0x0c, 0x8c, 0x5b, 0xd2, 0x3b, 0xde, 0xc8, 0x51, 0xb8, 0x31, 0x24, 0x60, 0x66, 0x28, 0x41, 0xf7, - 0x61, 0x31, 0xf6, 0x6c, 0x39, 0xdd, 0xa6, 0xc5, 0xad, 0x63, 0x8b, 0x61, 0xe3, 0xb6, 0x74, 0xfb, - 0x6c, 0x22, 0x7a, 0x0b, 0xe6, 0x62, 0x82, 0xcf, 0x1e, 0x11, 0x72, 0x16, 0x06, 0xcc, 0x78, 0x5d, - 0x4a, 0x0c, 0x13, 0xd0, 0xfb, 0x70, 0x39, 0x02, 0x93, 0x9e, 0x2a, 0x8e, 0xe6, 0x1d, 0x29, 0x92, - 0x43, 0x45, 0x1d, 0xd0, 0x53, 0x4e, 0xfc, 0xd8, 0x0a, 0x8c, 0xbb, 0x72, 0x15, 0x37, 0x2e, 0x78, - 0x69, 0xa4, 0x74, 0x28, 0x67, 0x18, 0x52, 0x8d, 0x5e, 0xc0, 0x7c, 0x7c, 0x6f, 0x89, 0x23, 0xc9, - 0x36, 0xbb, 0xf2, 0xe2, 0x5e, 0x91, 0x16, 0x9b, 0xdf, 0xe5, 0x5a, 0x4c, 0xa8, 0x51, 0x46, 0xb3, - 0x0c, 0xa0, 0x53, 0xb8, 0xa2, 0x4e, 0xd8, 0x2e, 0xb6, 0x1c, 0x4c, 0x77, 0x30, 0xb7, 0x4f, 0x4d, - 0xcc, 0x42, 0x8f, 0x1b, 0x6f, 0xc8, 0x4b, 0x65, 0x2d, 0xc7, 0xf6, 0xc3, 0x6c, 0x29, 0x33, 0x4f, - 0x1d, 0xea, 0xc2, 0xc2, 0xd6, 0x13, 0x73, 0x7b, 0xe8, 0xb0, 0xad, 0xca, 0x29, 0x6e, 0x5f, 0x68, - 0x51, 0x33, 0xf4, 0xa8, 0x39, 0x66, 0x9a, 0x40, 0x6b, 0x80, 0x0e, 0x29, 0x3e, 0x0e, 0x5d, 0x8f, - 0x6f, 0x6f, 0x1e, 0xee, 0x48, 0x90, 0x19, 0x6f, 0xc9, 0x93, 0x96, 0x41, 0x59, 0xea, 0xc0, 0xe5, - 0xec, 0xe0, 0x82, 0x74, 0x28, 0x9e, 0xe1, 0xae, 0xa1, 0xc9, 0x7b, 0x45, 0x3c, 0xa2, 0x4f, 0x61, - 0xe2, 0x85, 0xe5, 0x85, 0x2a, 0xc6, 0x56, 0xd7, 0xef, 0xe6, 0x1d, 0xb1, 0x48, 0x4f, 0xef, 0x94, - 0x29, 0xa9, 0x8f, 0x0b, 0x1f, 0x6a, 0x4b, 0x9b, 0x22, 0x82, 0x0f, 0xc7, 0x96, 0xa4, 0xb1, 0x09, - 0x65, 0x6c, 0x21, 0x69, 0xac, 0x92, 0xd4, 0xb1, 0x05, 0x8b, 0x99, 0xae, 0x96, 0x31, 0xe2, 0x94, - 0x92, 0x62, 0x52, 0xc9, 0x4f, 0x34, 0xa8, 0x8f, 0xba, 0xc8, 0x32, 0x14, 0xee, 0xa6, 0x97, 0x60, - 0x3d, 0x6f, 0x09, 0x42, 0x9f, 0xbb, 0x1d, 0x9c, 0x65, 0x20, 0x39, 0x88, 0x2f, 0xe1, 0x6a, 0xee, - 0xfe, 0x66, 0x18, 0xff, 0x20, 0x69, 0x7c, 0x26, 0x3f, 0x89, 0x79, 0x62, 0x6e, 0x47, 0x1e, 0x9a, - 0xb0, 0x65, 0x83, 0x91, 0x77, 0x5c, 0x32, 0x4c, 0xbd, 0x9b, 0x9e, 0xe7, 0xb5, 0x1c, 0x53, 0x42, - 0x53, 0xc2, 0xc8, 0x7e, 0xa9, 0xac, 0xe9, 0x85, 0xfd, 0x52, 0xb9, 0xa4, 0x4f, 0xec, 0x97, 0xca, - 0x53, 0x7a, 0x79, 0xbf, 0x54, 0xae, 0xe8, 0xb0, 0x5f, 0x2a, 0xd7, 0xf4, 0x99, 0xfd, 0x52, 0xb9, - 0xae, 0xdf, 0xdc, 0x2f, 0x95, 0x6f, 0xea, 0x8d, 0xc6, 0x37, 0x00, 0xd5, 0x64, 0x0a, 0xf7, 0x01, - 0x4c, 0x88, 0x8b, 0x82, 0x19, 0xda, 0xb8, 0x09, 0x9a, 0xe2, 0x47, 0x9f, 0x42, 0xd1, 0xf1, 0x99, - 0x51, 0x90, 0x62, 0x6f, 0x8e, 0x14, 0x63, 0x6b, 0x4d, 0x3f, 0xca, 0x9e, 0x84, 0x1c, 0x7a, 0x3a, - 0x98, 0x0b, 0x14, 0xe5, 0x84, 0xc7, 0x50, 0x94, 0x9b, 0x02, 0x24, 0x22, 0x5c, 0x29, 0x2f, 0xc2, - 0x4d, 0x5c, 0x20, 0xc2, 0xfd, 0x6c, 0x44, 0x08, 0x9f, 0x94, 0xba, 0xb6, 0xc6, 0x98, 0xfa, 0xbf, - 0x17, 0xb9, 0xb3, 0xa3, 0xe3, 0xd4, 0xab, 0x88, 0x8e, 0x08, 0x4a, 0x5c, 0xc4, 0xa9, 0xb2, 0x5c, - 0x2f, 0xf9, 0x8c, 0x9c, 0x8c, 0xa8, 0x54, 0x91, 0x53, 0xfd, 0x70, 0xac, 0xa9, 0x8e, 0x17, 0x8c, - 0xce, 0x09, 0x0a, 0xf0, 0x6a, 0x83, 0x42, 0x90, 0x13, 0x14, 0xaa, 0x72, 0x4e, 0x9f, 0x8c, 0x33, - 0xa7, 0x57, 0x12, 0x0b, 0xa6, 0x73, 0x63, 0xc1, 0xe7, 0x50, 0x8e, 0x0f, 0x47, 0xc6, 0x95, 0xf0, - 0x5e, 0xfa, 0x4a, 0xb8, 0x91, 0x33, 0xe0, 0xe6, 0x41, 0x4b, 0x8d, 0xe9, 0xbf, 0xed, 0xb2, 0x7d, - 0x25, 0x61, 0xe3, 0x7b, 0xbc, 0xb1, 0x1b, 0xff, 0x9c, 0x07, 0xe8, 0x6f, 0xbf, 0xd0, 0x1e, 0xb8, - 0x4e, 0x1c, 0x22, 0x03, 0xd7, 0x11, 0x97, 0xb4, 0x67, 0x39, 0x0e, 0x95, 0x35, 0x69, 0xfe, 0x25, - 0xbd, 0xe1, 0x38, 0xd4, 0x54, 0x9c, 0x42, 0x84, 0x4a, 0x91, 0xc9, 0x31, 0x44, 0x24, 0x27, 0xfa, - 0x5f, 0x98, 0x3c, 0xb1, 0x3a, 0xae, 0xd7, 0x8d, 0x0e, 0xc4, 0xdd, 0x91, 0x9e, 0xba, 0x23, 0xd9, - 0xcd, 0x48, 0x0c, 0x7d, 0x04, 0x25, 0x2e, 0x2a, 0xb7, 0xaa, 0x14, 0x7f, 0x7d, 0xa4, 0xb8, 0x2c, - 0xdb, 0xa4, 0x88, 0xa8, 0x94, 0x3c, 0x8b, 0xf1, 0xcd, 0x2e, 0xc7, 0xac, 0x85, 0x7d, 0x2e, 0x2b, - 0xb5, 0x92, 0x99, 0x06, 0x45, 0x96, 0xdc, 0x03, 0x4c, 0x6c, 0x63, 0xf7, 0x05, 0x76, 0x64, 0xe1, - 0x55, 0x32, 0x87, 0x09, 0xa2, 0x76, 0x12, 0xa0, 0x89, 0x39, 0xb5, 0x7c, 0xd6, 0x71, 0x39, 0x93, - 0xf5, 0x57, 0xcd, 0x1c, 0x84, 0xd1, 0x2e, 0x54, 0x1c, 0x97, 0xaa, 0x41, 0xc9, 0x12, 0x6c, 0x66, - 0x7d, 0x75, 0xe4, 0xe8, 0x9b, 0xb1, 0x84, 0xd9, 0x17, 0x16, 0x0e, 0xe5, 0x63, 0x7e, 0xd0, 0x92, - 0x55, 0x5a, 0xcd, 0x54, 0x2f, 0xa2, 0x74, 0x71, 0x83, 0x23, 0x61, 0x4e, 0xb9, 0xad, 0xb1, 0x28, - 0x37, 0x25, 0xaf, 0x74, 0xd9, 0x3b, 0x4c, 0xf0, 0x9a, 0x69, 0x51, 0xe1, 0x1d, 0x94, 0x73, 0xe3, - 0xb2, 0xd4, 0x2f, 0x1e, 0xd1, 0x65, 0x98, 0xa4, 0x9c, 0x3f, 0xb7, 0xa8, 0x71, 0x45, 0x82, 0xd1, - 0x9b, 0xa8, 0xc9, 0x5d, 0x9f, 0x53, 0x4b, 0xc4, 0x6e, 0xc3, 0xa8, 0x6b, 0x2b, 0x65, 0xb3, 0x0f, - 0x88, 0x1a, 0xc2, 0xf1, 0x59, 0x2b, 0xb4, 0x85, 0xe1, 0x93, 0xd0, 0x33, 0x31, 0x0b, 0x88, 0xcf, - 0x30, 0x33, 0xae, 0x4a, 0x2d, 0x39, 0x54, 0x71, 0xd7, 0x38, 0x3e, 0xdb, 0xb1, 0x5c, 0x4f, 0x26, - 0x92, 0x91, 0xcc, 0x92, 0x94, 0xc9, 0xa0, 0xa0, 0x3a, 0x54, 0x1d, 0x9f, 0x1d, 0xb9, 0x1d, 0x4c, - 0x42, 0xce, 0x8c, 0x6b, 0x92, 0x31, 0x09, 0xa1, 0x75, 0x58, 0xe8, 0xdb, 0x7a, 0x64, 0x71, 0xec, - 0xdb, 0xdd, 0x56, 0xd8, 0x31, 0xae, 0xcb, 0x8d, 0xcd, 0xa4, 0x45, 0x32, 0xc2, 0x56, 0x48, 0x71, - 0x42, 0xe6, 0xb5, 0x9e, 0xcc, 0x10, 0x4d, 0x8c, 0x5c, 0x6c, 0xfc, 0x91, 0x1d, 0x6c, 0x33, 0x6e, - 0x1d, 0x7b, 0x2e, 0x3b, 0xc5, 0x8e, 0xb1, 0xac, 0x46, 0x3e, 0x4c, 0x89, 0x7d, 0xf2, 0xc8, 0x0e, - 0xb6, 0x3c, 0xc2, 0xb0, 0x63, 0xdc, 0x90, 0xac, 0x69, 0x50, 0x78, 0x19, 0xc5, 0x1d, 0xc2, 0xf1, - 0x41, 0xaf, 0xff, 0x51, 0x57, 0x15, 0xfa, 0x00, 0x8c, 0x7e, 0x04, 0xb3, 0x8e, 0xcf, 0xb6, 0x48, - 0xe8, 0xf3, 0xcd, 0xae, 0x29, 0x0a, 0x34, 0xe3, 0xa6, 0x0c, 0x09, 0xef, 0x8f, 0xf4, 0x35, 0x91, - 0xcb, 0x24, 0x05, 0xa3, 0x3e, 0xcd, 0x80, 0x3a, 0x64, 0x83, 0x2e, 0x56, 0x8b, 0x5b, 0x22, 0xeb, - 0x53, 0x15, 0x66, 0x54, 0x25, 0x7f, 0x30, 0x96, 0x89, 0x94, 0x64, 0x14, 0x48, 0x07, 0x15, 0xa2, - 0x25, 0x28, 0xcb, 0x7c, 0x65, 0xcf, 0xf9, 0x4a, 0xd6, 0xb4, 0x13, 0x66, 0xef, 0x1d, 0xad, 0x82, - 0x7e, 0xca, 0x79, 0xb0, 0xd1, 0x6e, 0x53, 0xdc, 0xb6, 0x54, 0x23, 0x4e, 0x55, 0xb1, 0x43, 0x78, - 0x7c, 0x3c, 0x0f, 0x2d, 0xfb, 0x0c, 0x73, 0x75, 0xe8, 0xef, 0xc8, 0xdd, 0x1b, 0x84, 0xd1, 0x3b, - 0x30, 0x9f, 0x80, 0x7a, 0x07, 0xff, 0xae, 0xe4, 0xce, 0x22, 0xa1, 0x3b, 0x30, 0x23, 0xc7, 0x74, - 0x64, 0xd1, 0x36, 0xe6, 0x62, 0xa4, 0x2b, 0x72, 0xa4, 0x03, 0x28, 0xfa, 0x7f, 0x58, 0x70, 0xd9, - 0x23, 0x62, 0x5b, 0xde, 0x21, 0xa1, 0x7c, 0x3b, 0x38, 0xc5, 0x1d, 0x4c, 0x2d, 0x2f, 0x2a, 0x13, - 0xf3, 0x72, 0x9d, 0x1e, 0x9f, 0x10, 0x12, 0x8b, 0x83, 0xcd, 0x4c, 0x35, 0xe8, 0xa7, 0x1a, 0x5c, - 0x1b, 0x5c, 0xbf, 0xcd, 0xee, 0xd3, 0x10, 0xd3, 0xae, 0x6c, 0x71, 0xad, 0x8e, 0x68, 0x10, 0xe6, - 0xee, 0x4d, 0x42, 0x49, 0x94, 0xcf, 0x9d, 0x63, 0x06, 0xfd, 0x5a, 0x83, 0x9b, 0x83, 0xf4, 0x27, - 0x27, 0x27, 0x0c, 0xf3, 0xe4, 0x60, 0xde, 0x94, 0x83, 0xd9, 0xbd, 0xf8, 0x60, 0x86, 0x54, 0xa9, - 0x21, 0x8d, 0x36, 0xd9, 0xcb, 0x06, 0x45, 0xd5, 0x5a, 0x8b, 0xb2, 0x41, 0x03, 0xa6, 0xc4, 0xaf, - 0xd8, 0xb3, 0xb7, 0x55, 0x07, 0x36, 0x7a, 0x45, 0xcb, 0x00, 0x4c, 0x2c, 0xf6, 0x9e, 0xef, 0xe0, - 0xaf, 0x8c, 0x35, 0x79, 0x18, 0x13, 0x08, 0x6a, 0xc0, 0xb4, 0x60, 0xdd, 0x3a, 0xc5, 0xf6, 0x19, - 0x0b, 0x3b, 0xc6, 0x3d, 0xc9, 0x91, 0xc2, 0xd0, 0x03, 0x28, 0xcb, 0x16, 0xb3, 0x4d, 0x3c, 0xe3, - 0x9d, 0x73, 0x2f, 0xe1, 0xc3, 0x88, 0xad, 0xc5, 0x2d, 0xfb, 0xcc, 0xec, 0x49, 0xa1, 0x0f, 0xe1, - 0x8a, 0x10, 0x68, 0x71, 0x8a, 0xad, 0x0e, 0x4b, 0x79, 0xfa, 0xbb, 0xd2, 0xd3, 0xf3, 0xc8, 0x22, - 0x7a, 0x89, 0x43, 0xb0, 0x9e, 0x92, 0x59, 0x57, 0x3d, 0x9e, 0x21, 0x82, 0x28, 0xa0, 0xb3, 0x0e, - 0x7d, 0x32, 0xf7, 0xa8, 0x65, 0x24, 0x31, 0xb5, 0x64, 0x12, 0xe3, 0xc0, 0x62, 0xe6, 0xa9, 0xce, - 0xa8, 0xc2, 0xc7, 0x4f, 0xfa, 0xa4, 0xba, 0xa4, 0x95, 0xaf, 0xa1, 0x3e, 0xca, 0x3f, 0x33, 0x0c, - 0x3e, 0x48, 0x1b, 0x5c, 0x1d, 0x61, 0x30, 0xa1, 0x31, 0x69, 0xfb, 0xc7, 0x1a, 0xdc, 0x19, 0xcf, - 0x1f, 0xff, 0x53, 0x43, 0xd8, 0x2f, 0x95, 0x0b, 0x7a, 0x71, 0xbf, 0x54, 0x2e, 0xea, 0xa5, 0x81, - 0x82, 0xb8, 0xac, 0x57, 0x7a, 0x65, 0xf1, 0xb4, 0x5e, 0xeb, 0x15, 0xc7, 0x33, 0xfa, 0xec, 0x7e, - 0xa9, 0x3c, 0xab, 0xeb, 0xfb, 0xa5, 0xf2, 0x2d, 0xfd, 0x76, 0xe3, 0x77, 0x1a, 0xe8, 0x83, 0xbd, - 0x14, 0x34, 0x03, 0x85, 0x28, 0x09, 0xac, 0x98, 0x05, 0xd7, 0x89, 0x87, 0x5f, 0xe8, 0xef, 0xbb, - 0x01, 0x53, 0xc7, 0x5d, 0x8e, 0x1f, 0x62, 0x55, 0xcb, 0x4e, 0x9b, 0xf1, 0x6b, 0xef, 0x5c, 0x95, - 0x12, 0x55, 0xd6, 0x12, 0x94, 0xb9, 0xd5, 0x56, 0x67, 0x47, 0x7d, 0xda, 0xe8, 0xbd, 0xc7, 0x27, - 0xe7, 0x31, 0x71, 0xdc, 0x13, 0x17, 0x3b, 0x32, 0x67, 0x2c, 0x9a, 0x29, 0xac, 0xf1, 0xcd, 0x84, - 0xec, 0xe8, 0x0c, 0x15, 0xc5, 0xe8, 0x13, 0xb8, 0xda, 0x21, 0x3e, 0xe1, 0xc4, 0x77, 0xed, 0x87, - 0x01, 0x25, 0xc7, 0x98, 0x1d, 0x51, 0xb7, 0xdd, 0xc6, 0x14, 0xab, 0xf1, 0x17, 0xcd, 0x7c, 0x06, - 0x91, 0x86, 0x0c, 0x12, 0x1f, 0xbb, 0x4c, 0x44, 0x5b, 0x95, 0x92, 0xe7, 0x50, 0xd1, 0x03, 0xb8, - 0xd6, 0xa3, 0x88, 0x61, 0x71, 0x2a, 0x8e, 0x29, 0x6e, 0xbb, 0x8c, 0x63, 0xca, 0xe4, 0x82, 0x14, - 0xcd, 0xf3, 0x58, 0xd0, 0x01, 0x34, 0xce, 0x21, 0x37, 0x29, 0x09, 0x02, 0xec, 0x18, 0x25, 0xa9, - 0x68, 0x0c, 0x4e, 0xb4, 0x09, 0xd7, 0x7b, 0x5c, 0x4d, 0x9f, 0x45, 0x21, 0xe9, 0x50, 0xb9, 0x12, - 0x56, 0xdf, 0x93, 0x8a, 0xe6, 0xb9, 0x3c, 0x22, 0xad, 0x49, 0x59, 0x62, 0x51, 0xe6, 0xa1, 0x36, - 0x24, 0x93, 0x26, 0xe2, 0xa8, 0x6c, 0x90, 0x6c, 0x06, 0x27, 0x8f, 0x2d, 0xf5, 0x79, 0x6a, 0x4a, - 0xb2, 0x0f, 0xc2, 0xe8, 0x33, 0x58, 0xea, 0x69, 0x78, 0xe6, 0x04, 0x2d, 0xec, 0x3b, 0x89, 0xf1, - 0x95, 0xa5, 0xd0, 0x39, 0x1c, 0xe2, 0xea, 0x1b, 0xa2, 0x46, 0x9b, 0x55, 0x91, 0xc2, 0x79, 0x64, - 0xf4, 0x31, 0x18, 0x76, 0xbc, 0x70, 0x2d, 0xab, 0x13, 0x78, 0xae, 0xdf, 0x3e, 0xc4, 0xd4, 0x16, - 0x41, 0x1f, 0xa4, 0x68, 0x2e, 0x5d, 0xcc, 0x2f, 0x8e, 0x24, 0xf1, 0xa6, 0x54, 0xd5, 0xfc, 0x06, - 0xe0, 0xc6, 0x6f, 0x4a, 0xf0, 0xda, 0xb9, 0xdf, 0x70, 0x44, 0x7e, 0x72, 0x96, 0xed, 0xa2, 0x43, - 0xb8, 0xfc, 0x78, 0x93, 0xe1, 0x90, 0x69, 0x50, 0x24, 0x95, 0x76, 0x9e, 0xfb, 0x65, 0x50, 0xc4, - 0x69, 0xb1, 0x47, 0x38, 0x5b, 0x3e, 0x83, 0xc8, 0x84, 0x9c, 0x5c, 0xd7, 0xca, 0x22, 0x89, 0xf4, - 0xdb, 0x1e, 0x72, 0xa4, 0x24, 0x74, 0x01, 0xff, 0x79, 0x0b, 0xe6, 0xc2, 0x1c, 0xb7, 0x19, 0x26, - 0x88, 0x1c, 0x2c, 0xcc, 0x72, 0x92, 0x01, 0xf4, 0x7b, 0xf2, 0x8d, 0xbf, 0x17, 0xe0, 0xda, 0x39, - 0xfd, 0x03, 0xb1, 0x2f, 0x74, 0x88, 0xbc, 0xed, 0x5b, 0xc7, 0x5e, 0xe4, 0x22, 0x65, 0x33, 0x9f, - 0x01, 0x9d, 0x81, 0x31, 0x4c, 0x8c, 0xba, 0x4b, 0xaa, 0x23, 0x70, 0x6f, 0xec, 0x9e, 0x46, 0xd4, - 0x1f, 0xc8, 0x55, 0x28, 0x8e, 0xf1, 0x30, 0xad, 0x19, 0xb7, 0xe9, 0x94, 0xeb, 0x9d, 0xc3, 0x71, - 0x5e, 0x27, 0xac, 0xf4, 0x4a, 0x3b, 0x61, 0x0d, 0x0e, 0x68, 0xb8, 0x2f, 0x28, 0xf2, 0x38, 0x3f, - 0xe8, 0xa4, 0xd7, 0x36, 0x81, 0x08, 0x7a, 0xc8, 0x7a, 0xf4, 0x82, 0xa2, 0xf7, 0x11, 0x41, 0x77, - 0xfa, 0xf4, 0xa2, 0xa2, 0xf7, 0x91, 0xc6, 0x67, 0x30, 0x21, 0xfb, 0xaa, 0xe8, 0x3d, 0x98, 0x64, - 0xe1, 0xb1, 0x8f, 0xb9, 0x34, 0x52, 0x5d, 0x7f, 0x2d, 0x67, 0x5e, 0x2d, 0xc9, 0x64, 0x46, 0xcc, - 0x8d, 0x65, 0x98, 0x54, 0x88, 0xc8, 0xac, 0x2c, 0xcf, 0xb5, 0x58, 0x14, 0x86, 0xd5, 0x4b, 0xa3, - 0x0b, 0xb5, 0xd4, 0xc7, 0xc5, 0x6c, 0xb6, 0x54, 0xc0, 0x2d, 0x8c, 0x08, 0xb8, 0xc5, 0xe1, 0x80, - 0x9b, 0x15, 0xc4, 0x1b, 0xbf, 0xd0, 0xa0, 0x96, 0xea, 0x0e, 0x88, 0x22, 0x9f, 0xe2, 0xc0, 0x6b, - 0x51, 0x7b, 0xef, 0x30, 0xb2, 0xdf, 0x07, 0x62, 0x6a, 0x93, 0xf1, 0xbd, 0xc3, 0xe8, 0xfb, 0x4a, - 0x1f, 0x10, 0x77, 0x43, 0xc4, 0x2a, 0xca, 0x16, 0x39, 0x88, 0x09, 0x33, 0x09, 0xc5, 0x1c, 0x4d, - 0xc6, 0x25, 0x47, 0xa9, 0xcf, 0x11, 0x41, 0x8d, 0xaf, 0xa1, 0xb4, 0xe1, 0x38, 0x54, 0xa6, 0x2b, - 0x41, 0x64, 0xa2, 0xe0, 0x06, 0x62, 0xf4, 0x41, 0x5f, 0xa9, 0x7c, 0x8e, 0xee, 0x22, 0xf5, 0x4d, - 0x28, 0xfa, 0x83, 0x45, 0xc5, 0x4c, 0x42, 0xa9, 0xff, 0x77, 0x4c, 0xa5, 0xff, 0xdf, 0x31, 0xf0, - 0xc9, 0x61, 0x52, 0x9f, 0x6a, 0xec, 0x43, 0x2d, 0x95, 0xa5, 0xa3, 0x8f, 0x60, 0x82, 0x89, 0x07, - 0xf9, 0x6d, 0x61, 0x66, 0xfd, 0xd6, 0x88, 0xd4, 0x5e, 0x65, 0x72, 0x52, 0xa2, 0x51, 0x87, 0x72, - 0xdc, 0xd0, 0x94, 0x4d, 0x1c, 0xab, 0x83, 0xd5, 0x27, 0x8a, 0x8a, 0xa9, 0x5e, 0x1a, 0x7f, 0x28, - 0x48, 0x16, 0x79, 0xab, 0x0c, 0x76, 0x35, 0xb4, 0xf1, 0xbb, 0x1a, 0x85, 0xef, 0xd0, 0xd5, 0x28, - 0x9e, 0xd3, 0xd5, 0xf8, 0xc1, 0x70, 0x57, 0xa1, 0x24, 0x2b, 0xb9, 0xfb, 0x23, 0xd2, 0xd9, 0xf1, - 0x7a, 0x0a, 0xaf, 0xa2, 0x0e, 0x69, 0xfc, 0x43, 0x83, 0xf9, 0x8c, 0x2c, 0x1a, 0x85, 0x32, 0x9c, - 0x0d, 0xc2, 0xd1, 0x97, 0xa1, 0xad, 0xf1, 0xd3, 0xf1, 0x44, 0x49, 0x3a, 0x50, 0x84, 0x66, 0xe9, - 0x5f, 0x6a, 0x83, 0x91, 0x27, 0xf0, 0x4a, 0x2b, 0xa3, 0xd5, 0x5f, 0x15, 0xc0, 0xc8, 0xbb, 0xe0, - 0x91, 0x0e, 0xd3, 0x07, 0x84, 0x6f, 0x70, 0x8e, 0x3b, 0x01, 0xc7, 0x8e, 0x7e, 0x09, 0x5d, 0x06, - 0x94, 0x60, 0x8b, 0xdc, 0x43, 0xd7, 0xd0, 0x02, 0xe8, 0x0f, 0x93, 0xff, 0x18, 0xd9, 0xa6, 0x54, - 0x2f, 0xa0, 0x45, 0x98, 0x7b, 0x8e, 0xa9, 0x7b, 0xe2, 0xda, 0x2a, 0x14, 0x51, 0x4a, 0xa8, 0x5e, - 0x14, 0x6a, 0x9f, 0x84, 0x3c, 0x08, 0x79, 0xd3, 0xa5, 0x82, 0xb1, 0x84, 0xe6, 0xa0, 0xa6, 0x90, - 0x1d, 0xd7, 0xc3, 0x02, 0x9a, 0x40, 0x08, 0x66, 0x0e, 0xf0, 0x4b, 0x65, 0x0c, 0x4b, 0xb6, 0x49, - 0x81, 0x25, 0x23, 0x1b, 0xa5, 0xfa, 0x94, 0x10, 0x8d, 0xee, 0x78, 0x6c, 0x39, 0x02, 0x2a, 0x0b, - 0xb6, 0xc4, 0x45, 0x2f, 0xb0, 0x0a, 0xba, 0x02, 0xf3, 0x91, 0x2e, 0x27, 0xb2, 0x44, 0x42, 0xdf, - 0xd1, 0x41, 0x30, 0xef, 0xf9, 0x41, 0xc8, 0x77, 0x2d, 0x76, 0xaa, 0x06, 0x58, 0x5d, 0xfd, 0x7d, - 0x01, 0xae, 0xe4, 0x44, 0x12, 0x31, 0x27, 0xf9, 0x9a, 0xb1, 0x30, 0x21, 0xe3, 0xa4, 0xa3, 0x24, - 0x98, 0x52, 0xaf, 0x09, 0xbb, 0x4d, 0x7c, 0x62, 0x85, 0x1e, 0x4f, 0x11, 0xe4, 0xda, 0xb4, 0xba, - 0xec, 0x84, 0xa5, 0xe0, 0x22, 0x5a, 0x82, 0xcb, 0x4d, 0xf2, 0xd2, 0xf7, 0x88, 0xe5, 0x60, 0x27, - 0x45, 0x2b, 0xa1, 0x79, 0x98, 0x8d, 0x69, 0xf1, 0xca, 0xcb, 0x75, 0xda, 0x25, 0x8c, 0x27, 0xd6, - 0x7d, 0x32, 0xc9, 0x18, 0x9d, 0x46, 0x7d, 0x4a, 0x6e, 0x86, 0xe5, 0xb9, 0x8e, 0xa5, 0xda, 0xe2, - 0x0a, 0x2e, 0xa3, 0xab, 0xb0, 0x68, 0xe2, 0x80, 0xb0, 0xa6, 0x4b, 0x37, 0xa4, 0xce, 0x98, 0x54, - 0x41, 0xb7, 0xe0, 0x46, 0x34, 0x82, 0x03, 0xa2, 0xd6, 0x2b, 0xd6, 0xda, 0x74, 0x99, 0x0c, 0x64, - 0x3a, 0xac, 0xfe, 0x56, 0x03, 0xe8, 0x7f, 0x33, 0x10, 0x8e, 0x10, 0x8d, 0x4d, 0x2d, 0xc7, 0xe6, - 0xd1, 0x8e, 0x5a, 0x9d, 0x08, 0xdd, 0xee, 0x1c, 0x63, 0xc7, 0xc1, 0x8e, 0xc0, 0x35, 0xb9, 0x08, - 0x0a, 0x8f, 0x16, 0x49, 0xc0, 0x05, 0x34, 0x0b, 0xd5, 0x4d, 0x7e, 0x12, 0x1b, 0xd5, 0x8b, 0x62, - 0x92, 0xf2, 0xdb, 0x46, 0xb4, 0xc7, 0x24, 0xf2, 0x19, 0xe5, 0x5c, 0xd2, 0x3b, 0x88, 0xf0, 0x99, - 0x59, 0xa8, 0x3e, 0x12, 0x0b, 0x17, 0x01, 0x93, 0xab, 0x0d, 0xd0, 0x07, 0x3f, 0x05, 0xa0, 0x49, - 0x28, 0xbc, 0xb8, 0xaf, 0x5f, 0x92, 0xbf, 0xef, 0xeb, 0xda, 0xea, 0xe7, 0xc2, 0x33, 0x86, 0x3a, - 0xe6, 0x42, 0x57, 0xe8, 0xb3, 0x00, 0xdb, 0x32, 0xd4, 0xe9, 0x97, 0xd0, 0x34, 0x94, 0x5d, 0xdf, - 0x26, 0x1d, 0xd7, 0x6f, 0xeb, 0x9a, 0x78, 0x23, 0x21, 0x6f, 0x13, 0xf1, 0x56, 0x40, 0x15, 0x98, - 0xf0, 0x88, 0x6d, 0x79, 0x7a, 0x11, 0x95, 0xa1, 0xe4, 0x13, 0x1f, 0xeb, 0xa5, 0xd5, 0x67, 0x80, - 0x86, 0xdb, 0x70, 0xc8, 0x80, 0x05, 0x1c, 0xa3, 0xcf, 0x52, 0x06, 0xe6, 0xa0, 0xd6, 0xa3, 0x1c, - 0xd1, 0x10, 0xeb, 0x9a, 0x98, 0x77, 0x0f, 0xda, 0xb1, 0x3c, 0x86, 0xf5, 0xc2, 0xea, 0xdf, 0x34, - 0x98, 0x4e, 0x86, 0x07, 0xa1, 0x31, 0x6e, 0xfd, 0x3c, 0xf3, 0x6d, 0xcf, 0x62, 0x2c, 0xd6, 0x38, - 0x0f, 0xb3, 0x7d, 0xca, 0x99, 0x4f, 0x5e, 0xfa, 0xba, 0x26, 0x4e, 0x5f, 0x0c, 0xee, 0x1e, 0x1d, - 0x1d, 0xea, 0x05, 0x61, 0x38, 0x89, 0xac, 0xeb, 0x45, 0x31, 0xfb, 0x18, 0x3a, 0x7a, 0xd4, 0x52, - 0xab, 0x1d, 0x03, 0x0f, 0xad, 0x93, 0x33, 0x4b, 0x9f, 0x48, 0x42, 0x8f, 0x89, 0xdf, 0x26, 0xfa, - 0xa4, 0xd8, 0xfd, 0x18, 0x3a, 0x24, 0x8c, 0xb7, 0x29, 0x66, 0xfa, 0x54, 0xd2, 0xe2, 0xc6, 0xe3, - 0xa7, 0x87, 0x7a, 0x39, 0x29, 0x6a, 0x62, 0xc7, 0x65, 0x7a, 0x25, 0xa5, 0xad, 0xdb, 0x7a, 0xfa, - 0x48, 0x87, 0xcd, 0x4f, 0xff, 0xf8, 0xed, 0xb2, 0xf6, 0xe7, 0x6f, 0x97, 0xb5, 0xbf, 0x7c, 0xbb, - 0xac, 0xfd, 0xf2, 0xaf, 0xcb, 0x97, 0xbe, 0x78, 0xb3, 0xed, 0xf2, 0xd3, 0xf0, 0x78, 0xcd, 0x26, - 0x9d, 0x7b, 0x4d, 0x8b, 0x5b, 0x4d, 0xd2, 0x56, 0xff, 0xca, 0x7c, 0x3b, 0xb0, 0xba, 0xc2, 0x31, - 0xef, 0xbd, 0x78, 0x2f, 0xfe, 0xbb, 0xe6, 0xf1, 0xa4, 0xd4, 0xf7, 0x3f, 0xff, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0x3a, 0x62, 0xd8, 0xcf, 0xfe, 0x29, 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..0fa0cf05 --- /dev/null +++ b/process/connections_vtproto.pb.go @@ -0,0 +1,8508 @@ +// 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" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + bits "math/bits" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +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 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 +} + +var vtprotoPool_CollectorConnections = sync.Pool{ + New: func() interface{} { + return &CollectorConnections{} + }, +} + +func (m *CollectorConnections) ResetVT() { + f0 := m.EncodedTags[:0] + f1 := m.EncodedDNS[:0] + f2 := m.Domains[:0] + f3 := m.EncodedDomainDatabase[:0] + f4 := m.EncodedDnsLookups[:0] + f5 := m.EncodedConnectionsTags[:0] + f6 := m.PrebuiltEBPFAssets[:0] + m.Reset() + m.EncodedTags = f0 + m.EncodedDNS = f1 + m.Domains = f2 + m.EncodedDomainDatabase = f3 + m.EncodedDnsLookups = f4 + m.EncodedConnectionsTags = f5 + m.PrebuiltEBPFAssets = f6 +} +func (m *CollectorConnections) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_CollectorConnections.Put(m) + } +} +func CollectorConnectionsFromVTPool() *CollectorConnections { + return vtprotoPool_CollectorConnections.Get().(*CollectorConnections) +} +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 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 *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 + } + if len(m.Connections) == cap(m.Connections) { + m.Connections = append(m.Connections, &Connection{}) + } else { + m.Connections = m.Connections[:len(m.Connections)+1] + if m.Connections[len(m.Connections)-1] == nil { + m.Connections[len(m.Connections)-1] = &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 + } + if len(m.Routes) == cap(m.Routes) { + m.Routes = append(m.Routes, &Route{}) + } else { + m.Routes = m.Routes[:len(m.Routes)+1] + if m.Routes[len(m.Routes)-1] == nil { + m.Routes[len(m.Routes)-1] = &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 + } + if len(m.RouteMetadata) == cap(m.RouteMetadata) { + m.RouteMetadata = append(m.RouteMetadata, &RouteMetadata{}) + } else { + m.RouteMetadata = m.RouteMetadata[:len(m.RouteMetadata)+1] + if m.RouteMetadata[len(m.RouteMetadata)-1] == nil { + m.RouteMetadata[len(m.RouteMetadata)-1] = &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 +} + +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/sbom/sbom.pb.go b/sbom/sbom.pb.go index b23fcc63..0f1aa660 100644 --- a/sbom/sbom.pb.go +++ b/sbom/sbom.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 +// protoc-gen-go v1.31.0 // protoc v3.21.12 // source: proto/sbom/sbom.proto From 3157606d177925fd7c3ee4e00d6df474890c3704 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Fri, 30 Jun 2023 11:27:47 -0400 Subject: [PATCH 2/6] remove java output --- Rakefile | 1 - .../process_agent/ConnectionsOuterClass.java | 29541 ---------------- 2 files changed, 29542 deletions(-) delete mode 100644 java/datadog/process_agent/ConnectionsOuterClass.java diff --git a/Rakefile b/Rakefile index 92672736..3b6af209 100644 --- a/Rakefile +++ b/Rakefile @@ -121,7 +121,6 @@ BASH echo "Generating NPM CollectorConnections" PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ - --java_out=java \ --go_out=$GOPATH/src \ --go-vtproto_out=$GOPATH/src \ --go-vtproto_opt=features=pool+marshal+unmarshal+size \ diff --git a/java/datadog/process_agent/ConnectionsOuterClass.java b/java/datadog/process_agent/ConnectionsOuterClass.java deleted file mode 100644 index 894e5918..00000000 --- a/java/datadog/process_agent/ConnectionsOuterClass.java +++ /dev/null @@ -1,29541 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/process/connections.proto - -package datadog.process_agent; - -public final class ConnectionsOuterClass { - private ConnectionsOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code datadog.process_agent.RuntimeCompilationResult} - */ - public enum RuntimeCompilationResult - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NotAttempted = 0; - */ - NotAttempted(0), - /** - * CompilationSuccess = 1; - */ - CompilationSuccess(1), - /** - * KernelVersionErr = 2; - */ - KernelVersionErr(2), - /** - * VerificationError = 3; - */ - VerificationError(3), - /** - * OutputDirErr = 4; - */ - OutputDirErr(4), - /** - * OutputFileErr = 5; - */ - OutputFileErr(5), - /** - * NewCompilerErr = 6; - */ - NewCompilerErr(6), - /** - * CompilationErr = 7; - */ - CompilationErr(7), - /** - * ResultReadErr = 8; - */ - ResultReadErr(8), - /** - * HeaderFetchErr = 9; - */ - HeaderFetchErr(9), - /** - * CompiledOutputFound = 10; - */ - CompiledOutputFound(10), - /** - * InputHashError = 11; - */ - InputHashError(11), - UNRECOGNIZED(-1), - ; - - /** - * NotAttempted = 0; - */ - public static final int NotAttempted_VALUE = 0; - /** - * CompilationSuccess = 1; - */ - public static final int CompilationSuccess_VALUE = 1; - /** - * KernelVersionErr = 2; - */ - public static final int KernelVersionErr_VALUE = 2; - /** - * VerificationError = 3; - */ - public static final int VerificationError_VALUE = 3; - /** - * OutputDirErr = 4; - */ - public static final int OutputDirErr_VALUE = 4; - /** - * OutputFileErr = 5; - */ - public static final int OutputFileErr_VALUE = 5; - /** - * NewCompilerErr = 6; - */ - public static final int NewCompilerErr_VALUE = 6; - /** - * CompilationErr = 7; - */ - public static final int CompilationErr_VALUE = 7; - /** - * ResultReadErr = 8; - */ - public static final int ResultReadErr_VALUE = 8; - /** - * HeaderFetchErr = 9; - */ - public static final int HeaderFetchErr_VALUE = 9; - /** - * CompiledOutputFound = 10; - */ - public static final int CompiledOutputFound_VALUE = 10; - /** - * InputHashError = 11; - */ - public static final int InputHashError_VALUE = 11; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RuntimeCompilationResult valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RuntimeCompilationResult forNumber(int value) { - switch (value) { - case 0: return NotAttempted; - case 1: return CompilationSuccess; - case 2: return KernelVersionErr; - case 3: return VerificationError; - case 4: return OutputDirErr; - case 5: return OutputFileErr; - case 6: return NewCompilerErr; - case 7: return CompilationErr; - case 8: return ResultReadErr; - case 9: return HeaderFetchErr; - case 10: return CompiledOutputFound; - case 11: return InputHashError; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeCompilationResult> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeCompilationResult findValueByNumber(int number) { - return RuntimeCompilationResult.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final RuntimeCompilationResult[] VALUES = values(); - - public static RuntimeCompilationResult valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RuntimeCompilationResult(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.RuntimeCompilationResult) - } - - /** - * Protobuf enum {@code datadog.process_agent.KernelHeaderFetchResult} - */ - public enum KernelHeaderFetchResult - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FetchNotAttempted = 0; - */ - FetchNotAttempted(0), - /** - * CustomHeadersFound = 1; - */ - CustomHeadersFound(1), - /** - * DefaultHeadersFound = 2; - */ - DefaultHeadersFound(2), - /** - * SysfsHeadersFound = 3; - */ - SysfsHeadersFound(3), - /** - * DownloadedHeadersFound = 4; - */ - DownloadedHeadersFound(4), - /** - * DownloadSuccess = 5; - */ - DownloadSuccess(5), - /** - * HostVersionErr = 6; - */ - HostVersionErr(6), - /** - * DownloadFailure = 7; - */ - DownloadFailure(7), - /** - * ValidationFailure = 8; - */ - ValidationFailure(8), - /** - * ReposDirAccessFailure = 9; - */ - ReposDirAccessFailure(9), - /** - * HeadersNotFoundDownloadDisabled = 10; - */ - HeadersNotFoundDownloadDisabled(10), - UNRECOGNIZED(-1), - ; - - /** - * FetchNotAttempted = 0; - */ - public static final int FetchNotAttempted_VALUE = 0; - /** - * CustomHeadersFound = 1; - */ - public static final int CustomHeadersFound_VALUE = 1; - /** - * DefaultHeadersFound = 2; - */ - public static final int DefaultHeadersFound_VALUE = 2; - /** - * SysfsHeadersFound = 3; - */ - public static final int SysfsHeadersFound_VALUE = 3; - /** - * DownloadedHeadersFound = 4; - */ - public static final int DownloadedHeadersFound_VALUE = 4; - /** - * DownloadSuccess = 5; - */ - public static final int DownloadSuccess_VALUE = 5; - /** - * HostVersionErr = 6; - */ - public static final int HostVersionErr_VALUE = 6; - /** - * DownloadFailure = 7; - */ - public static final int DownloadFailure_VALUE = 7; - /** - * ValidationFailure = 8; - */ - public static final int ValidationFailure_VALUE = 8; - /** - * ReposDirAccessFailure = 9; - */ - public static final int ReposDirAccessFailure_VALUE = 9; - /** - * HeadersNotFoundDownloadDisabled = 10; - */ - public static final int HeadersNotFoundDownloadDisabled_VALUE = 10; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KernelHeaderFetchResult valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static KernelHeaderFetchResult forNumber(int value) { - switch (value) { - case 0: return FetchNotAttempted; - case 1: return CustomHeadersFound; - case 2: return DefaultHeadersFound; - case 3: return SysfsHeadersFound; - case 4: return DownloadedHeadersFound; - case 5: return DownloadSuccess; - case 6: return HostVersionErr; - case 7: return DownloadFailure; - case 8: return ValidationFailure; - case 9: return ReposDirAccessFailure; - case 10: return HeadersNotFoundDownloadDisabled; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - KernelHeaderFetchResult> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KernelHeaderFetchResult findValueByNumber(int number) { - return KernelHeaderFetchResult.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(1); - } - - private static final KernelHeaderFetchResult[] VALUES = values(); - - public static KernelHeaderFetchResult valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private KernelHeaderFetchResult(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.KernelHeaderFetchResult) - } - - /** - * Protobuf enum {@code datadog.process_agent.COREResult} - */ - public enum COREResult - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SuccessCustomBTF = 0; - */ - SuccessCustomBTF(0), - /** - * SuccessEmbeddedBTF = 1; - */ - SuccessEmbeddedBTF(1), - /** - * SuccessDefaultBTF = 2; - */ - SuccessDefaultBTF(2), - /** - * BtfNotFound = 3; - */ - BtfNotFound(3), - /** - * AssetReadError = 4; - */ - AssetReadError(4), - /** - * VerifierError = 5; - */ - VerifierError(5), - /** - * LoaderError = 6; - */ - LoaderError(6), - UNRECOGNIZED(-1), - ; - - /** - * SuccessCustomBTF = 0; - */ - public static final int SuccessCustomBTF_VALUE = 0; - /** - * SuccessEmbeddedBTF = 1; - */ - public static final int SuccessEmbeddedBTF_VALUE = 1; - /** - * SuccessDefaultBTF = 2; - */ - public static final int SuccessDefaultBTF_VALUE = 2; - /** - * BtfNotFound = 3; - */ - public static final int BtfNotFound_VALUE = 3; - /** - * AssetReadError = 4; - */ - public static final int AssetReadError_VALUE = 4; - /** - * VerifierError = 5; - */ - public static final int VerifierError_VALUE = 5; - /** - * LoaderError = 6; - */ - public static final int LoaderError_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static COREResult valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static COREResult forNumber(int value) { - switch (value) { - case 0: return SuccessCustomBTF; - case 1: return SuccessEmbeddedBTF; - case 2: return SuccessDefaultBTF; - case 3: return BtfNotFound; - case 4: return AssetReadError; - case 5: return VerifierError; - case 6: return LoaderError; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - COREResult> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public COREResult findValueByNumber(int number) { - return COREResult.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(2); - } - - private static final COREResult[] VALUES = values(); - - public static COREResult valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private COREResult(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.COREResult) - } - - /** - * Protobuf enum {@code datadog.process_agent.ConnectionFamily} - */ - public enum ConnectionFamily - implements com.google.protobuf.ProtocolMessageEnum { - /** - * v4 = 0; - */ - v4(0), - /** - * v6 = 1; - */ - v6(1), - UNRECOGNIZED(-1), - ; - - /** - * v4 = 0; - */ - public static final int v4_VALUE = 0; - /** - * v6 = 1; - */ - public static final int v6_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConnectionFamily valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ConnectionFamily forNumber(int value) { - switch (value) { - case 0: return v4; - case 1: return v6; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ConnectionFamily> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConnectionFamily findValueByNumber(int number) { - return ConnectionFamily.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(3); - } - - private static final ConnectionFamily[] VALUES = values(); - - public static ConnectionFamily valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ConnectionFamily(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.ConnectionFamily) - } - - /** - * Protobuf enum {@code datadog.process_agent.ConnectionDirection} - */ - public enum ConnectionDirection - implements com.google.protobuf.ProtocolMessageEnum { - /** - * unspecified = 0; - */ - unspecified(0), - /** - * incoming = 1; - */ - incoming(1), - /** - * outgoing = 2; - */ - outgoing(2), - /** - * local = 3; - */ - local(3), - /** - * none = 4; - */ - none(4), - UNRECOGNIZED(-1), - ; - - /** - * unspecified = 0; - */ - public static final int unspecified_VALUE = 0; - /** - * incoming = 1; - */ - public static final int incoming_VALUE = 1; - /** - * outgoing = 2; - */ - public static final int outgoing_VALUE = 2; - /** - * local = 3; - */ - public static final int local_VALUE = 3; - /** - * none = 4; - */ - public static final int none_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConnectionDirection valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ConnectionDirection forNumber(int value) { - switch (value) { - case 0: return unspecified; - case 1: return incoming; - case 2: return outgoing; - case 3: return local; - case 4: return none; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ConnectionDirection> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConnectionDirection findValueByNumber(int number) { - return ConnectionDirection.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(4); - } - - private static final ConnectionDirection[] VALUES = values(); - - public static ConnectionDirection valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ConnectionDirection(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.ConnectionDirection) - } - - /** - * Protobuf enum {@code datadog.process_agent.EphemeralPortState} - */ - public enum EphemeralPortState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ephemeralUnspecified = 0; - */ - ephemeralUnspecified(0), - /** - * ephemeralTrue = 1; - */ - ephemeralTrue(1), - /** - * ephemeralFalse = 2; - */ - ephemeralFalse(2), - UNRECOGNIZED(-1), - ; - - /** - * ephemeralUnspecified = 0; - */ - public static final int ephemeralUnspecified_VALUE = 0; - /** - * ephemeralTrue = 1; - */ - public static final int ephemeralTrue_VALUE = 1; - /** - * ephemeralFalse = 2; - */ - public static final int ephemeralFalse_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EphemeralPortState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EphemeralPortState forNumber(int value) { - switch (value) { - case 0: return ephemeralUnspecified; - case 1: return ephemeralTrue; - case 2: return ephemeralFalse; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EphemeralPortState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EphemeralPortState findValueByNumber(int number) { - return EphemeralPortState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(5); - } - - private static final EphemeralPortState[] VALUES = values(); - - public static EphemeralPortState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EphemeralPortState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.EphemeralPortState) - } - - /** - * Protobuf enum {@code datadog.process_agent.ProtocolType} - */ - public enum ProtocolType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * protocolUnclassified = 0; - */ - protocolUnclassified(0), - /** - * protocolUnknown = 1; - */ - protocolUnknown(1), - /** - * protocolHTTP = 2; - */ - protocolHTTP(2), - /** - * protocolHTTP2 = 3; - */ - protocolHTTP2(3), - /** - * protocolTLS = 4; - */ - protocolTLS(4), - /** - * protocolKafka = 5; - */ - protocolKafka(5), - /** - * protocolMongo = 6; - */ - protocolMongo(6), - /** - * protocolPostgres = 7; - */ - protocolPostgres(7), - /** - * protocolAMQP = 8; - */ - protocolAMQP(8), - /** - * protocolRedis = 9; - */ - protocolRedis(9), - /** - * protocolMySQL = 10; - */ - protocolMySQL(10), - UNRECOGNIZED(-1), - ; - - /** - * protocolUnclassified = 0; - */ - public static final int protocolUnclassified_VALUE = 0; - /** - * protocolUnknown = 1; - */ - public static final int protocolUnknown_VALUE = 1; - /** - * protocolHTTP = 2; - */ - public static final int protocolHTTP_VALUE = 2; - /** - * protocolHTTP2 = 3; - */ - public static final int protocolHTTP2_VALUE = 3; - /** - * protocolTLS = 4; - */ - public static final int protocolTLS_VALUE = 4; - /** - * protocolKafka = 5; - */ - public static final int protocolKafka_VALUE = 5; - /** - * protocolMongo = 6; - */ - public static final int protocolMongo_VALUE = 6; - /** - * protocolPostgres = 7; - */ - public static final int protocolPostgres_VALUE = 7; - /** - * protocolAMQP = 8; - */ - public static final int protocolAMQP_VALUE = 8; - /** - * protocolRedis = 9; - */ - public static final int protocolRedis_VALUE = 9; - /** - * protocolMySQL = 10; - */ - public static final int protocolMySQL_VALUE = 10; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProtocolType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ProtocolType forNumber(int value) { - switch (value) { - case 0: return protocolUnclassified; - case 1: return protocolUnknown; - case 2: return protocolHTTP; - case 3: return protocolHTTP2; - case 4: return protocolTLS; - case 5: return protocolKafka; - case 6: return protocolMongo; - case 7: return protocolPostgres; - case 8: return protocolAMQP; - case 9: return protocolRedis; - case 10: return protocolMySQL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProtocolType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProtocolType findValueByNumber(int number) { - return ProtocolType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.getDescriptor().getEnumTypes().get(6); - } - - private static final ProtocolType[] VALUES = values(); - - public static ProtocolType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProtocolType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datadog.process_agent.ProtocolType) - } - - public interface CollectorConnectionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.CollectorConnections) - com.google.protobuf.MessageOrBuilder { - - /** - * string hostName = 2; - * @return The hostName. - */ - java.lang.String getHostName(); - /** - * string hostName = 2; - * @return The bytes for hostName. - */ - com.google.protobuf.ByteString - getHostNameBytes(); - - /** - * string networkId = 12; - * @return The networkId. - */ - java.lang.String getNetworkId(); - /** - * string networkId = 12; - * @return The bytes for networkId. - */ - com.google.protobuf.ByteString - getNetworkIdBytes(); - - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - java.util.List - getConnectionsList(); - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - datadog.process_agent.ConnectionsOuterClass.Connection getConnections(int index); - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - int getConnectionsCount(); - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - java.util.List - getConnectionsOrBuilderList(); - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnectionsOrBuilder( - int index); - - /** - *
-     * Message batching metadata
-     * 
- * - * int32 groupId = 5; - * @return The groupId. - */ - int getGroupId(); - - /** - * int32 groupSize = 6; - * @return The groupSize. - */ - int getGroupSize(); - - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - int getResolvedResourcesCount(); - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - boolean containsResolvedResources( - java.lang.String key); - /** - * Use {@link #getResolvedResourcesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getResolvedResources(); - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - java.util.Map - getResolvedResourcesMap(); - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.ResourceMetadata defaultValue); - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrThrow( - java.lang.String key); - - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - int getContainerForPidCount(); - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - boolean containsContainerForPid( - int key); - /** - * Use {@link #getContainerForPidMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getContainerForPid(); - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - java.util.Map - getContainerForPidMap(); - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - /* nullable */ -java.lang.String getContainerForPidOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - java.lang.String getContainerForPidOrThrow( - int key); - - /** - *
-     * encoded bytes here are use to store a tags []string
-     * the tags encoder is more space efficient than protobuf
-     * 
- * - * bytes encodedTags = 11; - * @return The encodedTags. - */ - com.google.protobuf.ByteString getEncodedTags(); - - /** - *
-     * All tags indexed by Connection.tags
-     * 
- * - * bytes encodedConnectionsTags = 38; - * @return The encodedConnectionsTags. - */ - com.google.protobuf.ByteString getEncodedConnectionsTags(); - - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return The enum numeric value on the wire for containerHostType. - */ - int getContainerHostTypeValue(); - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return The containerHostType. - */ - datadog.process_agent.Agent.ContainerHostType getContainerHostType(); - - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - * @return Whether the connTelemetry field is set. - */ - boolean hasConnTelemetry(); - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - * @return The connTelemetry. - */ - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getConnTelemetry(); - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder(); - - /** - * map<string, int64> connTelemetryMap = 39; - */ - int getConnTelemetryMapCount(); - /** - * map<string, int64> connTelemetryMap = 39; - */ - boolean containsConnTelemetryMap( - java.lang.String key); - /** - * Use {@link #getConnTelemetryMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getConnTelemetryMap(); - /** - * map<string, int64> connTelemetryMap = 39; - */ - java.util.Map - getConnTelemetryMapMap(); - /** - * map<string, int64> connTelemetryMap = 39; - */ - long getConnTelemetryMapOrDefault( - java.lang.String key, - long defaultValue); - /** - * map<string, int64> connTelemetryMap = 39; - */ - long getConnTelemetryMapOrThrow( - java.lang.String key); - - /** - *
-     * OS Telemetry
-     * 
- * - * string architecture = 17; - * @return The architecture. - */ - java.lang.String getArchitecture(); - /** - *
-     * OS Telemetry
-     * 
- * - * string architecture = 17; - * @return The bytes for architecture. - */ - com.google.protobuf.ByteString - getArchitectureBytes(); - - /** - * string kernelVersion = 18; - * @return The kernelVersion. - */ - java.lang.String getKernelVersion(); - /** - * string kernelVersion = 18; - * @return The bytes for kernelVersion. - */ - com.google.protobuf.ByteString - getKernelVersionBytes(); - - /** - * string platform = 19; - * @return The platform. - */ - java.lang.String getPlatform(); - /** - * string platform = 19; - * @return The bytes for platform. - */ - com.google.protobuf.ByteString - getPlatformBytes(); - - /** - * string platformVersion = 20; - * @return The platformVersion. - */ - java.lang.String getPlatformVersion(); - /** - * string platformVersion = 20; - * @return The bytes for platformVersion. - */ - com.google.protobuf.ByteString - getPlatformVersionBytes(); - - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - int getCompilationTelemetryByAssetCount(); - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - boolean containsCompilationTelemetryByAsset( - java.lang.String key); - /** - * Use {@link #getCompilationTelemetryByAssetMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCompilationTelemetryByAsset(); - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - java.util.Map - getCompilationTelemetryByAssetMap(); - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue); - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( - java.lang.String key); - - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - int getKernelHeaderFetchResultValue(); - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return The kernelHeaderFetchResult. - */ - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult(); - - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - int getCORETelemetryByAssetCount(); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - boolean containsCORETelemetryByAsset( - java.lang.String key); - /** - * Use {@link #getCORETelemetryByAssetMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCORETelemetryByAsset(); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - java.util.Map - getCORETelemetryByAssetMap(); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( - java.lang.String key); - /** - * Use {@link #getCORETelemetryByAssetValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCORETelemetryByAssetValue(); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - java.util.Map - getCORETelemetryByAssetValueMap(); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - int getCORETelemetryByAssetValueOrDefault( - java.lang.String key, - int defaultValue); - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - int getCORETelemetryByAssetValueOrThrow( - java.lang.String key); - - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return A list containing the prebuiltEBPFAssets. - */ - java.util.List - getPrebuiltEBPFAssetsList(); - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return The count of prebuiltEBPFAssets. - */ - int getPrebuiltEBPFAssetsCount(); - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index of the element to return. - * @return The prebuiltEBPFAssets at the given index. - */ - java.lang.String getPrebuiltEBPFAssets(int index); - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index of the value to return. - * @return The bytes of the prebuiltEBPFAssets at the given index. - */ - com.google.protobuf.ByteString - getPrebuiltEBPFAssetsBytes(int index); - - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - java.util.List - getRoutesList(); - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index); - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - int getRoutesCount(); - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - java.util.List - getRoutesOrBuilderList(); - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( - int index); - - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - java.util.List - getRouteMetadataList(); - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - datadog.process_agent.ConnectionsOuterClass.RouteMetadata getRouteMetadata(int index); - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - int getRouteMetadataCount(); - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - java.util.List - getRouteMetadataOrBuilderList(); - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder getRouteMetadataOrBuilder( - int index); - - /** - *
-     *///////////////
-     * V1 encodings
-     * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - * @return Whether the agentConfiguration field is set. - */ - boolean hasAgentConfiguration(); - /** - *
-     *///////////////
-     * V1 encodings
-     * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - * @return The agentConfiguration. - */ - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration(); - /** - *
-     *///////////////
-     * V1 encodings
-     * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder(); - - /** - *
-     * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
-     * 
- * - * bytes encodedDNS = 14; - * @return The encodedDNS. - */ - com.google.protobuf.ByteString getEncodedDNS(); - - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @return A list containing the domains. - */ - java.util.List - getDomainsList(); - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @return The count of domains. - */ - int getDomainsCount(); - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @param index The index of the element to return. - * @return The domains at the given index. - */ - java.lang.String getDomains(int index); - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @param index The index of the value to return. - * @return The bytes of the domains at the given index. - */ - com.google.protobuf.ByteString - getDomainsBytes(int index); - - /** - *
-     *////////////////
-     * V2 encodings
-     * all domain strings are now indexes into a single array of strings
-     * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
-     * is a single buffer; varint number of strings, followed by each string.
-     * 
- * - * bytes encodedDomainDatabase = 36; - * @return The encodedDomainDatabase. - */ - com.google.protobuf.ByteString getEncodedDomainDatabase(); - - /** - *
-     * new representation of encoded DNS.  This is a map of the string representation
-     * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
-     * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
-     * 
- * - * bytes encodedDnsLookups = 37; - * @return The encodedDnsLookups. - */ - com.google.protobuf.ByteString getEncodedDnsLookups(); - - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - int getResolvedHostsByNameCount(); - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - boolean containsResolvedHostsByName( - java.lang.String key); - /** - * Use {@link #getResolvedHostsByNameMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getResolvedHostsByName(); - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - java.util.Map - getResolvedHostsByNameMap(); - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - /* nullable */ -datadog.process_agent.Agent.Host getResolvedHostsByNameOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.Agent.Host defaultValue); - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - datadog.process_agent.Agent.Host getResolvedHostsByNameOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code datadog.process_agent.CollectorConnections} - */ - public static final class CollectorConnections extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.CollectorConnections) - CollectorConnectionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CollectorConnections.newBuilder() to construct. - private CollectorConnections(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CollectorConnections() { - hostName_ = ""; - networkId_ = ""; - connections_ = java.util.Collections.emptyList(); - encodedTags_ = com.google.protobuf.ByteString.EMPTY; - encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; - containerHostType_ = 0; - architecture_ = ""; - kernelVersion_ = ""; - platform_ = ""; - platformVersion_ = ""; - kernelHeaderFetchResult_ = 0; - prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - routes_ = java.util.Collections.emptyList(); - routeMetadata_ = java.util.Collections.emptyList(); - encodedDNS_ = com.google.protobuf.ByteString.EMPTY; - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; - encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CollectorConnections(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetResolvedResources(); - case 10: - return internalGetContainerForPid(); - case 39: - return internalGetConnTelemetryMap(); - case 21: - return internalGetCompilationTelemetryByAsset(); - case 42: - return internalGetCORETelemetryByAsset(); - case 40: - return internalGetResolvedHostsByName(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.CollectorConnections.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnections.Builder.class); - } - - public static final int HOSTNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object hostName_ = ""; - /** - * string hostName = 2; - * @return The hostName. - */ - @java.lang.Override - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } - } - /** - * string hostName = 2; - * @return The bytes for hostName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORKID_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private volatile java.lang.Object networkId_ = ""; - /** - * string networkId = 12; - * @return The networkId. - */ - @java.lang.Override - public java.lang.String getNetworkId() { - java.lang.Object ref = networkId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - networkId_ = s; - return s; - } - } - /** - * string networkId = 12; - * @return The bytes for networkId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNetworkIdBytes() { - java.lang.Object ref = networkId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - networkId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONNECTIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List connections_; - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - @java.lang.Override - public java.util.List getConnectionsList() { - return connections_; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - @java.lang.Override - public java.util.List - getConnectionsOrBuilderList() { - return connections_; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - @java.lang.Override - public int getConnectionsCount() { - return connections_.size(); - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connection getConnections(int index) { - return connections_.get(index); - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnectionsOrBuilder( - int index) { - return connections_.get(index); - } - - public static final int GROUPID_FIELD_NUMBER = 5; - private int groupId_ = 0; - /** - *
-     * Message batching metadata
-     * 
- * - * int32 groupId = 5; - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - - public static final int GROUPSIZE_FIELD_NUMBER = 6; - private int groupSize_ = 0; - /** - * int32 groupSize = 6; - * @return The groupSize. - */ - @java.lang.Override - public int getGroupSize() { - return groupSize_; - } - - public static final int RESOLVEDRESOURCES_FIELD_NUMBER = 8; - private static final class ResolvedResourcesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata> resolvedResources_; - private com.google.protobuf.MapField - internalGetResolvedResources() { - if (resolvedResources_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResolvedResourcesDefaultEntryHolder.defaultEntry); - } - return resolvedResources_; - } - public int getResolvedResourcesCount() { - return internalGetResolvedResources().getMap().size(); - } - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public boolean containsResolvedResources( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetResolvedResources().getMap().containsKey(key); - } - /** - * Use {@link #getResolvedResourcesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResolvedResources() { - return getResolvedResourcesMap(); - } - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public java.util.Map getResolvedResourcesMap() { - return internalGetResolvedResources().getMap(); - } - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.ResourceMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedResources().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-     * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedResources().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CONTAINERFORPID_FIELD_NUMBER = 10; - private static final class ContainerForPidDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> containerForPid_; - private com.google.protobuf.MapField - internalGetContainerForPid() { - if (containerForPid_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ContainerForPidDefaultEntryHolder.defaultEntry); - } - return containerForPid_; - } - public int getContainerForPidCount() { - return internalGetContainerForPid().getMap().size(); - } - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public boolean containsContainerForPid( - int key) { - - return internalGetContainerForPid().getMap().containsKey(key); - } - /** - * Use {@link #getContainerForPidMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getContainerForPid() { - return getContainerForPidMap(); - } - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public java.util.Map getContainerForPidMap() { - return internalGetContainerForPid().getMap(); - } - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getContainerForPidOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetContainerForPid().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Mapping of processes running in each container
-     * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public java.lang.String getContainerForPidOrThrow( - int key) { - - java.util.Map map = - internalGetContainerForPid().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ENCODEDTAGS_FIELD_NUMBER = 11; - private com.google.protobuf.ByteString encodedTags_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * encoded bytes here are use to store a tags []string
-     * the tags encoder is more space efficient than protobuf
-     * 
- * - * bytes encodedTags = 11; - * @return The encodedTags. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedTags() { - return encodedTags_; - } - - public static final int ENCODEDCONNECTIONSTAGS_FIELD_NUMBER = 38; - private com.google.protobuf.ByteString encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * All tags indexed by Connection.tags
-     * 
- * - * bytes encodedConnectionsTags = 38; - * @return The encodedConnectionsTags. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedConnectionsTags() { - return encodedConnectionsTags_; - } - - public static final int CONTAINERHOSTTYPE_FIELD_NUMBER = 15; - private int containerHostType_ = 0; - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return The enum numeric value on the wire for containerHostType. - */ - @java.lang.Override public int getContainerHostTypeValue() { - return containerHostType_; - } - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return The containerHostType. - */ - @java.lang.Override public datadog.process_agent.Agent.ContainerHostType getContainerHostType() { - datadog.process_agent.Agent.ContainerHostType result = datadog.process_agent.Agent.ContainerHostType.forNumber(containerHostType_); - return result == null ? datadog.process_agent.Agent.ContainerHostType.UNRECOGNIZED : result; - } - - public static final int CONNTELEMETRY_FIELD_NUMBER = 16; - private datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry connTelemetry_; - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - * @return Whether the connTelemetry field is set. - */ - @java.lang.Override - public boolean hasConnTelemetry() { - return connTelemetry_ != null; - } - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - * @return The connTelemetry. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getConnTelemetry() { - return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { - return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } - - public static final int CONNTELEMETRYMAP_FIELD_NUMBER = 39; - private static final class ConnTelemetryMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> connTelemetryMap_; - private com.google.protobuf.MapField - internalGetConnTelemetryMap() { - if (connTelemetryMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConnTelemetryMapDefaultEntryHolder.defaultEntry); - } - return connTelemetryMap_; - } - public int getConnTelemetryMapCount() { - return internalGetConnTelemetryMap().getMap().size(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public boolean containsConnTelemetryMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetConnTelemetryMap().getMap().containsKey(key); - } - /** - * Use {@link #getConnTelemetryMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getConnTelemetryMap() { - return getConnTelemetryMapMap(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public java.util.Map getConnTelemetryMapMap() { - return internalGetConnTelemetryMap().getMap(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public long getConnTelemetryMapOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public long getConnTelemetryMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ARCHITECTURE_FIELD_NUMBER = 17; - @SuppressWarnings("serial") - private volatile java.lang.Object architecture_ = ""; - /** - *
-     * OS Telemetry
-     * 
- * - * string architecture = 17; - * @return The architecture. - */ - @java.lang.Override - public java.lang.String getArchitecture() { - java.lang.Object ref = architecture_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - architecture_ = s; - return s; - } - } - /** - *
-     * OS Telemetry
-     * 
- * - * string architecture = 17; - * @return The bytes for architecture. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArchitectureBytes() { - java.lang.Object ref = architecture_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - architecture_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KERNELVERSION_FIELD_NUMBER = 18; - @SuppressWarnings("serial") - private volatile java.lang.Object kernelVersion_ = ""; - /** - * string kernelVersion = 18; - * @return The kernelVersion. - */ - @java.lang.Override - public java.lang.String getKernelVersion() { - java.lang.Object ref = kernelVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernelVersion_ = s; - return s; - } - } - /** - * string kernelVersion = 18; - * @return The bytes for kernelVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKernelVersionBytes() { - java.lang.Object ref = kernelVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLATFORM_FIELD_NUMBER = 19; - @SuppressWarnings("serial") - private volatile java.lang.Object platform_ = ""; - /** - * string platform = 19; - * @return The platform. - */ - @java.lang.Override - public java.lang.String getPlatform() { - java.lang.Object ref = platform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - platform_ = s; - return s; - } - } - /** - * string platform = 19; - * @return The bytes for platform. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPlatformBytes() { - java.lang.Object ref = platform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLATFORMVERSION_FIELD_NUMBER = 20; - @SuppressWarnings("serial") - private volatile java.lang.Object platformVersion_ = ""; - /** - * string platformVersion = 20; - * @return The platformVersion. - */ - @java.lang.Override - public java.lang.String getPlatformVersion() { - java.lang.Object ref = platformVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - platformVersion_ = s; - return s; - } - } - /** - * string platformVersion = 20; - * @return The bytes for platformVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPlatformVersionBytes() { - java.lang.Object ref = platformVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platformVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER = 21; - private static final class CompilationTelemetryByAssetDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCompilationTelemetryByAsset() { - if (compilationTelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return compilationTelemetryByAsset_; - } - public int getCompilationTelemetryByAssetCount() { - return internalGetCompilationTelemetryByAsset().getMap().size(); - } - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public boolean containsCompilationTelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCompilationTelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCompilationTelemetryByAsset() { - return getCompilationTelemetryByAssetMap(); - } - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public java.util.Map getCompilationTelemetryByAssetMap() { - return internalGetCompilationTelemetryByAsset().getMap(); - } - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Runtime compilation telemetry
-     * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int KERNELHEADERFETCHRESULT_FIELD_NUMBER = 41; - private int kernelHeaderFetchResult_ = 0; - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - @java.lang.Override public int getKernelHeaderFetchResultValue() { - return kernelHeaderFetchResult_; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return The kernelHeaderFetchResult. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; - } - - public static final int CORETELEMETRYBYASSET_FIELD_NUMBER = 42; - private static final class CORETelemetryByAssetDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - datadog.process_agent.ConnectionsOuterClass.COREResult.SuccessCustomBTF.getNumber()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> cORETelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCORETelemetryByAsset() { - if (cORETelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return cORETelemetryByAsset_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.COREResult> cORETelemetryByAssetValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - datadog.process_agent.ConnectionsOuterClass.COREResult.internalGetValueMap(), - datadog.process_agent.ConnectionsOuterClass.COREResult.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedCORETelemetryByAssetMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.COREResult, java.lang.Integer>( - map, cORETelemetryByAssetValueConverter); - } - public int getCORETelemetryByAssetCount() { - return internalGetCORETelemetryByAsset().getMap().size(); - } - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public boolean containsCORETelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCORETelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCORETelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAsset() { - return getCORETelemetryByAssetMap(); - } - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetMap() { - return internalGetAdaptedCORETelemetryByAssetMap( - internalGetCORETelemetryByAsset().getMap());} - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) - ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return cORETelemetryByAssetValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getCORETelemetryByAssetValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAssetValue() { - return getCORETelemetryByAssetValueMap(); - } - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetValueMap() { - return internalGetCORETelemetryByAsset().getMap(); - } - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * CO-RE telemetry
-     * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PREBUILTEBPFASSETS_FIELD_NUMBER = 44; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList prebuiltEBPFAssets_; - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return A list containing the prebuiltEBPFAssets. - */ - public com.google.protobuf.ProtocolStringList - getPrebuiltEBPFAssetsList() { - return prebuiltEBPFAssets_; - } - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return The count of prebuiltEBPFAssets. - */ - public int getPrebuiltEBPFAssetsCount() { - return prebuiltEBPFAssets_.size(); - } - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index of the element to return. - * @return The prebuiltEBPFAssets at the given index. - */ - public java.lang.String getPrebuiltEBPFAssets(int index) { - return prebuiltEBPFAssets_.get(index); - } - /** - *
-     * Prebuilt EBPF assets in use
-     * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index of the value to return. - * @return The bytes of the prebuiltEBPFAssets at the given index. - */ - public com.google.protobuf.ByteString - getPrebuiltEBPFAssetsBytes(int index) { - return prebuiltEBPFAssets_.getByteString(index); - } - - public static final int ROUTES_FIELD_NUMBER = 31; - @SuppressWarnings("serial") - private java.util.List routes_; - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - @java.lang.Override - public java.util.List getRoutesList() { - return routes_; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - @java.lang.Override - public java.util.List - getRoutesOrBuilderList() { - return routes_; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - @java.lang.Override - public int getRoutesCount() { - return routes_.size(); - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { - return routes_.get(index); - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( - int index) { - return routes_.get(index); - } - - public static final int ROUTEMETADATA_FIELD_NUMBER = 34; - @SuppressWarnings("serial") - private java.util.List routeMetadata_; - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - @java.lang.Override - public java.util.List getRouteMetadataList() { - return routeMetadata_; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - @java.lang.Override - public java.util.List - getRouteMetadataOrBuilderList() { - return routeMetadata_; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - @java.lang.Override - public int getRouteMetadataCount() { - return routeMetadata_.size(); - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getRouteMetadata(int index) { - return routeMetadata_.get(index); - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder getRouteMetadataOrBuilder( - int index) { - return routeMetadata_.get(index); - } - - public static final int AGENTCONFIGURATION_FIELD_NUMBER = 35; - private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; - /** - *
-     *///////////////
-     * V1 encodings
-     * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - * @return Whether the agentConfiguration field is set. - */ - @java.lang.Override - public boolean hasAgentConfiguration() { - return agentConfiguration_ != null; - } - /** - *
-     *///////////////
-     * V1 encodings
-     * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - * @return The agentConfiguration. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { - return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } - /** - *
-     *///////////////
-     * V1 encodings
-     * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { - return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } - - public static final int ENCODEDDNS_FIELD_NUMBER = 14; - private com.google.protobuf.ByteString encodedDNS_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
-     * 
- * - * bytes encodedDNS = 14; - * @return The encodedDNS. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedDNS() { - return encodedDNS_; - } - - public static final int DOMAINS_FIELD_NUMBER = 30; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList domains_; - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @return A list containing the domains. - */ - public com.google.protobuf.ProtocolStringList - getDomainsList() { - return domains_; - } - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @return The count of domains. - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @param index The index of the element to return. - * @return The domains at the given index. - */ - public java.lang.String getDomains(int index) { - return domains_.get(index); - } - /** - *
-     * All queried DNS domains for which we have collected stats
-     * 
- * - * repeated string domains = 30; - * @param index The index of the value to return. - * @return The bytes of the domains at the given index. - */ - public com.google.protobuf.ByteString - getDomainsBytes(int index) { - return domains_.getByteString(index); - } - - public static final int ENCODEDDOMAINDATABASE_FIELD_NUMBER = 36; - private com.google.protobuf.ByteString encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     *////////////////
-     * V2 encodings
-     * all domain strings are now indexes into a single array of strings
-     * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
-     * is a single buffer; varint number of strings, followed by each string.
-     * 
- * - * bytes encodedDomainDatabase = 36; - * @return The encodedDomainDatabase. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedDomainDatabase() { - return encodedDomainDatabase_; - } - - public static final int ENCODEDDNSLOOKUPS_FIELD_NUMBER = 37; - private com.google.protobuf.ByteString encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * new representation of encoded DNS.  This is a map of the string representation
-     * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
-     * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
-     * 
- * - * bytes encodedDnsLookups = 37; - * @return The encodedDnsLookups. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedDnsLookups() { - return encodedDnsLookups_; - } - - public static final int RESOLVEDHOSTSBYNAME_FIELD_NUMBER = 40; - private static final class ResolvedHostsByNameDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, datadog.process_agent.Agent.Host> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.Agent.Host.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.Agent.Host> resolvedHostsByName_; - private com.google.protobuf.MapField - internalGetResolvedHostsByName() { - if (resolvedHostsByName_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResolvedHostsByNameDefaultEntryHolder.defaultEntry); - } - return resolvedHostsByName_; - } - public int getResolvedHostsByNameCount() { - return internalGetResolvedHostsByName().getMap().size(); - } - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public boolean containsResolvedHostsByName( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetResolvedHostsByName().getMap().containsKey(key); - } - /** - * Use {@link #getResolvedHostsByNameMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResolvedHostsByName() { - return getResolvedHostsByNameMap(); - } - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public java.util.Map getResolvedHostsByNameMap() { - return internalGetResolvedHostsByName().getMap(); - } - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.Agent.Host getResolvedHostsByNameOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.Agent.Host defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedHostsByName().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Post-resolution field
-     * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public datadog.process_agent.Agent.Host getResolvedHostsByNameOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedHostsByName().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostName_); - } - for (int i = 0; i < connections_.size(); i++) { - output.writeMessage(3, connections_.get(i)); - } - if (groupId_ != 0) { - output.writeInt32(5, groupId_); - } - if (groupSize_ != 0) { - output.writeInt32(6, groupSize_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResolvedResources(), - ResolvedResourcesDefaultEntryHolder.defaultEntry, - 8); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetContainerForPid(), - ContainerForPidDefaultEntryHolder.defaultEntry, - 10); - if (!encodedTags_.isEmpty()) { - output.writeBytes(11, encodedTags_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, networkId_); - } - if (!encodedDNS_.isEmpty()) { - output.writeBytes(14, encodedDNS_); - } - if (containerHostType_ != datadog.process_agent.Agent.ContainerHostType.notSpecified.getNumber()) { - output.writeEnum(15, containerHostType_); - } - if (connTelemetry_ != null) { - output.writeMessage(16, getConnTelemetry()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(architecture_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, architecture_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, kernelVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, platform_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 20, platformVersion_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCompilationTelemetryByAsset(), - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry, - 21); - for (int i = 0; i < domains_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 30, domains_.getRaw(i)); - } - for (int i = 0; i < routes_.size(); i++) { - output.writeMessage(31, routes_.get(i)); - } - for (int i = 0; i < routeMetadata_.size(); i++) { - output.writeMessage(34, routeMetadata_.get(i)); - } - if (agentConfiguration_ != null) { - output.writeMessage(35, getAgentConfiguration()); - } - if (!encodedDomainDatabase_.isEmpty()) { - output.writeBytes(36, encodedDomainDatabase_); - } - if (!encodedDnsLookups_.isEmpty()) { - output.writeBytes(37, encodedDnsLookups_); - } - if (!encodedConnectionsTags_.isEmpty()) { - output.writeBytes(38, encodedConnectionsTags_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetConnTelemetryMap(), - ConnTelemetryMapDefaultEntryHolder.defaultEntry, - 39); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResolvedHostsByName(), - ResolvedHostsByNameDefaultEntryHolder.defaultEntry, - 40); - if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { - output.writeEnum(41, kernelHeaderFetchResult_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCORETelemetryByAsset(), - CORETelemetryByAssetDefaultEntryHolder.defaultEntry, - 42); - for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 44, prebuiltEBPFAssets_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostName_); - } - for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, connections_.get(i)); - } - if (groupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, groupId_); - } - if (groupSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, groupSize_); - } - for (java.util.Map.Entry entry - : internalGetResolvedResources().getMap().entrySet()) { - com.google.protobuf.MapEntry - resolvedResources__ = ResolvedResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, resolvedResources__); - } - for (java.util.Map.Entry entry - : internalGetContainerForPid().getMap().entrySet()) { - com.google.protobuf.MapEntry - containerForPid__ = ContainerForPidDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, containerForPid__); - } - if (!encodedTags_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, encodedTags_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, networkId_); - } - if (!encodedDNS_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, encodedDNS_); - } - if (containerHostType_ != datadog.process_agent.Agent.ContainerHostType.notSpecified.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, containerHostType_); - } - if (connTelemetry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getConnTelemetry()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(architecture_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, architecture_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, kernelVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, platform_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, platformVersion_); - } - for (java.util.Map.Entry entry - : internalGetCompilationTelemetryByAsset().getMap().entrySet()) { - com.google.protobuf.MapEntry - compilationTelemetryByAsset__ = CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, compilationTelemetryByAsset__); - } - { - int dataSize = 0; - for (int i = 0; i < domains_.size(); i++) { - dataSize += computeStringSizeNoTag(domains_.getRaw(i)); - } - size += dataSize; - size += 2 * getDomainsList().size(); - } - for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, routes_.get(i)); - } - for (int i = 0; i < routeMetadata_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, routeMetadata_.get(i)); - } - if (agentConfiguration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getAgentConfiguration()); - } - if (!encodedDomainDatabase_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(36, encodedDomainDatabase_); - } - if (!encodedDnsLookups_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(37, encodedDnsLookups_); - } - if (!encodedConnectionsTags_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(38, encodedConnectionsTags_); - } - for (java.util.Map.Entry entry - : internalGetConnTelemetryMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - connTelemetryMap__ = ConnTelemetryMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, connTelemetryMap__); - } - for (java.util.Map.Entry entry - : internalGetResolvedHostsByName().getMap().entrySet()) { - com.google.protobuf.MapEntry - resolvedHostsByName__ = ResolvedHostsByNameDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, resolvedHostsByName__); - } - if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(41, kernelHeaderFetchResult_); - } - for (java.util.Map.Entry entry - : internalGetCORETelemetryByAsset().getMap().entrySet()) { - com.google.protobuf.MapEntry - cORETelemetryByAsset__ = CORETelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, cORETelemetryByAsset__); - } - { - int dataSize = 0; - for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { - dataSize += computeStringSizeNoTag(prebuiltEBPFAssets_.getRaw(i)); - } - size += dataSize; - size += 2 * getPrebuiltEBPFAssetsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnections)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.CollectorConnections other = (datadog.process_agent.ConnectionsOuterClass.CollectorConnections) obj; - - if (!getHostName() - .equals(other.getHostName())) return false; - if (!getNetworkId() - .equals(other.getNetworkId())) return false; - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; - if (getGroupId() - != other.getGroupId()) return false; - if (getGroupSize() - != other.getGroupSize()) return false; - if (!internalGetResolvedResources().equals( - other.internalGetResolvedResources())) return false; - if (!internalGetContainerForPid().equals( - other.internalGetContainerForPid())) return false; - if (!getEncodedTags() - .equals(other.getEncodedTags())) return false; - if (!getEncodedConnectionsTags() - .equals(other.getEncodedConnectionsTags())) return false; - if (containerHostType_ != other.containerHostType_) return false; - if (hasConnTelemetry() != other.hasConnTelemetry()) return false; - if (hasConnTelemetry()) { - if (!getConnTelemetry() - .equals(other.getConnTelemetry())) return false; - } - if (!internalGetConnTelemetryMap().equals( - other.internalGetConnTelemetryMap())) return false; - if (!getArchitecture() - .equals(other.getArchitecture())) return false; - if (!getKernelVersion() - .equals(other.getKernelVersion())) return false; - if (!getPlatform() - .equals(other.getPlatform())) return false; - if (!getPlatformVersion() - .equals(other.getPlatformVersion())) return false; - if (!internalGetCompilationTelemetryByAsset().equals( - other.internalGetCompilationTelemetryByAsset())) return false; - if (kernelHeaderFetchResult_ != other.kernelHeaderFetchResult_) return false; - if (!internalGetCORETelemetryByAsset().equals( - other.internalGetCORETelemetryByAsset())) return false; - if (!getPrebuiltEBPFAssetsList() - .equals(other.getPrebuiltEBPFAssetsList())) return false; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; - if (!getRouteMetadataList() - .equals(other.getRouteMetadataList())) return false; - if (hasAgentConfiguration() != other.hasAgentConfiguration()) return false; - if (hasAgentConfiguration()) { - if (!getAgentConfiguration() - .equals(other.getAgentConfiguration())) return false; - } - if (!getEncodedDNS() - .equals(other.getEncodedDNS())) return false; - if (!getDomainsList() - .equals(other.getDomainsList())) return false; - if (!getEncodedDomainDatabase() - .equals(other.getEncodedDomainDatabase())) return false; - if (!getEncodedDnsLookups() - .equals(other.getEncodedDnsLookups())) return false; - if (!internalGetResolvedHostsByName().equals( - other.internalGetResolvedHostsByName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostName().hashCode(); - hash = (37 * hash) + NETWORKID_FIELD_NUMBER; - hash = (53 * hash) + getNetworkId().hashCode(); - if (getConnectionsCount() > 0) { - hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConnectionsList().hashCode(); - } - hash = (37 * hash) + GROUPID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId(); - hash = (37 * hash) + GROUPSIZE_FIELD_NUMBER; - hash = (53 * hash) + getGroupSize(); - if (!internalGetResolvedResources().getMap().isEmpty()) { - hash = (37 * hash) + RESOLVEDRESOURCES_FIELD_NUMBER; - hash = (53 * hash) + internalGetResolvedResources().hashCode(); - } - if (!internalGetContainerForPid().getMap().isEmpty()) { - hash = (37 * hash) + CONTAINERFORPID_FIELD_NUMBER; - hash = (53 * hash) + internalGetContainerForPid().hashCode(); - } - hash = (37 * hash) + ENCODEDTAGS_FIELD_NUMBER; - hash = (53 * hash) + getEncodedTags().hashCode(); - hash = (37 * hash) + ENCODEDCONNECTIONSTAGS_FIELD_NUMBER; - hash = (53 * hash) + getEncodedConnectionsTags().hashCode(); - hash = (37 * hash) + CONTAINERHOSTTYPE_FIELD_NUMBER; - hash = (53 * hash) + containerHostType_; - if (hasConnTelemetry()) { - hash = (37 * hash) + CONNTELEMETRY_FIELD_NUMBER; - hash = (53 * hash) + getConnTelemetry().hashCode(); - } - if (!internalGetConnTelemetryMap().getMap().isEmpty()) { - hash = (37 * hash) + CONNTELEMETRYMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetConnTelemetryMap().hashCode(); - } - hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; - hash = (53 * hash) + getArchitecture().hashCode(); - hash = (37 * hash) + KERNELVERSION_FIELD_NUMBER; - hash = (53 * hash) + getKernelVersion().hashCode(); - hash = (37 * hash) + PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getPlatform().hashCode(); - hash = (37 * hash) + PLATFORMVERSION_FIELD_NUMBER; - hash = (53 * hash) + getPlatformVersion().hashCode(); - if (!internalGetCompilationTelemetryByAsset().getMap().isEmpty()) { - hash = (37 * hash) + COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER; - hash = (53 * hash) + internalGetCompilationTelemetryByAsset().hashCode(); - } - hash = (37 * hash) + KERNELHEADERFETCHRESULT_FIELD_NUMBER; - hash = (53 * hash) + kernelHeaderFetchResult_; - if (!internalGetCORETelemetryByAsset().getMap().isEmpty()) { - hash = (37 * hash) + CORETELEMETRYBYASSET_FIELD_NUMBER; - hash = (53 * hash) + internalGetCORETelemetryByAsset().hashCode(); - } - if (getPrebuiltEBPFAssetsCount() > 0) { - hash = (37 * hash) + PREBUILTEBPFASSETS_FIELD_NUMBER; - hash = (53 * hash) + getPrebuiltEBPFAssetsList().hashCode(); - } - if (getRoutesCount() > 0) { - hash = (37 * hash) + ROUTES_FIELD_NUMBER; - hash = (53 * hash) + getRoutesList().hashCode(); - } - if (getRouteMetadataCount() > 0) { - hash = (37 * hash) + ROUTEMETADATA_FIELD_NUMBER; - hash = (53 * hash) + getRouteMetadataList().hashCode(); - } - if (hasAgentConfiguration()) { - hash = (37 * hash) + AGENTCONFIGURATION_FIELD_NUMBER; - hash = (53 * hash) + getAgentConfiguration().hashCode(); - } - hash = (37 * hash) + ENCODEDDNS_FIELD_NUMBER; - hash = (53 * hash) + getEncodedDNS().hashCode(); - if (getDomainsCount() > 0) { - hash = (37 * hash) + DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + getDomainsList().hashCode(); - } - hash = (37 * hash) + ENCODEDDOMAINDATABASE_FIELD_NUMBER; - hash = (53 * hash) + getEncodedDomainDatabase().hashCode(); - hash = (37 * hash) + ENCODEDDNSLOOKUPS_FIELD_NUMBER; - hash = (53 * hash) + getEncodedDnsLookups().hashCode(); - if (!internalGetResolvedHostsByName().getMap().isEmpty()) { - hash = (37 * hash) + RESOLVEDHOSTSBYNAME_FIELD_NUMBER; - hash = (53 * hash) + internalGetResolvedHostsByName().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.CollectorConnections prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.CollectorConnections} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.CollectorConnections) - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 8: - return internalGetResolvedResources(); - case 10: - return internalGetContainerForPid(); - case 39: - return internalGetConnTelemetryMap(); - case 21: - return internalGetCompilationTelemetryByAsset(); - case 42: - return internalGetCORETelemetryByAsset(); - case 40: - return internalGetResolvedHostsByName(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 8: - return internalGetMutableResolvedResources(); - case 10: - return internalGetMutableContainerForPid(); - case 39: - return internalGetMutableConnTelemetryMap(); - case 21: - return internalGetMutableCompilationTelemetryByAsset(); - case 42: - return internalGetMutableCORETelemetryByAsset(); - case 40: - return internalGetMutableResolvedHostsByName(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.CollectorConnections.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnections.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.CollectorConnections.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - hostName_ = ""; - networkId_ = ""; - if (connectionsBuilder_ == null) { - connections_ = java.util.Collections.emptyList(); - } else { - connections_ = null; - connectionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - groupId_ = 0; - groupSize_ = 0; - internalGetMutableResolvedResources().clear(); - internalGetMutableContainerForPid().clear(); - encodedTags_ = com.google.protobuf.ByteString.EMPTY; - encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; - containerHostType_ = 0; - connTelemetry_ = null; - if (connTelemetryBuilder_ != null) { - connTelemetryBuilder_.dispose(); - connTelemetryBuilder_ = null; - } - internalGetMutableConnTelemetryMap().clear(); - architecture_ = ""; - kernelVersion_ = ""; - platform_ = ""; - platformVersion_ = ""; - internalGetMutableCompilationTelemetryByAsset().clear(); - kernelHeaderFetchResult_ = 0; - internalGetMutableCORETelemetryByAsset().clear(); - prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00080000); - if (routesBuilder_ == null) { - routes_ = java.util.Collections.emptyList(); - } else { - routes_ = null; - routesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - if (routeMetadataBuilder_ == null) { - routeMetadata_ = java.util.Collections.emptyList(); - } else { - routeMetadata_ = null; - routeMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - agentConfiguration_ = null; - if (agentConfigurationBuilder_ != null) { - agentConfigurationBuilder_.dispose(); - agentConfigurationBuilder_ = null; - } - encodedDNS_ = com.google.protobuf.ByteString.EMPTY; - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x01000000); - encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; - encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; - internalGetMutableResolvedHostsByName().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnections_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnections getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.CollectorConnections.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnections build() { - datadog.process_agent.ConnectionsOuterClass.CollectorConnections result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnections buildPartial() { - datadog.process_agent.ConnectionsOuterClass.CollectorConnections result = new datadog.process_agent.ConnectionsOuterClass.CollectorConnections(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.CollectorConnections result) { - if (connectionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - connections_ = java.util.Collections.unmodifiableList(connections_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.connections_ = connections_; - } else { - result.connections_ = connectionsBuilder_.build(); - } - if (((bitField0_ & 0x00080000) != 0)) { - prebuiltEBPFAssets_ = prebuiltEBPFAssets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00080000); - } - result.prebuiltEBPFAssets_ = prebuiltEBPFAssets_; - if (routesBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0)) { - routes_ = java.util.Collections.unmodifiableList(routes_); - bitField0_ = (bitField0_ & ~0x00100000); - } - result.routes_ = routes_; - } else { - result.routes_ = routesBuilder_.build(); - } - if (routeMetadataBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0)) { - routeMetadata_ = java.util.Collections.unmodifiableList(routeMetadata_); - bitField0_ = (bitField0_ & ~0x00200000); - } - result.routeMetadata_ = routeMetadata_; - } else { - result.routeMetadata_ = routeMetadataBuilder_.build(); - } - if (((bitField0_ & 0x01000000) != 0)) { - domains_ = domains_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x01000000); - } - result.domains_ = domains_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.CollectorConnections result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.hostName_ = hostName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.networkId_ = networkId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.groupId_ = groupId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.groupSize_ = groupSize_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.resolvedResources_ = internalGetResolvedResources(); - result.resolvedResources_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.containerForPid_ = internalGetContainerForPid(); - result.containerForPid_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.encodedTags_ = encodedTags_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.encodedConnectionsTags_ = encodedConnectionsTags_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.containerHostType_ = containerHostType_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.connTelemetry_ = connTelemetryBuilder_ == null - ? connTelemetry_ - : connTelemetryBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.connTelemetryMap_ = internalGetConnTelemetryMap(); - result.connTelemetryMap_.makeImmutable(); - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.architecture_ = architecture_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.kernelVersion_ = kernelVersion_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.platform_ = platform_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.platformVersion_ = platformVersion_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.compilationTelemetryByAsset_ = internalGetCompilationTelemetryByAsset(); - result.compilationTelemetryByAsset_.makeImmutable(); - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.kernelHeaderFetchResult_ = kernelHeaderFetchResult_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.cORETelemetryByAsset_ = internalGetCORETelemetryByAsset(); - result.cORETelemetryByAsset_.makeImmutable(); - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.agentConfiguration_ = agentConfigurationBuilder_ == null - ? agentConfiguration_ - : agentConfigurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.encodedDNS_ = encodedDNS_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.encodedDomainDatabase_ = encodedDomainDatabase_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.encodedDnsLookups_ = encodedDnsLookups_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.resolvedHostsByName_ = internalGetResolvedHostsByName(); - result.resolvedHostsByName_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnections) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.CollectorConnections)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.CollectorConnections other) { - if (other == datadog.process_agent.ConnectionsOuterClass.CollectorConnections.getDefaultInstance()) return this; - if (!other.getHostName().isEmpty()) { - hostName_ = other.hostName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNetworkId().isEmpty()) { - networkId_ = other.networkId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (connectionsBuilder_ == null) { - if (!other.connections_.isEmpty()) { - if (connections_.isEmpty()) { - connections_ = other.connections_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureConnectionsIsMutable(); - connections_.addAll(other.connections_); - } - onChanged(); - } - } else { - if (!other.connections_.isEmpty()) { - if (connectionsBuilder_.isEmpty()) { - connectionsBuilder_.dispose(); - connectionsBuilder_ = null; - connections_ = other.connections_; - bitField0_ = (bitField0_ & ~0x00000004); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionsFieldBuilder() : null; - } else { - connectionsBuilder_.addAllMessages(other.connections_); - } - } - } - if (other.getGroupId() != 0) { - setGroupId(other.getGroupId()); - } - if (other.getGroupSize() != 0) { - setGroupSize(other.getGroupSize()); - } - internalGetMutableResolvedResources().mergeFrom( - other.internalGetResolvedResources()); - bitField0_ |= 0x00000020; - internalGetMutableContainerForPid().mergeFrom( - other.internalGetContainerForPid()); - bitField0_ |= 0x00000040; - if (other.getEncodedTags() != com.google.protobuf.ByteString.EMPTY) { - setEncodedTags(other.getEncodedTags()); - } - if (other.getEncodedConnectionsTags() != com.google.protobuf.ByteString.EMPTY) { - setEncodedConnectionsTags(other.getEncodedConnectionsTags()); - } - if (other.containerHostType_ != 0) { - setContainerHostTypeValue(other.getContainerHostTypeValue()); - } - if (other.hasConnTelemetry()) { - mergeConnTelemetry(other.getConnTelemetry()); - } - internalGetMutableConnTelemetryMap().mergeFrom( - other.internalGetConnTelemetryMap()); - bitField0_ |= 0x00000800; - if (!other.getArchitecture().isEmpty()) { - architecture_ = other.architecture_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (!other.getKernelVersion().isEmpty()) { - kernelVersion_ = other.kernelVersion_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (!other.getPlatform().isEmpty()) { - platform_ = other.platform_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (!other.getPlatformVersion().isEmpty()) { - platformVersion_ = other.platformVersion_; - bitField0_ |= 0x00008000; - onChanged(); - } - internalGetMutableCompilationTelemetryByAsset().mergeFrom( - other.internalGetCompilationTelemetryByAsset()); - bitField0_ |= 0x00010000; - if (other.kernelHeaderFetchResult_ != 0) { - setKernelHeaderFetchResultValue(other.getKernelHeaderFetchResultValue()); - } - internalGetMutableCORETelemetryByAsset().mergeFrom( - other.internalGetCORETelemetryByAsset()); - bitField0_ |= 0x00040000; - if (!other.prebuiltEBPFAssets_.isEmpty()) { - if (prebuiltEBPFAssets_.isEmpty()) { - prebuiltEBPFAssets_ = other.prebuiltEBPFAssets_; - bitField0_ = (bitField0_ & ~0x00080000); - } else { - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.addAll(other.prebuiltEBPFAssets_); - } - onChanged(); - } - if (routesBuilder_ == null) { - if (!other.routes_.isEmpty()) { - if (routes_.isEmpty()) { - routes_ = other.routes_; - bitField0_ = (bitField0_ & ~0x00100000); - } else { - ensureRoutesIsMutable(); - routes_.addAll(other.routes_); - } - onChanged(); - } - } else { - if (!other.routes_.isEmpty()) { - if (routesBuilder_.isEmpty()) { - routesBuilder_.dispose(); - routesBuilder_ = null; - routes_ = other.routes_; - bitField0_ = (bitField0_ & ~0x00100000); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRoutesFieldBuilder() : null; - } else { - routesBuilder_.addAllMessages(other.routes_); - } - } - } - if (routeMetadataBuilder_ == null) { - if (!other.routeMetadata_.isEmpty()) { - if (routeMetadata_.isEmpty()) { - routeMetadata_ = other.routeMetadata_; - bitField0_ = (bitField0_ & ~0x00200000); - } else { - ensureRouteMetadataIsMutable(); - routeMetadata_.addAll(other.routeMetadata_); - } - onChanged(); - } - } else { - if (!other.routeMetadata_.isEmpty()) { - if (routeMetadataBuilder_.isEmpty()) { - routeMetadataBuilder_.dispose(); - routeMetadataBuilder_ = null; - routeMetadata_ = other.routeMetadata_; - bitField0_ = (bitField0_ & ~0x00200000); - routeMetadataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRouteMetadataFieldBuilder() : null; - } else { - routeMetadataBuilder_.addAllMessages(other.routeMetadata_); - } - } - } - if (other.hasAgentConfiguration()) { - mergeAgentConfiguration(other.getAgentConfiguration()); - } - if (other.getEncodedDNS() != com.google.protobuf.ByteString.EMPTY) { - setEncodedDNS(other.getEncodedDNS()); - } - if (!other.domains_.isEmpty()) { - if (domains_.isEmpty()) { - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x01000000); - } else { - ensureDomainsIsMutable(); - domains_.addAll(other.domains_); - } - onChanged(); - } - if (other.getEncodedDomainDatabase() != com.google.protobuf.ByteString.EMPTY) { - setEncodedDomainDatabase(other.getEncodedDomainDatabase()); - } - if (other.getEncodedDnsLookups() != com.google.protobuf.ByteString.EMPTY) { - setEncodedDnsLookups(other.getEncodedDnsLookups()); - } - internalGetMutableResolvedHostsByName().mergeFrom( - other.internalGetResolvedHostsByName()); - bitField0_ |= 0x08000000; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - hostName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - datadog.process_agent.ConnectionsOuterClass.Connection m = - input.readMessage( - datadog.process_agent.ConnectionsOuterClass.Connection.parser(), - extensionRegistry); - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(m); - } else { - connectionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 40: { - groupId_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - groupSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 66: { - com.google.protobuf.MapEntry - resolvedResources__ = input.readMessage( - ResolvedResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResolvedResources().getMutableMap().put( - resolvedResources__.getKey(), resolvedResources__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 82: { - com.google.protobuf.MapEntry - containerForPid__ = input.readMessage( - ContainerForPidDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableContainerForPid().getMutableMap().put( - containerForPid__.getKey(), containerForPid__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 82 - case 90: { - encodedTags_ = input.readBytes(); - bitField0_ |= 0x00000080; - break; - } // case 90 - case 98: { - networkId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 98 - case 114: { - encodedDNS_ = input.readBytes(); - bitField0_ |= 0x00800000; - break; - } // case 114 - case 120: { - containerHostType_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 120 - case 130: { - input.readMessage( - getConnTelemetryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 130 - case 138: { - architecture_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 138 - case 146: { - kernelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 146 - case 154: { - platform_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 154 - case 162: { - platformVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 162 - case 170: { - com.google.protobuf.MapEntry - compilationTelemetryByAsset__ = input.readMessage( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCompilationTelemetryByAsset().getMutableMap().put( - compilationTelemetryByAsset__.getKey(), compilationTelemetryByAsset__.getValue()); - bitField0_ |= 0x00010000; - break; - } // case 170 - case 242: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDomainsIsMutable(); - domains_.add(s); - break; - } // case 242 - case 250: { - datadog.process_agent.ConnectionsOuterClass.Route m = - input.readMessage( - datadog.process_agent.ConnectionsOuterClass.Route.parser(), - extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 250 - case 274: { - datadog.process_agent.ConnectionsOuterClass.RouteMetadata m = - input.readMessage( - datadog.process_agent.ConnectionsOuterClass.RouteMetadata.parser(), - extensionRegistry); - if (routeMetadataBuilder_ == null) { - ensureRouteMetadataIsMutable(); - routeMetadata_.add(m); - } else { - routeMetadataBuilder_.addMessage(m); - } - break; - } // case 274 - case 282: { - input.readMessage( - getAgentConfigurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 282 - case 290: { - encodedDomainDatabase_ = input.readBytes(); - bitField0_ |= 0x02000000; - break; - } // case 290 - case 298: { - encodedDnsLookups_ = input.readBytes(); - bitField0_ |= 0x04000000; - break; - } // case 298 - case 306: { - encodedConnectionsTags_ = input.readBytes(); - bitField0_ |= 0x00000100; - break; - } // case 306 - case 314: { - com.google.protobuf.MapEntry - connTelemetryMap__ = input.readMessage( - ConnTelemetryMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableConnTelemetryMap().getMutableMap().put( - connTelemetryMap__.getKey(), connTelemetryMap__.getValue()); - bitField0_ |= 0x00000800; - break; - } // case 314 - case 322: { - com.google.protobuf.MapEntry - resolvedHostsByName__ = input.readMessage( - ResolvedHostsByNameDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableResolvedHostsByName().getMutableMap().put( - resolvedHostsByName__.getKey(), resolvedHostsByName__.getValue()); - bitField0_ |= 0x08000000; - break; - } // case 322 - case 328: { - kernelHeaderFetchResult_ = input.readEnum(); - bitField0_ |= 0x00020000; - break; - } // case 328 - case 338: { - com.google.protobuf.MapEntry - cORETelemetryByAsset__ = input.readMessage( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCORETelemetryByAsset().getMutableMap().put( - cORETelemetryByAsset__.getKey(), cORETelemetryByAsset__.getValue()); - bitField0_ |= 0x00040000; - break; - } // case 338 - case 354: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.add(s); - break; - } // case 354 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object hostName_ = ""; - /** - * string hostName = 2; - * @return The hostName. - */ - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string hostName = 2; - * @return The bytes for hostName. - */ - public com.google.protobuf.ByteString - getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string hostName = 2; - * @param value The hostName to set. - * @return This builder for chaining. - */ - public Builder setHostName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - hostName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string hostName = 2; - * @return This builder for chaining. - */ - public Builder clearHostName() { - hostName_ = getDefaultInstance().getHostName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string hostName = 2; - * @param value The bytes for hostName to set. - * @return This builder for chaining. - */ - public Builder setHostNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - hostName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object networkId_ = ""; - /** - * string networkId = 12; - * @return The networkId. - */ - public java.lang.String getNetworkId() { - java.lang.Object ref = networkId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - networkId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string networkId = 12; - * @return The bytes for networkId. - */ - public com.google.protobuf.ByteString - getNetworkIdBytes() { - java.lang.Object ref = networkId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - networkId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string networkId = 12; - * @param value The networkId to set. - * @return This builder for chaining. - */ - public Builder setNetworkId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - networkId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string networkId = 12; - * @return This builder for chaining. - */ - public Builder clearNetworkId() { - networkId_ = getDefaultInstance().getNetworkId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string networkId = 12; - * @param value The bytes for networkId to set. - * @return This builder for chaining. - */ - public Builder setNetworkIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - networkId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List connections_ = - java.util.Collections.emptyList(); - private void ensureConnectionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - connections_ = new java.util.ArrayList(connections_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> connectionsBuilder_; - - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public java.util.List getConnectionsList() { - if (connectionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(connections_); - } else { - return connectionsBuilder_.getMessageList(); - } - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public int getConnectionsCount() { - if (connectionsBuilder_ == null) { - return connections_.size(); - } else { - return connectionsBuilder_.getCount(); - } - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection getConnections(int index) { - if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { - return connectionsBuilder_.getMessage(index); - } - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder setConnections( - int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.set(index, value); - onChanged(); - } else { - connectionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder setConnections( - int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.set(index, builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder addConnections(datadog.process_agent.ConnectionsOuterClass.Connection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.add(value); - onChanged(); - } else { - connectionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder addConnections( - int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectionsIsMutable(); - connections_.add(index, value); - onChanged(); - } else { - connectionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder addConnections( - datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder addConnections( - int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.add(index, builderForValue.build()); - onChanged(); - } else { - connectionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder addAllConnections( - java.lang.Iterable values) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); - onChanged(); - } else { - connectionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder clearConnections() { - if (connectionsBuilder_ == null) { - connections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - connectionsBuilder_.clear(); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public Builder removeConnections(int index) { - if (connectionsBuilder_ == null) { - ensureConnectionsIsMutable(); - connections_.remove(index); - onChanged(); - } else { - connectionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection.Builder getConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().getBuilder(index); - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnectionsOrBuilder( - int index) { - if (connectionsBuilder_ == null) { - return connections_.get(index); } else { - return connectionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public java.util.List - getConnectionsOrBuilderList() { - if (connectionsBuilder_ != null) { - return connectionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(connections_); - } - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().addBuilder( - index, datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Connection connections = 3; - */ - public java.util.List - getConnectionsBuilderList() { - return getConnectionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> - getConnectionsFieldBuilder() { - if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder>( - connections_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - connections_ = null; - } - return connectionsBuilder_; - } - - private int groupId_ ; - /** - *
-       * Message batching metadata
-       * 
- * - * int32 groupId = 5; - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - /** - *
-       * Message batching metadata
-       * 
- * - * int32 groupId = 5; - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(int value) { - - groupId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Message batching metadata
-       * 
- * - * int32 groupId = 5; - * @return This builder for chaining. - */ - public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000008); - groupId_ = 0; - onChanged(); - return this; - } - - private int groupSize_ ; - /** - * int32 groupSize = 6; - * @return The groupSize. - */ - @java.lang.Override - public int getGroupSize() { - return groupSize_; - } - /** - * int32 groupSize = 6; - * @param value The groupSize to set. - * @return This builder for chaining. - */ - public Builder setGroupSize(int value) { - - groupSize_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int32 groupSize = 6; - * @return This builder for chaining. - */ - public Builder clearGroupSize() { - bitField0_ = (bitField0_ & ~0x00000010); - groupSize_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata> resolvedResources_; - private com.google.protobuf.MapField - internalGetResolvedResources() { - if (resolvedResources_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResolvedResourcesDefaultEntryHolder.defaultEntry); - } - return resolvedResources_; - } - private com.google.protobuf.MapField - internalGetMutableResolvedResources() { - if (resolvedResources_ == null) { - resolvedResources_ = com.google.protobuf.MapField.newMapField( - ResolvedResourcesDefaultEntryHolder.defaultEntry); - } - if (!resolvedResources_.isMutable()) { - resolvedResources_ = resolvedResources_.copy(); - } - bitField0_ |= 0x00000020; - onChanged(); - return resolvedResources_; - } - public int getResolvedResourcesCount() { - return internalGetResolvedResources().getMap().size(); - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public boolean containsResolvedResources( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetResolvedResources().getMap().containsKey(key); - } - /** - * Use {@link #getResolvedResourcesMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResolvedResources() { - return getResolvedResourcesMap(); - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public java.util.Map getResolvedResourcesMap() { - return internalGetResolvedResources().getMap(); - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.ResourceMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedResources().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getResolvedResourcesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedResources().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearResolvedResources() { - bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableResolvedResources().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - public Builder removeResolvedResources( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResolvedResources().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableResolvedResources() { - bitField0_ |= 0x00000020; - return internalGetMutableResolvedResources().getMutableMap(); - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - public Builder putResolvedResources( - java.lang.String key, - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableResolvedResources().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000020; - return this; - } - /** - *
-       * Mapping of resourceID to metadata. For containers, each `connection` has a containerId field which can be mapped here.
-       * 
- * - * map<string, .datadog.process_agent.ResourceMetadata> resolvedResources = 8; - */ - public Builder putAllResolvedResources( - java.util.Map values) { - internalGetMutableResolvedResources().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000020; - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.String> containerForPid_; - private com.google.protobuf.MapField - internalGetContainerForPid() { - if (containerForPid_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ContainerForPidDefaultEntryHolder.defaultEntry); - } - return containerForPid_; - } - private com.google.protobuf.MapField - internalGetMutableContainerForPid() { - if (containerForPid_ == null) { - containerForPid_ = com.google.protobuf.MapField.newMapField( - ContainerForPidDefaultEntryHolder.defaultEntry); - } - if (!containerForPid_.isMutable()) { - containerForPid_ = containerForPid_.copy(); - } - bitField0_ |= 0x00000040; - onChanged(); - return containerForPid_; - } - public int getContainerForPidCount() { - return internalGetContainerForPid().getMap().size(); - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public boolean containsContainerForPid( - int key) { - - return internalGetContainerForPid().getMap().containsKey(key); - } - /** - * Use {@link #getContainerForPidMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getContainerForPid() { - return getContainerForPidMap(); - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public java.util.Map getContainerForPidMap() { - return internalGetContainerForPid().getMap(); - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getContainerForPidOrDefault( - int key, - /* nullable */ -java.lang.String defaultValue) { - - java.util.Map map = - internalGetContainerForPid().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - @java.lang.Override - public java.lang.String getContainerForPidOrThrow( - int key) { - - java.util.Map map = - internalGetContainerForPid().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearContainerForPid() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableContainerForPid().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - public Builder removeContainerForPid( - int key) { - - internalGetMutableContainerForPid().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableContainerForPid() { - bitField0_ |= 0x00000040; - return internalGetMutableContainerForPid().getMutableMap(); - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - public Builder putContainerForPid( - int key, - java.lang.String value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableContainerForPid().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000040; - return this; - } - /** - *
-       * Mapping of processes running in each container
-       * 
- * - * map<int32, string> containerForPid = 10; - */ - public Builder putAllContainerForPid( - java.util.Map values) { - internalGetMutableContainerForPid().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000040; - return this; - } - - private com.google.protobuf.ByteString encodedTags_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * encoded bytes here are use to store a tags []string
-       * the tags encoder is more space efficient than protobuf
-       * 
- * - * bytes encodedTags = 11; - * @return The encodedTags. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedTags() { - return encodedTags_; - } - /** - *
-       * encoded bytes here are use to store a tags []string
-       * the tags encoder is more space efficient than protobuf
-       * 
- * - * bytes encodedTags = 11; - * @param value The encodedTags to set. - * @return This builder for chaining. - */ - public Builder setEncodedTags(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - encodedTags_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * encoded bytes here are use to store a tags []string
-       * the tags encoder is more space efficient than protobuf
-       * 
- * - * bytes encodedTags = 11; - * @return This builder for chaining. - */ - public Builder clearEncodedTags() { - bitField0_ = (bitField0_ & ~0x00000080); - encodedTags_ = getDefaultInstance().getEncodedTags(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encodedConnectionsTags_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * All tags indexed by Connection.tags
-       * 
- * - * bytes encodedConnectionsTags = 38; - * @return The encodedConnectionsTags. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedConnectionsTags() { - return encodedConnectionsTags_; - } - /** - *
-       * All tags indexed by Connection.tags
-       * 
- * - * bytes encodedConnectionsTags = 38; - * @param value The encodedConnectionsTags to set. - * @return This builder for chaining. - */ - public Builder setEncodedConnectionsTags(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - encodedConnectionsTags_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       * All tags indexed by Connection.tags
-       * 
- * - * bytes encodedConnectionsTags = 38; - * @return This builder for chaining. - */ - public Builder clearEncodedConnectionsTags() { - bitField0_ = (bitField0_ & ~0x00000100); - encodedConnectionsTags_ = getDefaultInstance().getEncodedConnectionsTags(); - onChanged(); - return this; - } - - private int containerHostType_ = 0; - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return The enum numeric value on the wire for containerHostType. - */ - @java.lang.Override public int getContainerHostTypeValue() { - return containerHostType_; - } - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @param value The enum numeric value on the wire for containerHostType to set. - * @return This builder for chaining. - */ - public Builder setContainerHostTypeValue(int value) { - containerHostType_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return The containerHostType. - */ - @java.lang.Override - public datadog.process_agent.Agent.ContainerHostType getContainerHostType() { - datadog.process_agent.Agent.ContainerHostType result = datadog.process_agent.Agent.ContainerHostType.forNumber(containerHostType_); - return result == null ? datadog.process_agent.Agent.ContainerHostType.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @param value The containerHostType to set. - * @return This builder for chaining. - */ - public Builder setContainerHostType(datadog.process_agent.Agent.ContainerHostType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - containerHostType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.ContainerHostType containerHostType = 15; - * @return This builder for chaining. - */ - public Builder clearContainerHostType() { - bitField0_ = (bitField0_ & ~0x00000200); - containerHostType_ = 0; - onChanged(); - return this; - } - - private datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry connTelemetry_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder> connTelemetryBuilder_; - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - * @return Whether the connTelemetry field is set. - */ - public boolean hasConnTelemetry() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - * @return The connTelemetry. - */ - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getConnTelemetry() { - if (connTelemetryBuilder_ == null) { - return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } else { - return connTelemetryBuilder_.getMessage(); - } - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - public Builder setConnTelemetry(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry value) { - if (connTelemetryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connTelemetry_ = value; - } else { - connTelemetryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - public Builder setConnTelemetry( - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder builderForValue) { - if (connTelemetryBuilder_ == null) { - connTelemetry_ = builderForValue.build(); - } else { - connTelemetryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - public Builder mergeConnTelemetry(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry value) { - if (connTelemetryBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - connTelemetry_ != null && - connTelemetry_ != datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance()) { - getConnTelemetryBuilder().mergeFrom(value); - } else { - connTelemetry_ = value; - } - } else { - connTelemetryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - public Builder clearConnTelemetry() { - bitField0_ = (bitField0_ & ~0x00000400); - connTelemetry_ = null; - if (connTelemetryBuilder_ != null) { - connTelemetryBuilder_.dispose(); - connTelemetryBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder getConnTelemetryBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getConnTelemetryFieldBuilder().getBuilder(); - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { - if (connTelemetryBuilder_ != null) { - return connTelemetryBuilder_.getMessageOrBuilder(); - } else { - return connTelemetry_ == null ? - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.CollectorConnectionsTelemetry connTelemetry = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder> - getConnTelemetryFieldBuilder() { - if (connTelemetryBuilder_ == null) { - connTelemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder>( - getConnTelemetry(), - getParentForChildren(), - isClean()); - connTelemetry_ = null; - } - return connTelemetryBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> connTelemetryMap_; - private com.google.protobuf.MapField - internalGetConnTelemetryMap() { - if (connTelemetryMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConnTelemetryMapDefaultEntryHolder.defaultEntry); - } - return connTelemetryMap_; - } - private com.google.protobuf.MapField - internalGetMutableConnTelemetryMap() { - if (connTelemetryMap_ == null) { - connTelemetryMap_ = com.google.protobuf.MapField.newMapField( - ConnTelemetryMapDefaultEntryHolder.defaultEntry); - } - if (!connTelemetryMap_.isMutable()) { - connTelemetryMap_ = connTelemetryMap_.copy(); - } - bitField0_ |= 0x00000800; - onChanged(); - return connTelemetryMap_; - } - public int getConnTelemetryMapCount() { - return internalGetConnTelemetryMap().getMap().size(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public boolean containsConnTelemetryMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetConnTelemetryMap().getMap().containsKey(key); - } - /** - * Use {@link #getConnTelemetryMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getConnTelemetryMap() { - return getConnTelemetryMapMap(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public java.util.Map getConnTelemetryMapMap() { - return internalGetConnTelemetryMap().getMap(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public long getConnTelemetryMapOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - @java.lang.Override - public long getConnTelemetryMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearConnTelemetryMap() { - bitField0_ = (bitField0_ & ~0x00000800); - internalGetMutableConnTelemetryMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - public Builder removeConnTelemetryMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableConnTelemetryMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableConnTelemetryMap() { - bitField0_ |= 0x00000800; - return internalGetMutableConnTelemetryMap().getMutableMap(); - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - public Builder putConnTelemetryMap( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableConnTelemetryMap().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000800; - return this; - } - /** - * map<string, int64> connTelemetryMap = 39; - */ - public Builder putAllConnTelemetryMap( - java.util.Map values) { - internalGetMutableConnTelemetryMap().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000800; - return this; - } - - private java.lang.Object architecture_ = ""; - /** - *
-       * OS Telemetry
-       * 
- * - * string architecture = 17; - * @return The architecture. - */ - public java.lang.String getArchitecture() { - java.lang.Object ref = architecture_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - architecture_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * OS Telemetry
-       * 
- * - * string architecture = 17; - * @return The bytes for architecture. - */ - public com.google.protobuf.ByteString - getArchitectureBytes() { - java.lang.Object ref = architecture_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - architecture_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * OS Telemetry
-       * 
- * - * string architecture = 17; - * @param value The architecture to set. - * @return This builder for chaining. - */ - public Builder setArchitecture( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - architecture_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-       * OS Telemetry
-       * 
- * - * string architecture = 17; - * @return This builder for chaining. - */ - public Builder clearArchitecture() { - architecture_ = getDefaultInstance().getArchitecture(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - *
-       * OS Telemetry
-       * 
- * - * string architecture = 17; - * @param value The bytes for architecture to set. - * @return This builder for chaining. - */ - public Builder setArchitectureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - architecture_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object kernelVersion_ = ""; - /** - * string kernelVersion = 18; - * @return The kernelVersion. - */ - public java.lang.String getKernelVersion() { - java.lang.Object ref = kernelVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kernelVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kernelVersion = 18; - * @return The bytes for kernelVersion. - */ - public com.google.protobuf.ByteString - getKernelVersionBytes() { - java.lang.Object ref = kernelVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kernelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kernelVersion = 18; - * @param value The kernelVersion to set. - * @return This builder for chaining. - */ - public Builder setKernelVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - kernelVersion_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * string kernelVersion = 18; - * @return This builder for chaining. - */ - public Builder clearKernelVersion() { - kernelVersion_ = getDefaultInstance().getKernelVersion(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * string kernelVersion = 18; - * @param value The bytes for kernelVersion to set. - * @return This builder for chaining. - */ - public Builder setKernelVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - kernelVersion_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private java.lang.Object platform_ = ""; - /** - * string platform = 19; - * @return The platform. - */ - public java.lang.String getPlatform() { - java.lang.Object ref = platform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - platform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string platform = 19; - * @return The bytes for platform. - */ - public com.google.protobuf.ByteString - getPlatformBytes() { - java.lang.Object ref = platform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string platform = 19; - * @param value The platform to set. - * @return This builder for chaining. - */ - public Builder setPlatform( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - platform_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * string platform = 19; - * @return This builder for chaining. - */ - public Builder clearPlatform() { - platform_ = getDefaultInstance().getPlatform(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - * string platform = 19; - * @param value The bytes for platform to set. - * @return This builder for chaining. - */ - public Builder setPlatformBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - platform_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private java.lang.Object platformVersion_ = ""; - /** - * string platformVersion = 20; - * @return The platformVersion. - */ - public java.lang.String getPlatformVersion() { - java.lang.Object ref = platformVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - platformVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string platformVersion = 20; - * @return The bytes for platformVersion. - */ - public com.google.protobuf.ByteString - getPlatformVersionBytes() { - java.lang.Object ref = platformVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platformVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string platformVersion = 20; - * @param value The platformVersion to set. - * @return This builder for chaining. - */ - public Builder setPlatformVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - platformVersion_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * string platformVersion = 20; - * @return This builder for chaining. - */ - public Builder clearPlatformVersion() { - platformVersion_ = getDefaultInstance().getPlatformVersion(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * string platformVersion = 20; - * @param value The bytes for platformVersion to set. - * @return This builder for chaining. - */ - public Builder setPlatformVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - platformVersion_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCompilationTelemetryByAsset() { - if (compilationTelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return compilationTelemetryByAsset_; - } - private com.google.protobuf.MapField - internalGetMutableCompilationTelemetryByAsset() { - if (compilationTelemetryByAsset_ == null) { - compilationTelemetryByAsset_ = com.google.protobuf.MapField.newMapField( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); - } - if (!compilationTelemetryByAsset_.isMutable()) { - compilationTelemetryByAsset_ = compilationTelemetryByAsset_.copy(); - } - bitField0_ |= 0x00010000; - onChanged(); - return compilationTelemetryByAsset_; - } - public int getCompilationTelemetryByAssetCount() { - return internalGetCompilationTelemetryByAsset().getMap().size(); - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public boolean containsCompilationTelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCompilationTelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCompilationTelemetryByAsset() { - return getCompilationTelemetryByAssetMap(); - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public java.util.Map getCompilationTelemetryByAssetMap() { - return internalGetCompilationTelemetryByAsset().getMap(); - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearCompilationTelemetryByAsset() { - bitField0_ = (bitField0_ & ~0x00010000); - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - public Builder removeCompilationTelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCompilationTelemetryByAsset() { - bitField0_ |= 0x00010000; - return internalGetMutableCompilationTelemetryByAsset().getMutableMap(); - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - public Builder putCompilationTelemetryByAsset( - java.lang.String key, - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .put(key, value); - bitField0_ |= 0x00010000; - return this; - } - /** - *
-       * Runtime compilation telemetry
-       * 
- * - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 21; - */ - public Builder putAllCompilationTelemetryByAsset( - java.util.Map values) { - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .putAll(values); - bitField0_ |= 0x00010000; - return this; - } - - private int kernelHeaderFetchResult_ = 0; - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - @java.lang.Override public int getKernelHeaderFetchResultValue() { - return kernelHeaderFetchResult_; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @param value The enum numeric value on the wire for kernelHeaderFetchResult to set. - * @return This builder for chaining. - */ - public Builder setKernelHeaderFetchResultValue(int value) { - kernelHeaderFetchResult_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return The kernelHeaderFetchResult. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @param value The kernelHeaderFetchResult to set. - * @return This builder for chaining. - */ - public Builder setKernelHeaderFetchResult(datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - kernelHeaderFetchResult_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 41; - * @return This builder for chaining. - */ - public Builder clearKernelHeaderFetchResult() { - bitField0_ = (bitField0_ & ~0x00020000); - kernelHeaderFetchResult_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> cORETelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCORETelemetryByAsset() { - if (cORETelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return cORETelemetryByAsset_; - } - private com.google.protobuf.MapField - internalGetMutableCORETelemetryByAsset() { - if (cORETelemetryByAsset_ == null) { - cORETelemetryByAsset_ = com.google.protobuf.MapField.newMapField( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry); - } - if (!cORETelemetryByAsset_.isMutable()) { - cORETelemetryByAsset_ = cORETelemetryByAsset_.copy(); - } - bitField0_ |= 0x00040000; - onChanged(); - return cORETelemetryByAsset_; - } - public int getCORETelemetryByAssetCount() { - return internalGetCORETelemetryByAsset().getMap().size(); - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public boolean containsCORETelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCORETelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCORETelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAsset() { - return getCORETelemetryByAssetMap(); - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetMap() { - return internalGetAdaptedCORETelemetryByAssetMap( - internalGetCORETelemetryByAsset().getMap());} - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) - ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return cORETelemetryByAssetValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getCORETelemetryByAssetValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAssetValue() { - return getCORETelemetryByAssetValueMap(); - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetValueMap() { - return internalGetCORETelemetryByAsset().getMap(); - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearCORETelemetryByAsset() { - bitField0_ = (bitField0_ & ~0x00040000); - internalGetMutableCORETelemetryByAsset().getMutableMap() - .clear(); - return this; - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - public Builder removeCORETelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCORETelemetryByAsset().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCORETelemetryByAsset() { - bitField0_ |= 0x00040000; - return internalGetAdaptedCORETelemetryByAssetMap( - internalGetMutableCORETelemetryByAsset().getMutableMap()); - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - public Builder putCORETelemetryByAsset( - java.lang.String key, - datadog.process_agent.ConnectionsOuterClass.COREResult value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableCORETelemetryByAsset().getMutableMap() - .put(key, cORETelemetryByAssetValueConverter.doBackward(value)); - bitField0_ |= 0x00040000; - return this; - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - public Builder putAllCORETelemetryByAsset( - java.util.Map values) { - internalGetAdaptedCORETelemetryByAssetMap( - internalGetMutableCORETelemetryByAsset().getMutableMap()) - .putAll(values); - bitField0_ |= 0x00040000; - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCORETelemetryByAssetValue() { - bitField0_ |= 0x00040000; - return internalGetMutableCORETelemetryByAsset().getMutableMap(); - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - public Builder putCORETelemetryByAssetValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableCORETelemetryByAsset().getMutableMap() - .put(key, value); - bitField0_ |= 0x00040000; - return this; - } - /** - *
-       * CO-RE telemetry
-       * 
- * - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 42; - */ - public Builder putAllCORETelemetryByAssetValue( - java.util.Map values) { - internalGetMutableCORETelemetryByAsset().getMutableMap() - .putAll(values); - bitField0_ |= 0x00040000; - return this; - } - - private com.google.protobuf.LazyStringList prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePrebuiltEBPFAssetsIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { - prebuiltEBPFAssets_ = new com.google.protobuf.LazyStringArrayList(prebuiltEBPFAssets_); - bitField0_ |= 0x00080000; - } - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return A list containing the prebuiltEBPFAssets. - */ - public com.google.protobuf.ProtocolStringList - getPrebuiltEBPFAssetsList() { - return prebuiltEBPFAssets_.getUnmodifiableView(); - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return The count of prebuiltEBPFAssets. - */ - public int getPrebuiltEBPFAssetsCount() { - return prebuiltEBPFAssets_.size(); - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index of the element to return. - * @return The prebuiltEBPFAssets at the given index. - */ - public java.lang.String getPrebuiltEBPFAssets(int index) { - return prebuiltEBPFAssets_.get(index); - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index of the value to return. - * @return The bytes of the prebuiltEBPFAssets at the given index. - */ - public com.google.protobuf.ByteString - getPrebuiltEBPFAssetsBytes(int index) { - return prebuiltEBPFAssets_.getByteString(index); - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param index The index to set the value at. - * @param value The prebuiltEBPFAssets to set. - * @return This builder for chaining. - */ - public Builder setPrebuiltEBPFAssets( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param value The prebuiltEBPFAssets to add. - * @return This builder for chaining. - */ - public Builder addPrebuiltEBPFAssets( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.add(value); - onChanged(); - return this; - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param values The prebuiltEBPFAssets to add. - * @return This builder for chaining. - */ - public Builder addAllPrebuiltEBPFAssets( - java.lang.Iterable values) { - ensurePrebuiltEBPFAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, prebuiltEBPFAssets_); - onChanged(); - return this; - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @return This builder for chaining. - */ - public Builder clearPrebuiltEBPFAssets() { - prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00080000); - onChanged(); - return this; - } - /** - *
-       * Prebuilt EBPF assets in use
-       * 
- * - * repeated string PrebuiltEBPFAssets = 44; - * @param value The bytes of the prebuiltEBPFAssets to add. - * @return This builder for chaining. - */ - public Builder addPrebuiltEBPFAssetsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.add(value); - onChanged(); - return this; - } - - private java.util.List routes_ = - java.util.Collections.emptyList(); - private void ensureRoutesIsMutable() { - if (!((bitField0_ & 0x00100000) != 0)) { - routes_ = new java.util.ArrayList(routes_); - bitField0_ |= 0x00100000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> routesBuilder_; - - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public java.util.List getRoutesList() { - if (routesBuilder_ == null) { - return java.util.Collections.unmodifiableList(routes_); - } else { - return routesBuilder_.getMessageList(); - } - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public int getRoutesCount() { - if (routesBuilder_ == null) { - return routes_.size(); - } else { - return routesBuilder_.getCount(); - } - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { - if (routesBuilder_ == null) { - return routes_.get(index); - } else { - return routesBuilder_.getMessage(index); - } - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder setRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route value) { - if (routesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutesIsMutable(); - routes_.set(index, value); - onChanged(); - } else { - routesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder setRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.set(index, builderForValue.build()); - onChanged(); - } else { - routesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder addRoutes(datadog.process_agent.ConnectionsOuterClass.Route value) { - if (routesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutesIsMutable(); - routes_.add(value); - onChanged(); - } else { - routesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder addRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route value) { - if (routesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutesIsMutable(); - routes_.add(index, value); - onChanged(); - } else { - routesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder addRoutes( - datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(builderForValue.build()); - onChanged(); - } else { - routesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder addRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(index, builderForValue.build()); - onChanged(); - } else { - routesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder addAllRoutes( - java.lang.Iterable values) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, routes_); - onChanged(); - } else { - routesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder clearRoutes() { - if (routesBuilder_ == null) { - routes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00100000); - onChanged(); - } else { - routesBuilder_.clear(); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public Builder removeRoutes(int index) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.remove(index); - onChanged(); - } else { - routesBuilder_.remove(index); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public datadog.process_agent.ConnectionsOuterClass.Route.Builder getRoutesBuilder( - int index) { - return getRoutesFieldBuilder().getBuilder(index); - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( - int index) { - if (routesBuilder_ == null) { - return routes_.get(index); } else { - return routesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public java.util.List - getRoutesOrBuilderList() { - if (routesBuilder_ != null) { - return routesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(routes_); - } - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder().addBuilder( - datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder( - int index) { - return getRoutesFieldBuilder().addBuilder( - index, datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Route routes = 31; - */ - public java.util.List - getRoutesBuilderList() { - return getRoutesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> - getRoutesFieldBuilder() { - if (routesBuilder_ == null) { - routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder>( - routes_, - ((bitField0_ & 0x00100000) != 0), - getParentForChildren(), - isClean()); - routes_ = null; - } - return routesBuilder_; - } - - private java.util.List routeMetadata_ = - java.util.Collections.emptyList(); - private void ensureRouteMetadataIsMutable() { - if (!((bitField0_ & 0x00200000) != 0)) { - routeMetadata_ = new java.util.ArrayList(routeMetadata_); - bitField0_ |= 0x00200000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.RouteMetadata, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder, datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder> routeMetadataBuilder_; - - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public java.util.List getRouteMetadataList() { - if (routeMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(routeMetadata_); - } else { - return routeMetadataBuilder_.getMessageList(); - } - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public int getRouteMetadataCount() { - if (routeMetadataBuilder_ == null) { - return routeMetadata_.size(); - } else { - return routeMetadataBuilder_.getCount(); - } - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getRouteMetadata(int index) { - if (routeMetadataBuilder_ == null) { - return routeMetadata_.get(index); - } else { - return routeMetadataBuilder_.getMessage(index); - } - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder setRouteMetadata( - int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata value) { - if (routeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRouteMetadataIsMutable(); - routeMetadata_.set(index, value); - onChanged(); - } else { - routeMetadataBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder setRouteMetadata( - int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder builderForValue) { - if (routeMetadataBuilder_ == null) { - ensureRouteMetadataIsMutable(); - routeMetadata_.set(index, builderForValue.build()); - onChanged(); - } else { - routeMetadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder addRouteMetadata(datadog.process_agent.ConnectionsOuterClass.RouteMetadata value) { - if (routeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRouteMetadataIsMutable(); - routeMetadata_.add(value); - onChanged(); - } else { - routeMetadataBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder addRouteMetadata( - int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata value) { - if (routeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRouteMetadataIsMutable(); - routeMetadata_.add(index, value); - onChanged(); - } else { - routeMetadataBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder addRouteMetadata( - datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder builderForValue) { - if (routeMetadataBuilder_ == null) { - ensureRouteMetadataIsMutable(); - routeMetadata_.add(builderForValue.build()); - onChanged(); - } else { - routeMetadataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder addRouteMetadata( - int index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder builderForValue) { - if (routeMetadataBuilder_ == null) { - ensureRouteMetadataIsMutable(); - routeMetadata_.add(index, builderForValue.build()); - onChanged(); - } else { - routeMetadataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder addAllRouteMetadata( - java.lang.Iterable values) { - if (routeMetadataBuilder_ == null) { - ensureRouteMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, routeMetadata_); - onChanged(); - } else { - routeMetadataBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder clearRouteMetadata() { - if (routeMetadataBuilder_ == null) { - routeMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - } else { - routeMetadataBuilder_.clear(); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public Builder removeRouteMetadata(int index) { - if (routeMetadataBuilder_ == null) { - ensureRouteMetadataIsMutable(); - routeMetadata_.remove(index); - onChanged(); - } else { - routeMetadataBuilder_.remove(index); - } - return this; - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder getRouteMetadataBuilder( - int index) { - return getRouteMetadataFieldBuilder().getBuilder(index); - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder getRouteMetadataOrBuilder( - int index) { - if (routeMetadataBuilder_ == null) { - return routeMetadata_.get(index); } else { - return routeMetadataBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public java.util.List - getRouteMetadataOrBuilderList() { - if (routeMetadataBuilder_ != null) { - return routeMetadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(routeMetadata_); - } - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder addRouteMetadataBuilder() { - return getRouteMetadataFieldBuilder().addBuilder( - datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder addRouteMetadataBuilder( - int index) { - return getRouteMetadataFieldBuilder().addBuilder( - index, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.RouteMetadata routeMetadata = 34; - */ - public java.util.List - getRouteMetadataBuilderList() { - return getRouteMetadataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.RouteMetadata, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder, datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder> - getRouteMetadataFieldBuilder() { - if (routeMetadataBuilder_ == null) { - routeMetadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.RouteMetadata, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder, datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder>( - routeMetadata_, - ((bitField0_ & 0x00200000) != 0), - getParentForChildren(), - isClean()); - routeMetadata_ = null; - } - return routeMetadataBuilder_; - } - - private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> agentConfigurationBuilder_; - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - * @return Whether the agentConfiguration field is set. - */ - public boolean hasAgentConfiguration() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - * @return The agentConfiguration. - */ - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { - if (agentConfigurationBuilder_ == null) { - return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } else { - return agentConfigurationBuilder_.getMessage(); - } - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - public Builder setAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { - if (agentConfigurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - agentConfiguration_ = value; - } else { - agentConfigurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - public Builder setAgentConfiguration( - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder builderForValue) { - if (agentConfigurationBuilder_ == null) { - agentConfiguration_ = builderForValue.build(); - } else { - agentConfigurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - public Builder mergeAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { - if (agentConfigurationBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) && - agentConfiguration_ != null && - agentConfiguration_ != datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance()) { - getAgentConfigurationBuilder().mergeFrom(value); - } else { - agentConfiguration_ = value; - } - } else { - agentConfigurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - public Builder clearAgentConfiguration() { - bitField0_ = (bitField0_ & ~0x00400000); - agentConfiguration_ = null; - if (agentConfigurationBuilder_ != null) { - agentConfigurationBuilder_.dispose(); - agentConfigurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder getAgentConfigurationBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getAgentConfigurationFieldBuilder().getBuilder(); - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { - if (agentConfigurationBuilder_ != null) { - return agentConfigurationBuilder_.getMessageOrBuilder(); - } else { - return agentConfiguration_ == null ? - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } - } - /** - *
-       *///////////////
-       * V1 encodings
-       * 
- * - * .datadog.process_agent.AgentConfiguration agentConfiguration = 35; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> - getAgentConfigurationFieldBuilder() { - if (agentConfigurationBuilder_ == null) { - agentConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder>( - getAgentConfiguration(), - getParentForChildren(), - isClean()); - agentConfiguration_ = null; - } - return agentConfigurationBuilder_; - } - - private com.google.protobuf.ByteString encodedDNS_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
-       * 
- * - * bytes encodedDNS = 14; - * @return The encodedDNS. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedDNS() { - return encodedDNS_; - } - /** - *
-       * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
-       * 
- * - * bytes encodedDNS = 14; - * @param value The encodedDNS to set. - * @return This builder for chaining. - */ - public Builder setEncodedDNS(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - encodedDNS_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - *
-       * encoded dns is a map of (string) ip-> list of domains (DNSEntry)
-       * 
- * - * bytes encodedDNS = 14; - * @return This builder for chaining. - */ - public Builder clearEncodedDNS() { - bitField0_ = (bitField0_ & ~0x00800000); - encodedDNS_ = getDefaultInstance().getEncodedDNS(); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDomainsIsMutable() { - if (!((bitField0_ & 0x01000000) != 0)) { - domains_ = new com.google.protobuf.LazyStringArrayList(domains_); - bitField0_ |= 0x01000000; - } - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @return A list containing the domains. - */ - public com.google.protobuf.ProtocolStringList - getDomainsList() { - return domains_.getUnmodifiableView(); - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @return The count of domains. - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @param index The index of the element to return. - * @return The domains at the given index. - */ - public java.lang.String getDomains(int index) { - return domains_.get(index); - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @param index The index of the value to return. - * @return The bytes of the domains at the given index. - */ - public com.google.protobuf.ByteString - getDomainsBytes(int index) { - return domains_.getByteString(index); - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @param index The index to set the value at. - * @param value The domains to set. - * @return This builder for chaining. - */ - public Builder setDomains( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureDomainsIsMutable(); - domains_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @param value The domains to add. - * @return This builder for chaining. - */ - public Builder addDomains( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - return this; - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @param values The domains to add. - * @return This builder for chaining. - */ - public Builder addAllDomains( - java.lang.Iterable values) { - ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, domains_); - onChanged(); - return this; - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @return This builder for chaining. - */ - public Builder clearDomains() { - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x01000000); - onChanged(); - return this; - } - /** - *
-       * All queried DNS domains for which we have collected stats
-       * 
- * - * repeated string domains = 30; - * @param value The bytes of the domains to add. - * @return This builder for chaining. - */ - public Builder addDomainsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encodedDomainDatabase_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       *////////////////
-       * V2 encodings
-       * all domain strings are now indexes into a single array of strings
-       * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
-       * is a single buffer; varint number of strings, followed by each string.
-       * 
- * - * bytes encodedDomainDatabase = 36; - * @return The encodedDomainDatabase. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedDomainDatabase() { - return encodedDomainDatabase_; - } - /** - *
-       *////////////////
-       * V2 encodings
-       * all domain strings are now indexes into a single array of strings
-       * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
-       * is a single buffer; varint number of strings, followed by each string.
-       * 
- * - * bytes encodedDomainDatabase = 36; - * @param value The encodedDomainDatabase to set. - * @return This builder for chaining. - */ - public Builder setEncodedDomainDatabase(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - encodedDomainDatabase_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - *
-       *////////////////
-       * V2 encodings
-       * all domain strings are now indexes into a single array of strings
-       * hostname query information.  Encoded via V2DNSEncoder.EncodeDomainDatabase
-       * is a single buffer; varint number of strings, followed by each string.
-       * 
- * - * bytes encodedDomainDatabase = 36; - * @return This builder for chaining. - */ - public Builder clearEncodedDomainDatabase() { - bitField0_ = (bitField0_ & ~0x02000000); - encodedDomainDatabase_ = getDefaultInstance().getEncodedDomainDatabase(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString encodedDnsLookups_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * new representation of encoded DNS.  This is a map of the string representation
-       * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
-       * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
-       * 
- * - * bytes encodedDnsLookups = 37; - * @return The encodedDnsLookups. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEncodedDnsLookups() { - return encodedDnsLookups_; - } - /** - *
-       * new representation of encoded DNS.  This is a map of the string representation
-       * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
-       * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
-       * 
- * - * bytes encodedDnsLookups = 37; - * @param value The encodedDnsLookups to set. - * @return This builder for chaining. - */ - public Builder setEncodedDnsLookups(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - encodedDnsLookups_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - *
-       * new representation of encoded DNS.  This is a map of the string representation
-       * of the IP --> DNSDatabaseEntry message. (was encodedDNS).  Encoded
-       * via V2DNSEncoder.EncodeMapped.  Full buffer description provided there.
-       * 
- * - * bytes encodedDnsLookups = 37; - * @return This builder for chaining. - */ - public Builder clearEncodedDnsLookups() { - bitField0_ = (bitField0_ & ~0x04000000); - encodedDnsLookups_ = getDefaultInstance().getEncodedDnsLookups(); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.Agent.Host> resolvedHostsByName_; - private com.google.protobuf.MapField - internalGetResolvedHostsByName() { - if (resolvedHostsByName_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResolvedHostsByNameDefaultEntryHolder.defaultEntry); - } - return resolvedHostsByName_; - } - private com.google.protobuf.MapField - internalGetMutableResolvedHostsByName() { - if (resolvedHostsByName_ == null) { - resolvedHostsByName_ = com.google.protobuf.MapField.newMapField( - ResolvedHostsByNameDefaultEntryHolder.defaultEntry); - } - if (!resolvedHostsByName_.isMutable()) { - resolvedHostsByName_ = resolvedHostsByName_.copy(); - } - bitField0_ |= 0x08000000; - onChanged(); - return resolvedHostsByName_; - } - public int getResolvedHostsByNameCount() { - return internalGetResolvedHostsByName().getMap().size(); - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public boolean containsResolvedHostsByName( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetResolvedHostsByName().getMap().containsKey(key); - } - /** - * Use {@link #getResolvedHostsByNameMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResolvedHostsByName() { - return getResolvedHostsByNameMap(); - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public java.util.Map getResolvedHostsByNameMap() { - return internalGetResolvedHostsByName().getMap(); - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.Agent.Host getResolvedHostsByNameOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.Agent.Host defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedHostsByName().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - @java.lang.Override - public datadog.process_agent.Agent.Host getResolvedHostsByNameOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetResolvedHostsByName().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearResolvedHostsByName() { - bitField0_ = (bitField0_ & ~0x08000000); - internalGetMutableResolvedHostsByName().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - public Builder removeResolvedHostsByName( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResolvedHostsByName().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableResolvedHostsByName() { - bitField0_ |= 0x08000000; - return internalGetMutableResolvedHostsByName().getMutableMap(); - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - public Builder putResolvedHostsByName( - java.lang.String key, - datadog.process_agent.Agent.Host value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableResolvedHostsByName().getMutableMap() - .put(key, value); - bitField0_ |= 0x08000000; - return this; - } - /** - *
-       * Post-resolution field
-       * 
- * - * map<string, .datadog.process_agent.Host> resolvedHostsByName = 40; - */ - public Builder putAllResolvedHostsByName( - java.util.Map values) { - internalGetMutableResolvedHostsByName().getMutableMap() - .putAll(values); - bitField0_ |= 0x08000000; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.CollectorConnections) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.CollectorConnections) - private static final datadog.process_agent.ConnectionsOuterClass.CollectorConnections DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.CollectorConnections(); - } - - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnections getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectorConnections parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnections getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConnectionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.Connections) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - java.util.List - getConnsList(); - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - datadog.process_agent.ConnectionsOuterClass.Connection getConns(int index); - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - int getConnsCount(); - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - java.util.List - getConnsOrBuilderList(); - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnsOrBuilder( - int index); - - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - int getDnsCount(); - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - boolean containsDns( - java.lang.String key); - /** - * Use {@link #getDnsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDns(); - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - java.util.Map - getDnsMap(); - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSEntry defaultValue); - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrThrow( - java.lang.String key); - - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - * @return Whether the connTelemetry field is set. - */ - boolean hasConnTelemetry(); - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - * @return The connTelemetry. - */ - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getConnTelemetry(); - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder(); - - /** - * repeated string domains = 4; - * @return A list containing the domains. - */ - java.util.List - getDomainsList(); - /** - * repeated string domains = 4; - * @return The count of domains. - */ - int getDomainsCount(); - /** - * repeated string domains = 4; - * @param index The index of the element to return. - * @return The domains at the given index. - */ - java.lang.String getDomains(int index); - /** - * repeated string domains = 4; - * @param index The index of the value to return. - * @return The bytes of the domains at the given index. - */ - com.google.protobuf.ByteString - getDomainsBytes(int index); - - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - java.util.List - getRoutesList(); - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index); - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - int getRoutesCount(); - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - java.util.List - getRoutesOrBuilderList(); - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( - int index); - - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - int getCompilationTelemetryByAssetCount(); - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - boolean containsCompilationTelemetryByAsset( - java.lang.String key); - /** - * Use {@link #getCompilationTelemetryByAssetMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCompilationTelemetryByAsset(); - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - java.util.Map - getCompilationTelemetryByAssetMap(); - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue); - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( - java.lang.String key); - - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - * @return Whether the agentConfiguration field is set. - */ - boolean hasAgentConfiguration(); - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - * @return The agentConfiguration. - */ - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration(); - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder(); - - /** - * repeated string tags = 8; - * @return A list containing the tags. - */ - java.util.List - getTagsList(); - /** - * repeated string tags = 8; - * @return The count of tags. - */ - int getTagsCount(); - /** - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * map<string, int64> connTelemetryMap = 9; - */ - int getConnTelemetryMapCount(); - /** - * map<string, int64> connTelemetryMap = 9; - */ - boolean containsConnTelemetryMap( - java.lang.String key); - /** - * Use {@link #getConnTelemetryMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getConnTelemetryMap(); - /** - * map<string, int64> connTelemetryMap = 9; - */ - java.util.Map - getConnTelemetryMapMap(); - /** - * map<string, int64> connTelemetryMap = 9; - */ - long getConnTelemetryMapOrDefault( - java.lang.String key, - long defaultValue); - /** - * map<string, int64> connTelemetryMap = 9; - */ - long getConnTelemetryMapOrThrow( - java.lang.String key); - - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - int getKernelHeaderFetchResultValue(); - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return The kernelHeaderFetchResult. - */ - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult(); - - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - int getCORETelemetryByAssetCount(); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - boolean containsCORETelemetryByAsset( - java.lang.String key); - /** - * Use {@link #getCORETelemetryByAssetMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCORETelemetryByAsset(); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - java.util.Map - getCORETelemetryByAssetMap(); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( - java.lang.String key); - /** - * Use {@link #getCORETelemetryByAssetValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCORETelemetryByAssetValue(); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - java.util.Map - getCORETelemetryByAssetValueMap(); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - int getCORETelemetryByAssetValueOrDefault( - java.lang.String key, - int defaultValue); - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - int getCORETelemetryByAssetValueOrThrow( - java.lang.String key); - - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return A list containing the prebuiltEBPFAssets. - */ - java.util.List - getPrebuiltEBPFAssetsList(); - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return The count of prebuiltEBPFAssets. - */ - int getPrebuiltEBPFAssetsCount(); - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index of the element to return. - * @return The prebuiltEBPFAssets at the given index. - */ - java.lang.String getPrebuiltEBPFAssets(int index); - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index of the value to return. - * @return The bytes of the prebuiltEBPFAssets at the given index. - */ - com.google.protobuf.ByteString - getPrebuiltEBPFAssetsBytes(int index); - } - /** - * Protobuf type {@code datadog.process_agent.Connections} - */ - public static final class Connections extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.Connections) - ConnectionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Connections.newBuilder() to construct. - private Connections(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Connections() { - conns_ = java.util.Collections.emptyList(); - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - routes_ = java.util.Collections.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - kernelHeaderFetchResult_ = 0; - prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Connections(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetDns(); - case 6: - return internalGetCompilationTelemetryByAsset(); - case 9: - return internalGetConnTelemetryMap(); - case 11: - return internalGetCORETelemetryByAsset(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Connections.class, datadog.process_agent.ConnectionsOuterClass.Connections.Builder.class); - } - - public static final int CONNS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List conns_; - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - @java.lang.Override - public java.util.List getConnsList() { - return conns_; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - @java.lang.Override - public java.util.List - getConnsOrBuilderList() { - return conns_; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - @java.lang.Override - public int getConnsCount() { - return conns_.size(); - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connection getConns(int index) { - return conns_.get(index); - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnsOrBuilder( - int index) { - return conns_.get(index); - } - - public static final int DNS_FIELD_NUMBER = 2; - private static final class DnsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.DNSEntry> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_DnsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.DNSEntry.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.DNSEntry> dns_; - private com.google.protobuf.MapField - internalGetDns() { - if (dns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsDefaultEntryHolder.defaultEntry); - } - return dns_; - } - public int getDnsCount() { - return internalGetDns().getMap().size(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public boolean containsDns( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetDns().getMap().containsKey(key); - } - /** - * Use {@link #getDnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDns() { - return getDnsMap(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public java.util.Map getDnsMap() { - return internalGetDns().getMap(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSEntry defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CONNTELEMETRY_FIELD_NUMBER = 3; - private datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry connTelemetry_; - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - * @return Whether the connTelemetry field is set. - */ - @java.lang.Override - public boolean hasConnTelemetry() { - return connTelemetry_ != null; - } - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - * @return The connTelemetry. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getConnTelemetry() { - return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } - /** - *
-     * For now, we'll keep emitting telemetry from agents < 7.35
-     * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { - return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } - - public static final int DOMAINS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList domains_; - /** - * repeated string domains = 4; - * @return A list containing the domains. - */ - public com.google.protobuf.ProtocolStringList - getDomainsList() { - return domains_; - } - /** - * repeated string domains = 4; - * @return The count of domains. - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - * repeated string domains = 4; - * @param index The index of the element to return. - * @return The domains at the given index. - */ - public java.lang.String getDomains(int index) { - return domains_.get(index); - } - /** - * repeated string domains = 4; - * @param index The index of the value to return. - * @return The bytes of the domains at the given index. - */ - public com.google.protobuf.ByteString - getDomainsBytes(int index) { - return domains_.getByteString(index); - } - - public static final int ROUTES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List routes_; - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - @java.lang.Override - public java.util.List getRoutesList() { - return routes_; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - @java.lang.Override - public java.util.List - getRoutesOrBuilderList() { - return routes_; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - @java.lang.Override - public int getRoutesCount() { - return routes_.size(); - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { - return routes_.get(index); - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( - int index) { - return routes_.get(index); - } - - public static final int COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER = 6; - private static final class CompilationTelemetryByAssetDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCompilationTelemetryByAsset() { - if (compilationTelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return compilationTelemetryByAsset_; - } - public int getCompilationTelemetryByAssetCount() { - return internalGetCompilationTelemetryByAsset().getMap().size(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public boolean containsCompilationTelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCompilationTelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCompilationTelemetryByAsset() { - return getCompilationTelemetryByAssetMap(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public java.util.Map getCompilationTelemetryByAssetMap() { - return internalGetCompilationTelemetryByAsset().getMap(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int AGENTCONFIGURATION_FIELD_NUMBER = 7; - private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - * @return Whether the agentConfiguration field is set. - */ - @java.lang.Override - public boolean hasAgentConfiguration() { - return agentConfiguration_ != null; - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - * @return The agentConfiguration. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { - return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { - return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } - - public static final int TAGS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 8; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 8; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int CONNTELEMETRYMAP_FIELD_NUMBER = 9; - private static final class ConnTelemetryMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> connTelemetryMap_; - private com.google.protobuf.MapField - internalGetConnTelemetryMap() { - if (connTelemetryMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConnTelemetryMapDefaultEntryHolder.defaultEntry); - } - return connTelemetryMap_; - } - public int getConnTelemetryMapCount() { - return internalGetConnTelemetryMap().getMap().size(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public boolean containsConnTelemetryMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetConnTelemetryMap().getMap().containsKey(key); - } - /** - * Use {@link #getConnTelemetryMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getConnTelemetryMap() { - return getConnTelemetryMapMap(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public java.util.Map getConnTelemetryMapMap() { - return internalGetConnTelemetryMap().getMap(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public long getConnTelemetryMapOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public long getConnTelemetryMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int KERNELHEADERFETCHRESULT_FIELD_NUMBER = 10; - private int kernelHeaderFetchResult_ = 0; - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - @java.lang.Override public int getKernelHeaderFetchResultValue() { - return kernelHeaderFetchResult_; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return The kernelHeaderFetchResult. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; - } - - public static final int CORETELEMETRYBYASSET_FIELD_NUMBER = 11; - private static final class CORETelemetryByAssetDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - datadog.process_agent.ConnectionsOuterClass.COREResult.SuccessCustomBTF.getNumber()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> cORETelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCORETelemetryByAsset() { - if (cORETelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return cORETelemetryByAsset_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.COREResult> cORETelemetryByAssetValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - datadog.process_agent.ConnectionsOuterClass.COREResult.internalGetValueMap(), - datadog.process_agent.ConnectionsOuterClass.COREResult.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedCORETelemetryByAssetMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.COREResult, java.lang.Integer>( - map, cORETelemetryByAssetValueConverter); - } - public int getCORETelemetryByAssetCount() { - return internalGetCORETelemetryByAsset().getMap().size(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public boolean containsCORETelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCORETelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCORETelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAsset() { - return getCORETelemetryByAssetMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetMap() { - return internalGetAdaptedCORETelemetryByAssetMap( - internalGetCORETelemetryByAsset().getMap());} - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) - ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return cORETelemetryByAssetValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getCORETelemetryByAssetValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAssetValue() { - return getCORETelemetryByAssetValueMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetValueMap() { - return internalGetCORETelemetryByAsset().getMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PREBUILTEBPFASSETS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList prebuiltEBPFAssets_; - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return A list containing the prebuiltEBPFAssets. - */ - public com.google.protobuf.ProtocolStringList - getPrebuiltEBPFAssetsList() { - return prebuiltEBPFAssets_; - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return The count of prebuiltEBPFAssets. - */ - public int getPrebuiltEBPFAssetsCount() { - return prebuiltEBPFAssets_.size(); - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index of the element to return. - * @return The prebuiltEBPFAssets at the given index. - */ - public java.lang.String getPrebuiltEBPFAssets(int index) { - return prebuiltEBPFAssets_.get(index); - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index of the value to return. - * @return The bytes of the prebuiltEBPFAssets at the given index. - */ - public com.google.protobuf.ByteString - getPrebuiltEBPFAssetsBytes(int index) { - return prebuiltEBPFAssets_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < conns_.size(); i++) { - output.writeMessage(1, conns_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDns(), - DnsDefaultEntryHolder.defaultEntry, - 2); - if (connTelemetry_ != null) { - output.writeMessage(3, getConnTelemetry()); - } - for (int i = 0; i < domains_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, domains_.getRaw(i)); - } - for (int i = 0; i < routes_.size(); i++) { - output.writeMessage(5, routes_.get(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCompilationTelemetryByAsset(), - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry, - 6); - if (agentConfiguration_ != null) { - output.writeMessage(7, getAgentConfiguration()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetConnTelemetryMap(), - ConnTelemetryMapDefaultEntryHolder.defaultEntry, - 9); - if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { - output.writeEnum(10, kernelHeaderFetchResult_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCORETelemetryByAsset(), - CORETelemetryByAssetDefaultEntryHolder.defaultEntry, - 11); - for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, prebuiltEBPFAssets_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < conns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, conns_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetDns().getMap().entrySet()) { - com.google.protobuf.MapEntry - dns__ = DnsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dns__); - } - if (connTelemetry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnTelemetry()); - } - { - int dataSize = 0; - for (int i = 0; i < domains_.size(); i++) { - dataSize += computeStringSizeNoTag(domains_.getRaw(i)); - } - size += dataSize; - size += 1 * getDomainsList().size(); - } - for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, routes_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetCompilationTelemetryByAsset().getMap().entrySet()) { - com.google.protobuf.MapEntry - compilationTelemetryByAsset__ = CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, compilationTelemetryByAsset__); - } - if (agentConfiguration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAgentConfiguration()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - for (java.util.Map.Entry entry - : internalGetConnTelemetryMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - connTelemetryMap__ = ConnTelemetryMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, connTelemetryMap__); - } - if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, kernelHeaderFetchResult_); - } - for (java.util.Map.Entry entry - : internalGetCORETelemetryByAsset().getMap().entrySet()) { - com.google.protobuf.MapEntry - cORETelemetryByAsset__ = CORETelemetryByAssetDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, cORETelemetryByAsset__); - } - { - int dataSize = 0; - for (int i = 0; i < prebuiltEBPFAssets_.size(); i++) { - dataSize += computeStringSizeNoTag(prebuiltEBPFAssets_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrebuiltEBPFAssetsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Connections)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.Connections other = (datadog.process_agent.ConnectionsOuterClass.Connections) obj; - - if (!getConnsList() - .equals(other.getConnsList())) return false; - if (!internalGetDns().equals( - other.internalGetDns())) return false; - if (hasConnTelemetry() != other.hasConnTelemetry()) return false; - if (hasConnTelemetry()) { - if (!getConnTelemetry() - .equals(other.getConnTelemetry())) return false; - } - if (!getDomainsList() - .equals(other.getDomainsList())) return false; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; - if (!internalGetCompilationTelemetryByAsset().equals( - other.internalGetCompilationTelemetryByAsset())) return false; - if (hasAgentConfiguration() != other.hasAgentConfiguration()) return false; - if (hasAgentConfiguration()) { - if (!getAgentConfiguration() - .equals(other.getAgentConfiguration())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!internalGetConnTelemetryMap().equals( - other.internalGetConnTelemetryMap())) return false; - if (kernelHeaderFetchResult_ != other.kernelHeaderFetchResult_) return false; - if (!internalGetCORETelemetryByAsset().equals( - other.internalGetCORETelemetryByAsset())) return false; - if (!getPrebuiltEBPFAssetsList() - .equals(other.getPrebuiltEBPFAssetsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getConnsCount() > 0) { - hash = (37 * hash) + CONNS_FIELD_NUMBER; - hash = (53 * hash) + getConnsList().hashCode(); - } - if (!internalGetDns().getMap().isEmpty()) { - hash = (37 * hash) + DNS_FIELD_NUMBER; - hash = (53 * hash) + internalGetDns().hashCode(); - } - if (hasConnTelemetry()) { - hash = (37 * hash) + CONNTELEMETRY_FIELD_NUMBER; - hash = (53 * hash) + getConnTelemetry().hashCode(); - } - if (getDomainsCount() > 0) { - hash = (37 * hash) + DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + getDomainsList().hashCode(); - } - if (getRoutesCount() > 0) { - hash = (37 * hash) + ROUTES_FIELD_NUMBER; - hash = (53 * hash) + getRoutesList().hashCode(); - } - if (!internalGetCompilationTelemetryByAsset().getMap().isEmpty()) { - hash = (37 * hash) + COMPILATIONTELEMETRYBYASSET_FIELD_NUMBER; - hash = (53 * hash) + internalGetCompilationTelemetryByAsset().hashCode(); - } - if (hasAgentConfiguration()) { - hash = (37 * hash) + AGENTCONFIGURATION_FIELD_NUMBER; - hash = (53 * hash) + getAgentConfiguration().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (!internalGetConnTelemetryMap().getMap().isEmpty()) { - hash = (37 * hash) + CONNTELEMETRYMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetConnTelemetryMap().hashCode(); - } - hash = (37 * hash) + KERNELHEADERFETCHRESULT_FIELD_NUMBER; - hash = (53 * hash) + kernelHeaderFetchResult_; - if (!internalGetCORETelemetryByAsset().getMap().isEmpty()) { - hash = (37 * hash) + CORETELEMETRYBYASSET_FIELD_NUMBER; - hash = (53 * hash) + internalGetCORETelemetryByAsset().hashCode(); - } - if (getPrebuiltEBPFAssetsCount() > 0) { - hash = (37 * hash) + PREBUILTEBPFASSETS_FIELD_NUMBER; - hash = (53 * hash) + getPrebuiltEBPFAssetsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Connections parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Connections prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.Connections} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.Connections) - datadog.process_agent.ConnectionsOuterClass.ConnectionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetDns(); - case 6: - return internalGetCompilationTelemetryByAsset(); - case 9: - return internalGetConnTelemetryMap(); - case 11: - return internalGetCORETelemetryByAsset(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableDns(); - case 6: - return internalGetMutableCompilationTelemetryByAsset(); - case 9: - return internalGetMutableConnTelemetryMap(); - case 11: - return internalGetMutableCORETelemetryByAsset(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Connections.class, datadog.process_agent.ConnectionsOuterClass.Connections.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.Connections.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (connsBuilder_ == null) { - conns_ = java.util.Collections.emptyList(); - } else { - conns_ = null; - connsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableDns().clear(); - connTelemetry_ = null; - if (connTelemetryBuilder_ != null) { - connTelemetryBuilder_.dispose(); - connTelemetryBuilder_ = null; - } - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (routesBuilder_ == null) { - routes_ = java.util.Collections.emptyList(); - } else { - routes_ = null; - routesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableCompilationTelemetryByAsset().clear(); - agentConfiguration_ = null; - if (agentConfigurationBuilder_ != null) { - agentConfigurationBuilder_.dispose(); - agentConfigurationBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableConnTelemetryMap().clear(); - kernelHeaderFetchResult_ = 0; - internalGetMutableCORETelemetryByAsset().clear(); - prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connections_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connections getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.Connections.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connections build() { - datadog.process_agent.ConnectionsOuterClass.Connections result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connections buildPartial() { - datadog.process_agent.ConnectionsOuterClass.Connections result = new datadog.process_agent.ConnectionsOuterClass.Connections(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.Connections result) { - if (connsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - conns_ = java.util.Collections.unmodifiableList(conns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.conns_ = conns_; - } else { - result.conns_ = connsBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - domains_ = domains_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.domains_ = domains_; - if (routesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - routes_ = java.util.Collections.unmodifiableList(routes_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.routes_ = routes_; - } else { - result.routes_ = routesBuilder_.build(); - } - if (((bitField0_ & 0x00000080) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.tags_ = tags_; - if (((bitField0_ & 0x00000800) != 0)) { - prebuiltEBPFAssets_ = prebuiltEBPFAssets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.prebuiltEBPFAssets_ = prebuiltEBPFAssets_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Connections result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dns_ = internalGetDns(); - result.dns_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.connTelemetry_ = connTelemetryBuilder_ == null - ? connTelemetry_ - : connTelemetryBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.compilationTelemetryByAsset_ = internalGetCompilationTelemetryByAsset(); - result.compilationTelemetryByAsset_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.agentConfiguration_ = agentConfigurationBuilder_ == null - ? agentConfiguration_ - : agentConfigurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.connTelemetryMap_ = internalGetConnTelemetryMap(); - result.connTelemetryMap_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.kernelHeaderFetchResult_ = kernelHeaderFetchResult_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.cORETelemetryByAsset_ = internalGetCORETelemetryByAsset(); - result.cORETelemetryByAsset_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.Connections) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Connections)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Connections other) { - if (other == datadog.process_agent.ConnectionsOuterClass.Connections.getDefaultInstance()) return this; - if (connsBuilder_ == null) { - if (!other.conns_.isEmpty()) { - if (conns_.isEmpty()) { - conns_ = other.conns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConnsIsMutable(); - conns_.addAll(other.conns_); - } - onChanged(); - } - } else { - if (!other.conns_.isEmpty()) { - if (connsBuilder_.isEmpty()) { - connsBuilder_.dispose(); - connsBuilder_ = null; - conns_ = other.conns_; - bitField0_ = (bitField0_ & ~0x00000001); - connsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnsFieldBuilder() : null; - } else { - connsBuilder_.addAllMessages(other.conns_); - } - } - } - internalGetMutableDns().mergeFrom( - other.internalGetDns()); - bitField0_ |= 0x00000002; - if (other.hasConnTelemetry()) { - mergeConnTelemetry(other.getConnTelemetry()); - } - if (!other.domains_.isEmpty()) { - if (domains_.isEmpty()) { - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDomainsIsMutable(); - domains_.addAll(other.domains_); - } - onChanged(); - } - if (routesBuilder_ == null) { - if (!other.routes_.isEmpty()) { - if (routes_.isEmpty()) { - routes_ = other.routes_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureRoutesIsMutable(); - routes_.addAll(other.routes_); - } - onChanged(); - } - } else { - if (!other.routes_.isEmpty()) { - if (routesBuilder_.isEmpty()) { - routesBuilder_.dispose(); - routesBuilder_ = null; - routes_ = other.routes_; - bitField0_ = (bitField0_ & ~0x00000010); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRoutesFieldBuilder() : null; - } else { - routesBuilder_.addAllMessages(other.routes_); - } - } - } - internalGetMutableCompilationTelemetryByAsset().mergeFrom( - other.internalGetCompilationTelemetryByAsset()); - bitField0_ |= 0x00000020; - if (other.hasAgentConfiguration()) { - mergeAgentConfiguration(other.getAgentConfiguration()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - internalGetMutableConnTelemetryMap().mergeFrom( - other.internalGetConnTelemetryMap()); - bitField0_ |= 0x00000100; - if (other.kernelHeaderFetchResult_ != 0) { - setKernelHeaderFetchResultValue(other.getKernelHeaderFetchResultValue()); - } - internalGetMutableCORETelemetryByAsset().mergeFrom( - other.internalGetCORETelemetryByAsset()); - bitField0_ |= 0x00000400; - if (!other.prebuiltEBPFAssets_.isEmpty()) { - if (prebuiltEBPFAssets_.isEmpty()) { - prebuiltEBPFAssets_ = other.prebuiltEBPFAssets_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.addAll(other.prebuiltEBPFAssets_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - datadog.process_agent.ConnectionsOuterClass.Connection m = - input.readMessage( - datadog.process_agent.ConnectionsOuterClass.Connection.parser(), - extensionRegistry); - if (connsBuilder_ == null) { - ensureConnsIsMutable(); - conns_.add(m); - } else { - connsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - dns__ = input.readMessage( - DnsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDns().getMutableMap().put( - dns__.getKey(), dns__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getConnTelemetryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDomainsIsMutable(); - domains_.add(s); - break; - } // case 34 - case 42: { - datadog.process_agent.ConnectionsOuterClass.Route m = - input.readMessage( - datadog.process_agent.ConnectionsOuterClass.Route.parser(), - extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - compilationTelemetryByAsset__ = input.readMessage( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCompilationTelemetryByAsset().getMutableMap().put( - compilationTelemetryByAsset__.getKey(), compilationTelemetryByAsset__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getAgentConfigurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 66 - case 74: { - com.google.protobuf.MapEntry - connTelemetryMap__ = input.readMessage( - ConnTelemetryMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableConnTelemetryMap().getMutableMap().put( - connTelemetryMap__.getKey(), connTelemetryMap__.getValue()); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 80: { - kernelHeaderFetchResult_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - com.google.protobuf.MapEntry - cORETelemetryByAsset__ = input.readMessage( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCORETelemetryByAsset().getMutableMap().put( - cORETelemetryByAsset__.getKey(), cORETelemetryByAsset__.getValue()); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.add(s); - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List conns_ = - java.util.Collections.emptyList(); - private void ensureConnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - conns_ = new java.util.ArrayList(conns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> connsBuilder_; - - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public java.util.List getConnsList() { - if (connsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conns_); - } else { - return connsBuilder_.getMessageList(); - } - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public int getConnsCount() { - if (connsBuilder_ == null) { - return conns_.size(); - } else { - return connsBuilder_.getCount(); - } - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection getConns(int index) { - if (connsBuilder_ == null) { - return conns_.get(index); - } else { - return connsBuilder_.getMessage(index); - } - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder setConns( - int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { - if (connsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnsIsMutable(); - conns_.set(index, value); - onChanged(); - } else { - connsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder setConns( - int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { - if (connsBuilder_ == null) { - ensureConnsIsMutable(); - conns_.set(index, builderForValue.build()); - onChanged(); - } else { - connsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder addConns(datadog.process_agent.ConnectionsOuterClass.Connection value) { - if (connsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnsIsMutable(); - conns_.add(value); - onChanged(); - } else { - connsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder addConns( - int index, datadog.process_agent.ConnectionsOuterClass.Connection value) { - if (connsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnsIsMutable(); - conns_.add(index, value); - onChanged(); - } else { - connsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder addConns( - datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { - if (connsBuilder_ == null) { - ensureConnsIsMutable(); - conns_.add(builderForValue.build()); - onChanged(); - } else { - connsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder addConns( - int index, datadog.process_agent.ConnectionsOuterClass.Connection.Builder builderForValue) { - if (connsBuilder_ == null) { - ensureConnsIsMutable(); - conns_.add(index, builderForValue.build()); - onChanged(); - } else { - connsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder addAllConns( - java.lang.Iterable values) { - if (connsBuilder_ == null) { - ensureConnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conns_); - onChanged(); - } else { - connsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder clearConns() { - if (connsBuilder_ == null) { - conns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - connsBuilder_.clear(); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public Builder removeConns(int index) { - if (connsBuilder_ == null) { - ensureConnsIsMutable(); - conns_.remove(index); - onChanged(); - } else { - connsBuilder_.remove(index); - } - return this; - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection.Builder getConnsBuilder( - int index) { - return getConnsFieldBuilder().getBuilder(index); - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder getConnsOrBuilder( - int index) { - if (connsBuilder_ == null) { - return conns_.get(index); } else { - return connsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public java.util.List - getConnsOrBuilderList() { - if (connsBuilder_ != null) { - return connsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conns_); - } - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnsBuilder() { - return getConnsFieldBuilder().addBuilder( - datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.Connection.Builder addConnsBuilder( - int index) { - return getConnsFieldBuilder().addBuilder( - index, datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Connection conns = 1; - */ - public java.util.List - getConnsBuilderList() { - return getConnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder> - getConnsFieldBuilder() { - if (connsBuilder_ == null) { - connsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Connection, datadog.process_agent.ConnectionsOuterClass.Connection.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder>( - conns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - conns_ = null; - } - return connsBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.DNSEntry> dns_; - private com.google.protobuf.MapField - internalGetDns() { - if (dns_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsDefaultEntryHolder.defaultEntry); - } - return dns_; - } - private com.google.protobuf.MapField - internalGetMutableDns() { - if (dns_ == null) { - dns_ = com.google.protobuf.MapField.newMapField( - DnsDefaultEntryHolder.defaultEntry); - } - if (!dns_.isMutable()) { - dns_ = dns_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - return dns_; - } - public int getDnsCount() { - return internalGetDns().getMap().size(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public boolean containsDns( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetDns().getMap().containsKey(key); - } - /** - * Use {@link #getDnsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDns() { - return getDnsMap(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public java.util.Map getDnsMap() { - return internalGetDns().getMap(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSEntry defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDns().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDnsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDns().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDns() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableDns().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - public Builder removeDns( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableDns().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDns() { - bitField0_ |= 0x00000002; - return internalGetMutableDns().getMutableMap(); - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - public Builder putDns( - java.lang.String key, - datadog.process_agent.ConnectionsOuterClass.DNSEntry value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDns().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000002; - return this; - } - /** - * map<string, .datadog.process_agent.DNSEntry> dns = 2; - */ - public Builder putAllDns( - java.util.Map values) { - internalGetMutableDns().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - private datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry connTelemetry_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder> connTelemetryBuilder_; - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - * @return Whether the connTelemetry field is set. - */ - public boolean hasConnTelemetry() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - * @return The connTelemetry. - */ - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getConnTelemetry() { - if (connTelemetryBuilder_ == null) { - return connTelemetry_ == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } else { - return connTelemetryBuilder_.getMessage(); - } - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - public Builder setConnTelemetry(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry value) { - if (connTelemetryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connTelemetry_ = value; - } else { - connTelemetryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - public Builder setConnTelemetry( - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder builderForValue) { - if (connTelemetryBuilder_ == null) { - connTelemetry_ = builderForValue.build(); - } else { - connTelemetryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - public Builder mergeConnTelemetry(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry value) { - if (connTelemetryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - connTelemetry_ != null && - connTelemetry_ != datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance()) { - getConnTelemetryBuilder().mergeFrom(value); - } else { - connTelemetry_ = value; - } - } else { - connTelemetryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - public Builder clearConnTelemetry() { - bitField0_ = (bitField0_ & ~0x00000004); - connTelemetry_ = null; - if (connTelemetryBuilder_ != null) { - connTelemetryBuilder_.dispose(); - connTelemetryBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder getConnTelemetryBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getConnTelemetryFieldBuilder().getBuilder(); - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder getConnTelemetryOrBuilder() { - if (connTelemetryBuilder_ != null) { - return connTelemetryBuilder_.getMessageOrBuilder(); - } else { - return connTelemetry_ == null ? - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance() : connTelemetry_; - } - } - /** - *
-       * For now, we'll keep emitting telemetry from agents < 7.35
-       * 
- * - * .datadog.process_agent.ConnectionsTelemetry connTelemetry = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder> - getConnTelemetryFieldBuilder() { - if (connTelemetryBuilder_ == null) { - connTelemetryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder>( - getConnTelemetry(), - getParentForChildren(), - isClean()); - connTelemetry_ = null; - } - return connTelemetryBuilder_; - } - - private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDomainsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - domains_ = new com.google.protobuf.LazyStringArrayList(domains_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated string domains = 4; - * @return A list containing the domains. - */ - public com.google.protobuf.ProtocolStringList - getDomainsList() { - return domains_.getUnmodifiableView(); - } - /** - * repeated string domains = 4; - * @return The count of domains. - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - * repeated string domains = 4; - * @param index The index of the element to return. - * @return The domains at the given index. - */ - public java.lang.String getDomains(int index) { - return domains_.get(index); - } - /** - * repeated string domains = 4; - * @param index The index of the value to return. - * @return The bytes of the domains at the given index. - */ - public com.google.protobuf.ByteString - getDomainsBytes(int index) { - return domains_.getByteString(index); - } - /** - * repeated string domains = 4; - * @param index The index to set the value at. - * @param value The domains to set. - * @return This builder for chaining. - */ - public Builder setDomains( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureDomainsIsMutable(); - domains_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string domains = 4; - * @param value The domains to add. - * @return This builder for chaining. - */ - public Builder addDomains( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - return this; - } - /** - * repeated string domains = 4; - * @param values The domains to add. - * @return This builder for chaining. - */ - public Builder addAllDomains( - java.lang.Iterable values) { - ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, domains_); - onChanged(); - return this; - } - /** - * repeated string domains = 4; - * @return This builder for chaining. - */ - public Builder clearDomains() { - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * repeated string domains = 4; - * @param value The bytes of the domains to add. - * @return This builder for chaining. - */ - public Builder addDomainsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - return this; - } - - private java.util.List routes_ = - java.util.Collections.emptyList(); - private void ensureRoutesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - routes_ = new java.util.ArrayList(routes_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> routesBuilder_; - - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public java.util.List getRoutesList() { - if (routesBuilder_ == null) { - return java.util.Collections.unmodifiableList(routes_); - } else { - return routesBuilder_.getMessageList(); - } - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public int getRoutesCount() { - if (routesBuilder_ == null) { - return routes_.size(); - } else { - return routesBuilder_.getCount(); - } - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.Route getRoutes(int index) { - if (routesBuilder_ == null) { - return routes_.get(index); - } else { - return routesBuilder_.getMessage(index); - } - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder setRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route value) { - if (routesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutesIsMutable(); - routes_.set(index, value); - onChanged(); - } else { - routesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder setRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.set(index, builderForValue.build()); - onChanged(); - } else { - routesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder addRoutes(datadog.process_agent.ConnectionsOuterClass.Route value) { - if (routesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutesIsMutable(); - routes_.add(value); - onChanged(); - } else { - routesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder addRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route value) { - if (routesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutesIsMutable(); - routes_.add(index, value); - onChanged(); - } else { - routesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder addRoutes( - datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(builderForValue.build()); - onChanged(); - } else { - routesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder addRoutes( - int index, datadog.process_agent.ConnectionsOuterClass.Route.Builder builderForValue) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(index, builderForValue.build()); - onChanged(); - } else { - routesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder addAllRoutes( - java.lang.Iterable values) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, routes_); - onChanged(); - } else { - routesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder clearRoutes() { - if (routesBuilder_ == null) { - routes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - routesBuilder_.clear(); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public Builder removeRoutes(int index) { - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.remove(index); - onChanged(); - } else { - routesBuilder_.remove(index); - } - return this; - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.Route.Builder getRoutesBuilder( - int index) { - return getRoutesFieldBuilder().getBuilder(index); - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder getRoutesOrBuilder( - int index) { - if (routesBuilder_ == null) { - return routes_.get(index); } else { - return routesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public java.util.List - getRoutesOrBuilderList() { - if (routesBuilder_ != null) { - return routesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(routes_); - } - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder().addBuilder( - datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.Route.Builder addRoutesBuilder( - int index) { - return getRoutesFieldBuilder().addBuilder( - index, datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()); - } - /** - * repeated .datadog.process_agent.Route routes = 5; - */ - public java.util.List - getRoutesBuilderList() { - return getRoutesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder> - getRoutesFieldBuilder() { - if (routesBuilder_ == null) { - routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Route, datadog.process_agent.ConnectionsOuterClass.Route.Builder, datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder>( - routes_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - routes_ = null; - } - return routesBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry> compilationTelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCompilationTelemetryByAsset() { - if (compilationTelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return compilationTelemetryByAsset_; - } - private com.google.protobuf.MapField - internalGetMutableCompilationTelemetryByAsset() { - if (compilationTelemetryByAsset_ == null) { - compilationTelemetryByAsset_ = com.google.protobuf.MapField.newMapField( - CompilationTelemetryByAssetDefaultEntryHolder.defaultEntry); - } - if (!compilationTelemetryByAsset_.isMutable()) { - compilationTelemetryByAsset_ = compilationTelemetryByAsset_.copy(); - } - bitField0_ |= 0x00000020; - onChanged(); - return compilationTelemetryByAsset_; - } - public int getCompilationTelemetryByAssetCount() { - return internalGetCompilationTelemetryByAsset().getMap().size(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public boolean containsCompilationTelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCompilationTelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCompilationTelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCompilationTelemetryByAsset() { - return getCompilationTelemetryByAssetMap(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public java.util.Map getCompilationTelemetryByAssetMap() { - return internalGetCompilationTelemetryByAsset().getMap(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getCompilationTelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCompilationTelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearCompilationTelemetryByAsset() { - bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - public Builder removeCompilationTelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCompilationTelemetryByAsset() { - bitField0_ |= 0x00000020; - return internalGetMutableCompilationTelemetryByAsset().getMutableMap(); - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - public Builder putCompilationTelemetryByAsset( - java.lang.String key, - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000020; - return this; - } - /** - * map<string, .datadog.process_agent.RuntimeCompilationTelemetry> compilationTelemetryByAsset = 6; - */ - public Builder putAllCompilationTelemetryByAsset( - java.util.Map values) { - internalGetMutableCompilationTelemetryByAsset().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000020; - return this; - } - - private datadog.process_agent.ConnectionsOuterClass.AgentConfiguration agentConfiguration_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> agentConfigurationBuilder_; - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - * @return Whether the agentConfiguration field is set. - */ - public boolean hasAgentConfiguration() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - * @return The agentConfiguration. - */ - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getAgentConfiguration() { - if (agentConfigurationBuilder_ == null) { - return agentConfiguration_ == null ? datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } else { - return agentConfigurationBuilder_.getMessage(); - } - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - public Builder setAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { - if (agentConfigurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - agentConfiguration_ = value; - } else { - agentConfigurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - public Builder setAgentConfiguration( - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder builderForValue) { - if (agentConfigurationBuilder_ == null) { - agentConfiguration_ = builderForValue.build(); - } else { - agentConfigurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - public Builder mergeAgentConfiguration(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration value) { - if (agentConfigurationBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - agentConfiguration_ != null && - agentConfiguration_ != datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance()) { - getAgentConfigurationBuilder().mergeFrom(value); - } else { - agentConfiguration_ = value; - } - } else { - agentConfigurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - public Builder clearAgentConfiguration() { - bitField0_ = (bitField0_ & ~0x00000040); - agentConfiguration_ = null; - if (agentConfigurationBuilder_ != null) { - agentConfigurationBuilder_.dispose(); - agentConfigurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder getAgentConfigurationBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getAgentConfigurationFieldBuilder().getBuilder(); - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - public datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder getAgentConfigurationOrBuilder() { - if (agentConfigurationBuilder_ != null) { - return agentConfigurationBuilder_.getMessageOrBuilder(); - } else { - return agentConfiguration_ == null ? - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance() : agentConfiguration_; - } - } - /** - * .datadog.process_agent.AgentConfiguration agentConfiguration = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder> - getAgentConfigurationFieldBuilder() { - if (agentConfigurationBuilder_ == null) { - agentConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder, datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder>( - getAgentConfiguration(), - getParentForChildren(), - isClean()); - agentConfiguration_ = null; - } - return agentConfigurationBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000080; - } - } - /** - * repeated string tags = 8; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 8; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 8; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 8; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 8; - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 8; - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 8; - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 8; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * repeated string tags = 8; - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> connTelemetryMap_; - private com.google.protobuf.MapField - internalGetConnTelemetryMap() { - if (connTelemetryMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConnTelemetryMapDefaultEntryHolder.defaultEntry); - } - return connTelemetryMap_; - } - private com.google.protobuf.MapField - internalGetMutableConnTelemetryMap() { - if (connTelemetryMap_ == null) { - connTelemetryMap_ = com.google.protobuf.MapField.newMapField( - ConnTelemetryMapDefaultEntryHolder.defaultEntry); - } - if (!connTelemetryMap_.isMutable()) { - connTelemetryMap_ = connTelemetryMap_.copy(); - } - bitField0_ |= 0x00000100; - onChanged(); - return connTelemetryMap_; - } - public int getConnTelemetryMapCount() { - return internalGetConnTelemetryMap().getMap().size(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public boolean containsConnTelemetryMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetConnTelemetryMap().getMap().containsKey(key); - } - /** - * Use {@link #getConnTelemetryMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getConnTelemetryMap() { - return getConnTelemetryMapMap(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public java.util.Map getConnTelemetryMapMap() { - return internalGetConnTelemetryMap().getMap(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public long getConnTelemetryMapOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - @java.lang.Override - public long getConnTelemetryMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetConnTelemetryMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearConnTelemetryMap() { - bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableConnTelemetryMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - public Builder removeConnTelemetryMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableConnTelemetryMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableConnTelemetryMap() { - bitField0_ |= 0x00000100; - return internalGetMutableConnTelemetryMap().getMutableMap(); - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - public Builder putConnTelemetryMap( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableConnTelemetryMap().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000100; - return this; - } - /** - * map<string, int64> connTelemetryMap = 9; - */ - public Builder putAllConnTelemetryMap( - java.util.Map values) { - internalGetMutableConnTelemetryMap().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000100; - return this; - } - - private int kernelHeaderFetchResult_ = 0; - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - @java.lang.Override public int getKernelHeaderFetchResultValue() { - return kernelHeaderFetchResult_; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @param value The enum numeric value on the wire for kernelHeaderFetchResult to set. - * @return This builder for chaining. - */ - public Builder setKernelHeaderFetchResultValue(int value) { - kernelHeaderFetchResult_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return The kernelHeaderFetchResult. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @param value The kernelHeaderFetchResult to set. - * @return This builder for chaining. - */ - public Builder setKernelHeaderFetchResult(datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - kernelHeaderFetchResult_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 10; - * @return This builder for chaining. - */ - public Builder clearKernelHeaderFetchResult() { - bitField0_ = (bitField0_ & ~0x00000200); - kernelHeaderFetchResult_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> cORETelemetryByAsset_; - private com.google.protobuf.MapField - internalGetCORETelemetryByAsset() { - if (cORETelemetryByAsset_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry); - } - return cORETelemetryByAsset_; - } - private com.google.protobuf.MapField - internalGetMutableCORETelemetryByAsset() { - if (cORETelemetryByAsset_ == null) { - cORETelemetryByAsset_ = com.google.protobuf.MapField.newMapField( - CORETelemetryByAssetDefaultEntryHolder.defaultEntry); - } - if (!cORETelemetryByAsset_.isMutable()) { - cORETelemetryByAsset_ = cORETelemetryByAsset_.copy(); - } - bitField0_ |= 0x00000400; - onChanged(); - return cORETelemetryByAsset_; - } - public int getCORETelemetryByAssetCount() { - return internalGetCORETelemetryByAsset().getMap().size(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public boolean containsCORETelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCORETelemetryByAsset().getMap().containsKey(key); - } - /** - * Use {@link #getCORETelemetryByAssetMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAsset() { - return getCORETelemetryByAssetMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetMap() { - return internalGetAdaptedCORETelemetryByAssetMap( - internalGetCORETelemetryByAsset().getMap());} - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrDefault( - java.lang.String key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.COREResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) - ? cORETelemetryByAssetValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.COREResult getCORETelemetryByAssetOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return cORETelemetryByAssetValueConverter.doForward(map.get(key)); - } - /** - * Use {@link #getCORETelemetryByAssetValueMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCORETelemetryByAssetValue() { - return getCORETelemetryByAssetValueMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public java.util.Map - getCORETelemetryByAssetValueMap() { - return internalGetCORETelemetryByAsset().getMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - @java.lang.Override - public int getCORETelemetryByAssetValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCORETelemetryByAsset().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearCORETelemetryByAsset() { - bitField0_ = (bitField0_ & ~0x00000400); - internalGetMutableCORETelemetryByAsset().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - public Builder removeCORETelemetryByAsset( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCORETelemetryByAsset().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCORETelemetryByAsset() { - bitField0_ |= 0x00000400; - return internalGetAdaptedCORETelemetryByAssetMap( - internalGetMutableCORETelemetryByAsset().getMutableMap()); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - public Builder putCORETelemetryByAsset( - java.lang.String key, - datadog.process_agent.ConnectionsOuterClass.COREResult value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableCORETelemetryByAsset().getMutableMap() - .put(key, cORETelemetryByAssetValueConverter.doBackward(value)); - bitField0_ |= 0x00000400; - return this; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - public Builder putAllCORETelemetryByAsset( - java.util.Map values) { - internalGetAdaptedCORETelemetryByAssetMap( - internalGetMutableCORETelemetryByAsset().getMutableMap()) - .putAll(values); - bitField0_ |= 0x00000400; - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCORETelemetryByAssetValue() { - bitField0_ |= 0x00000400; - return internalGetMutableCORETelemetryByAsset().getMutableMap(); - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - public Builder putCORETelemetryByAssetValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableCORETelemetryByAsset().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000400; - return this; - } - /** - * map<string, .datadog.process_agent.COREResult> CORETelemetryByAsset = 11; - */ - public Builder putAllCORETelemetryByAssetValue( - java.util.Map values) { - internalGetMutableCORETelemetryByAsset().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000400; - return this; - } - - private com.google.protobuf.LazyStringList prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePrebuiltEBPFAssetsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - prebuiltEBPFAssets_ = new com.google.protobuf.LazyStringArrayList(prebuiltEBPFAssets_); - bitField0_ |= 0x00000800; - } - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return A list containing the prebuiltEBPFAssets. - */ - public com.google.protobuf.ProtocolStringList - getPrebuiltEBPFAssetsList() { - return prebuiltEBPFAssets_.getUnmodifiableView(); - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return The count of prebuiltEBPFAssets. - */ - public int getPrebuiltEBPFAssetsCount() { - return prebuiltEBPFAssets_.size(); - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index of the element to return. - * @return The prebuiltEBPFAssets at the given index. - */ - public java.lang.String getPrebuiltEBPFAssets(int index) { - return prebuiltEBPFAssets_.get(index); - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index of the value to return. - * @return The bytes of the prebuiltEBPFAssets at the given index. - */ - public com.google.protobuf.ByteString - getPrebuiltEBPFAssetsBytes(int index) { - return prebuiltEBPFAssets_.getByteString(index); - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param index The index to set the value at. - * @param value The prebuiltEBPFAssets to set. - * @return This builder for chaining. - */ - public Builder setPrebuiltEBPFAssets( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param value The prebuiltEBPFAssets to add. - * @return This builder for chaining. - */ - public Builder addPrebuiltEBPFAssets( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.add(value); - onChanged(); - return this; - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param values The prebuiltEBPFAssets to add. - * @return This builder for chaining. - */ - public Builder addAllPrebuiltEBPFAssets( - java.lang.Iterable values) { - ensurePrebuiltEBPFAssetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, prebuiltEBPFAssets_); - onChanged(); - return this; - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @return This builder for chaining. - */ - public Builder clearPrebuiltEBPFAssets() { - prebuiltEBPFAssets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - * repeated string PrebuiltEBPFAssets = 12; - * @param value The bytes of the prebuiltEBPFAssets to add. - * @return This builder for chaining. - */ - public Builder addPrebuiltEBPFAssetsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensurePrebuiltEBPFAssetsIsMutable(); - prebuiltEBPFAssets_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.Connections) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.Connections) - private static final datadog.process_agent.ConnectionsOuterClass.Connections DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Connections(); - } - - public static datadog.process_agent.ConnectionsOuterClass.Connections getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connections parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connections getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConnectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.Connection) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 pid = 1; - * @return The pid. - */ - int getPid(); - - /** - *
-     * Local address
-     * 
- * - * .datadog.process_agent.Addr laddr = 5; - * @return Whether the laddr field is set. - */ - boolean hasLaddr(); - /** - *
-     * Local address
-     * 
- * - * .datadog.process_agent.Addr laddr = 5; - * @return The laddr. - */ - datadog.process_agent.ConnectionsOuterClass.Addr getLaddr(); - /** - *
-     * Local address
-     * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getLaddrOrBuilder(); - - /** - *
-     * Remote address
-     * 
- * - * .datadog.process_agent.Addr raddr = 6; - * @return Whether the raddr field is set. - */ - boolean hasRaddr(); - /** - *
-     * Remote address
-     * 
- * - * .datadog.process_agent.Addr raddr = 6; - * @return The raddr. - */ - datadog.process_agent.ConnectionsOuterClass.Addr getRaddr(); - /** - *
-     * Remote address
-     * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getRaddrOrBuilder(); - - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return The enum numeric value on the wire for family. - */ - int getFamilyValue(); - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return The family. - */ - datadog.process_agent.ConnectionsOuterClass.ConnectionFamily getFamily(); - - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return The type. - */ - datadog.process_agent.Agent.ConnectionType getType(); - - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return The enum numeric value on the wire for isLocalPortEphemeral. - */ - int getIsLocalPortEphemeralValue(); - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return The isLocalPortEphemeral. - */ - datadog.process_agent.ConnectionsOuterClass.EphemeralPortState getIsLocalPortEphemeral(); - - /** - *
-     * Relative counters since last check
-     * 
- * - * uint64 lastBytesSent = 16; - * @return The lastBytesSent. - */ - long getLastBytesSent(); - - /** - * uint64 lastBytesReceived = 17; - * @return The lastBytesReceived. - */ - long getLastBytesReceived(); - - /** - * uint32 lastRetransmits = 18; - * @return The lastRetransmits. - */ - int getLastRetransmits(); - - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return The enum numeric value on the wire for direction. - */ - int getDirectionValue(); - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return The direction. - */ - datadog.process_agent.ConnectionsOuterClass.ConnectionDirection getDirection(); - - /** - * uint64 lastPacketsSent = 38; - * @return The lastPacketsSent. - */ - long getLastPacketsSent(); - - /** - * uint64 lastPacketsReceived = 39; - * @return The lastPacketsReceived. - */ - long getLastPacketsReceived(); - - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - * @return Whether the protocol field is set. - */ - boolean hasProtocol(); - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - * @return The protocol. - */ - datadog.process_agent.ConnectionsOuterClass.ProtocolStack getProtocol(); - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder getProtocolOrBuilder(); - - /** - *
-     * Network namespace
-     * 
- * - * uint32 netNS = 20; - * @return The netNS. - */ - int getNetNS(); - - /** - *
-     * NetworkID of the remote address (post-resolution field)
-     * 
- * - * string remoteNetworkId = 32; - * @return The remoteNetworkId. - */ - java.lang.String getRemoteNetworkId(); - /** - *
-     * NetworkID of the remote address (post-resolution field)
-     * 
- * - * string remoteNetworkId = 32; - * @return The bytes for remoteNetworkId. - */ - com.google.protobuf.ByteString - getRemoteNetworkIdBytes(); - - /** - *
-     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-     * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - * @return Whether the ipTranslation field is set. - */ - boolean hasIpTranslation(); - /** - *
-     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-     * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - * @return The ipTranslation. - */ - datadog.process_agent.ConnectionsOuterClass.IPTranslation getIpTranslation(); - /** - *
-     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-     * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder getIpTranslationOrBuilder(); - - /** - *
-     * TCP-specific metrics
-     * 
- * - * uint32 rtt = 22; - * @return The rtt. - */ - int getRtt(); - - /** - * uint32 rttVar = 23; - * @return The rttVar. - */ - int getRttVar(); - - /** - *
-     * Indicates that this connection begins and ends on the same host
-     * 
- * - * bool intraHost = 24; - * @return The intraHost. - */ - boolean getIntraHost(); - - /** - *
-     * DNS-specific metrics
-     * 
- * - * uint32 dnsSuccessfulResponses = 25; - * @return The dnsSuccessfulResponses. - */ - int getDnsSuccessfulResponses(); - - /** - * uint32 dnsFailedResponses = 26; - * @return The dnsFailedResponses. - */ - int getDnsFailedResponses(); - - /** - * uint32 dnsTimeouts = 27; - * @return The dnsTimeouts. - */ - int getDnsTimeouts(); - - /** - * uint64 dnsSuccessLatencySum = 28; - * @return The dnsSuccessLatencySum. - */ - long getDnsSuccessLatencySum(); - - /** - * uint64 dnsFailureLatencySum = 29; - * @return The dnsFailureLatencySum. - */ - long getDnsFailureLatencySum(); - - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - int getDnsCountByRcodeCount(); - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - boolean containsDnsCountByRcode( - int key); - /** - * Use {@link #getDnsCountByRcodeMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDnsCountByRcode(); - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - java.util.Map - getDnsCountByRcodeMap(); - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - int getDnsCountByRcodeOrDefault( - int key, - int defaultValue); - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - int getDnsCountByRcodeOrThrow( - int key); - - /** - *
-     * TCP state transition counters relative to last check
-     * 
- * - * uint32 lastTcpEstablished = 30; - * @return The lastTcpEstablished. - */ - int getLastTcpEstablished(); - - /** - * uint32 lastTcpClosed = 31; - * @return The lastTcpClosed. - */ - int getLastTcpClosed(); - - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - int getDnsStatsByDomainCount(); - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - boolean containsDnsStatsByDomain( - int key); - /** - * Use {@link #getDnsStatsByDomainMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDnsStatsByDomain(); - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - java.util.Map - getDnsStatsByDomainMap(); - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue); - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrThrow( - int key); - - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - int getDnsStatsByDomainByQueryTypeCount(); - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - boolean containsDnsStatsByDomainByQueryType( - int key); - /** - * Use {@link #getDnsStatsByDomainByQueryTypeMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDnsStatsByDomainByQueryType(); - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - java.util.Map - getDnsStatsByDomainByQueryTypeMap(); - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue); - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrThrow( - int key); - - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - int getDnsStatsByDomainOffsetByQueryTypeCount(); - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - boolean containsDnsStatsByDomainOffsetByQueryType( - int key); - /** - * Use {@link #getDnsStatsByDomainOffsetByQueryTypeMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDnsStatsByDomainOffsetByQueryType(); - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - java.util.Map - getDnsStatsByDomainOffsetByQueryTypeMap(); - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue); - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrThrow( - int key); - - /** - * int32 routeIdx = 36; - * @return The routeIdx. - */ - int getRouteIdx(); - - /** - *
-     * the index of the resolved target of the route (post-resolution field)
-     * 
- * - * int32 routeTargetIdx = 40; - * @return The routeTargetIdx. - */ - int getRouteTargetIdx(); - - /** - *
-     * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
-     * 
- * - * bytes httpAggregations = 37; - * @return The httpAggregations. - */ - com.google.protobuf.ByteString getHttpAggregations(); - - /** - *
-     * The stored values corresponds to an index into the `Connections.tags` field
-     * 
- * - * repeated uint32 tags = 44; - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - *
-     * The stored values corresponds to an index into the `Connections.tags` field
-     * 
- * - * repeated uint32 tags = 44; - * @return The count of tags. - */ - int getTagsCount(); - /** - *
-     * The stored values corresponds to an index into the `Connections.tags` field
-     * 
- * - * repeated uint32 tags = 44; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - int getTags(int index); - - /** - *
-     * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
-     * 
- * - * int32 tagsIdx = 45; - * @return The tagsIdx. - */ - int getTagsIdx(); - - /** - *
-     * 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.
-     * 
- * - * uint32 tagsChecksum = 47; - * @return The tagsChecksum. - */ - int getTagsChecksum(); - - /** - *
-     * Used for offset state management (backend)
-     * 
- * - * uint32 stateIndex = 46; - * @return The stateIndex. - */ - int getStateIndex(); - - /** - *
-     * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
-     * 
- * - * bytes dataStreamsAggregations = 49; - * @return The dataStreamsAggregations. - */ - com.google.protobuf.ByteString getDataStreamsAggregations(); - - /** - *
-     * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
-     * 
- * - * bytes http2Aggregations = 50; - * @return The http2Aggregations. - */ - com.google.protobuf.ByteString getHttp2Aggregations(); - } - /** - * Protobuf type {@code datadog.process_agent.Connection} - */ - public static final class Connection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.Connection) - ConnectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Connection.newBuilder() to construct. - private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Connection() { - family_ = 0; - type_ = 0; - isLocalPortEphemeral_ = 0; - direction_ = 0; - remoteNetworkId_ = ""; - httpAggregations_ = com.google.protobuf.ByteString.EMPTY; - tags_ = emptyIntList(); - dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; - http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Connection(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 33: - return internalGetDnsCountByRcode(); - case 34: - return internalGetDnsStatsByDomain(); - case 42: - return internalGetDnsStatsByDomainByQueryType(); - case 43: - return internalGetDnsStatsByDomainOffsetByQueryType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Connection.class, datadog.process_agent.ConnectionsOuterClass.Connection.Builder.class); - } - - public static final int PID_FIELD_NUMBER = 1; - private int pid_ = 0; - /** - * int32 pid = 1; - * @return The pid. - */ - @java.lang.Override - public int getPid() { - return pid_; - } - - public static final int LADDR_FIELD_NUMBER = 5; - private datadog.process_agent.ConnectionsOuterClass.Addr laddr_; - /** - *
-     * Local address
-     * 
- * - * .datadog.process_agent.Addr laddr = 5; - * @return Whether the laddr field is set. - */ - @java.lang.Override - public boolean hasLaddr() { - return laddr_ != null; - } - /** - *
-     * Local address
-     * 
- * - * .datadog.process_agent.Addr laddr = 5; - * @return The laddr. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Addr getLaddr() { - return laddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; - } - /** - *
-     * Local address
-     * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getLaddrOrBuilder() { - return laddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; - } - - public static final int RADDR_FIELD_NUMBER = 6; - private datadog.process_agent.ConnectionsOuterClass.Addr raddr_; - /** - *
-     * Remote address
-     * 
- * - * .datadog.process_agent.Addr raddr = 6; - * @return Whether the raddr field is set. - */ - @java.lang.Override - public boolean hasRaddr() { - return raddr_ != null; - } - /** - *
-     * Remote address
-     * 
- * - * .datadog.process_agent.Addr raddr = 6; - * @return The raddr. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Addr getRaddr() { - return raddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; - } - /** - *
-     * Remote address
-     * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getRaddrOrBuilder() { - return raddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; - } - - public static final int FAMILY_FIELD_NUMBER = 10; - private int family_ = 0; - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return The enum numeric value on the wire for family. - */ - @java.lang.Override public int getFamilyValue() { - return family_; - } - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return The family. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.ConnectionFamily getFamily() { - datadog.process_agent.ConnectionsOuterClass.ConnectionFamily result = datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.forNumber(family_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.UNRECOGNIZED : result; - } - - public static final int TYPE_FIELD_NUMBER = 11; - private int type_ = 0; - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return The type. - */ - @java.lang.Override public datadog.process_agent.Agent.ConnectionType getType() { - datadog.process_agent.Agent.ConnectionType result = datadog.process_agent.Agent.ConnectionType.forNumber(type_); - return result == null ? datadog.process_agent.Agent.ConnectionType.UNRECOGNIZED : result; - } - - public static final int ISLOCALPORTEPHEMERAL_FIELD_NUMBER = 41; - private int isLocalPortEphemeral_ = 0; - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return The enum numeric value on the wire for isLocalPortEphemeral. - */ - @java.lang.Override public int getIsLocalPortEphemeralValue() { - return isLocalPortEphemeral_; - } - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return The isLocalPortEphemeral. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.EphemeralPortState getIsLocalPortEphemeral() { - datadog.process_agent.ConnectionsOuterClass.EphemeralPortState result = datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.forNumber(isLocalPortEphemeral_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.UNRECOGNIZED : result; - } - - public static final int LASTBYTESSENT_FIELD_NUMBER = 16; - private long lastBytesSent_ = 0L; - /** - *
-     * Relative counters since last check
-     * 
- * - * uint64 lastBytesSent = 16; - * @return The lastBytesSent. - */ - @java.lang.Override - public long getLastBytesSent() { - return lastBytesSent_; - } - - public static final int LASTBYTESRECEIVED_FIELD_NUMBER = 17; - private long lastBytesReceived_ = 0L; - /** - * uint64 lastBytesReceived = 17; - * @return The lastBytesReceived. - */ - @java.lang.Override - public long getLastBytesReceived() { - return lastBytesReceived_; - } - - public static final int LASTRETRANSMITS_FIELD_NUMBER = 18; - private int lastRetransmits_ = 0; - /** - * uint32 lastRetransmits = 18; - * @return The lastRetransmits. - */ - @java.lang.Override - public int getLastRetransmits() { - return lastRetransmits_; - } - - public static final int DIRECTION_FIELD_NUMBER = 19; - private int direction_ = 0; - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return The enum numeric value on the wire for direction. - */ - @java.lang.Override public int getDirectionValue() { - return direction_; - } - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return The direction. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.ConnectionDirection getDirection() { - datadog.process_agent.ConnectionsOuterClass.ConnectionDirection result = datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.forNumber(direction_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.UNRECOGNIZED : result; - } - - public static final int LASTPACKETSSENT_FIELD_NUMBER = 38; - private long lastPacketsSent_ = 0L; - /** - * uint64 lastPacketsSent = 38; - * @return The lastPacketsSent. - */ - @java.lang.Override - public long getLastPacketsSent() { - return lastPacketsSent_; - } - - public static final int LASTPACKETSRECEIVED_FIELD_NUMBER = 39; - private long lastPacketsReceived_ = 0L; - /** - * uint64 lastPacketsReceived = 39; - * @return The lastPacketsReceived. - */ - @java.lang.Override - public long getLastPacketsReceived() { - return lastPacketsReceived_; - } - - public static final int PROTOCOL_FIELD_NUMBER = 48; - private datadog.process_agent.ConnectionsOuterClass.ProtocolStack protocol_; - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - * @return Whether the protocol field is set. - */ - @java.lang.Override - public boolean hasProtocol() { - return protocol_ != null; - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - * @return The protocol. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getProtocol() { - return protocol_ == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder getProtocolOrBuilder() { - return protocol_ == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; - } - - public static final int NETNS_FIELD_NUMBER = 20; - private int netNS_ = 0; - /** - *
-     * Network namespace
-     * 
- * - * uint32 netNS = 20; - * @return The netNS. - */ - @java.lang.Override - public int getNetNS() { - return netNS_; - } - - public static final int REMOTENETWORKID_FIELD_NUMBER = 32; - @SuppressWarnings("serial") - private volatile java.lang.Object remoteNetworkId_ = ""; - /** - *
-     * NetworkID of the remote address (post-resolution field)
-     * 
- * - * string remoteNetworkId = 32; - * @return The remoteNetworkId. - */ - @java.lang.Override - public java.lang.String getRemoteNetworkId() { - java.lang.Object ref = remoteNetworkId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteNetworkId_ = s; - return s; - } - } - /** - *
-     * NetworkID of the remote address (post-resolution field)
-     * 
- * - * string remoteNetworkId = 32; - * @return The bytes for remoteNetworkId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemoteNetworkIdBytes() { - java.lang.Object ref = remoteNetworkId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remoteNetworkId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IPTRANSLATION_FIELD_NUMBER = 21; - private datadog.process_agent.ConnectionsOuterClass.IPTranslation ipTranslation_; - /** - *
-     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-     * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - * @return Whether the ipTranslation field is set. - */ - @java.lang.Override - public boolean hasIpTranslation() { - return ipTranslation_ != null; - } - /** - *
-     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-     * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - * @return The ipTranslation. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.IPTranslation getIpTranslation() { - return ipTranslation_ == null ? datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; - } - /** - *
-     * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-     * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder getIpTranslationOrBuilder() { - return ipTranslation_ == null ? datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; - } - - public static final int RTT_FIELD_NUMBER = 22; - private int rtt_ = 0; - /** - *
-     * TCP-specific metrics
-     * 
- * - * uint32 rtt = 22; - * @return The rtt. - */ - @java.lang.Override - public int getRtt() { - return rtt_; - } - - public static final int RTTVAR_FIELD_NUMBER = 23; - private int rttVar_ = 0; - /** - * uint32 rttVar = 23; - * @return The rttVar. - */ - @java.lang.Override - public int getRttVar() { - return rttVar_; - } - - public static final int INTRAHOST_FIELD_NUMBER = 24; - private boolean intraHost_ = false; - /** - *
-     * Indicates that this connection begins and ends on the same host
-     * 
- * - * bool intraHost = 24; - * @return The intraHost. - */ - @java.lang.Override - public boolean getIntraHost() { - return intraHost_; - } - - public static final int DNSSUCCESSFULRESPONSES_FIELD_NUMBER = 25; - private int dnsSuccessfulResponses_ = 0; - /** - *
-     * DNS-specific metrics
-     * 
- * - * uint32 dnsSuccessfulResponses = 25; - * @return The dnsSuccessfulResponses. - */ - @java.lang.Override - public int getDnsSuccessfulResponses() { - return dnsSuccessfulResponses_; - } - - public static final int DNSFAILEDRESPONSES_FIELD_NUMBER = 26; - private int dnsFailedResponses_ = 0; - /** - * uint32 dnsFailedResponses = 26; - * @return The dnsFailedResponses. - */ - @java.lang.Override - public int getDnsFailedResponses() { - return dnsFailedResponses_; - } - - public static final int DNSTIMEOUTS_FIELD_NUMBER = 27; - private int dnsTimeouts_ = 0; - /** - * uint32 dnsTimeouts = 27; - * @return The dnsTimeouts. - */ - @java.lang.Override - public int getDnsTimeouts() { - return dnsTimeouts_; - } - - public static final int DNSSUCCESSLATENCYSUM_FIELD_NUMBER = 28; - private long dnsSuccessLatencySum_ = 0L; - /** - * uint64 dnsSuccessLatencySum = 28; - * @return The dnsSuccessLatencySum. - */ - @java.lang.Override - public long getDnsSuccessLatencySum() { - return dnsSuccessLatencySum_; - } - - public static final int DNSFAILURELATENCYSUM_FIELD_NUMBER = 29; - private long dnsFailureLatencySum_ = 0L; - /** - * uint64 dnsFailureLatencySum = 29; - * @return The dnsFailureLatencySum. - */ - @java.lang.Override - public long getDnsFailureLatencySum() { - return dnsFailureLatencySum_; - } - - public static final int DNSCOUNTBYRCODE_FIELD_NUMBER = 33; - private static final class DnsCountByRcodeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> dnsCountByRcode_; - private com.google.protobuf.MapField - internalGetDnsCountByRcode() { - if (dnsCountByRcode_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsCountByRcodeDefaultEntryHolder.defaultEntry); - } - return dnsCountByRcode_; - } - public int getDnsCountByRcodeCount() { - return internalGetDnsCountByRcode().getMap().size(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public boolean containsDnsCountByRcode( - int key) { - - return internalGetDnsCountByRcode().getMap().containsKey(key); - } - /** - * Use {@link #getDnsCountByRcodeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsCountByRcode() { - return getDnsCountByRcodeMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public java.util.Map getDnsCountByRcodeMap() { - return internalGetDnsCountByRcode().getMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public int getDnsCountByRcodeOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public int getDnsCountByRcodeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LASTTCPESTABLISHED_FIELD_NUMBER = 30; - private int lastTcpEstablished_ = 0; - /** - *
-     * TCP state transition counters relative to last check
-     * 
- * - * uint32 lastTcpEstablished = 30; - * @return The lastTcpEstablished. - */ - @java.lang.Override - public int getLastTcpEstablished() { - return lastTcpEstablished_; - } - - public static final int LASTTCPCLOSED_FIELD_NUMBER = 31; - private int lastTcpClosed_ = 0; - /** - * uint32 lastTcpClosed = 31; - * @return The lastTcpClosed. - */ - @java.lang.Override - public int getLastTcpClosed() { - return lastTcpClosed_; - } - - public static final int DNSSTATSBYDOMAIN_FIELD_NUMBER = 34; - private static final class DnsStatsByDomainDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByDomain_; - private com.google.protobuf.MapField - internalGetDnsStatsByDomain() { - if (dnsStatsByDomain_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByDomainDefaultEntryHolder.defaultEntry); - } - return dnsStatsByDomain_; - } - public int getDnsStatsByDomainCount() { - return internalGetDnsStatsByDomain().getMap().size(); - } - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public boolean containsDnsStatsByDomain( - int key) { - - return internalGetDnsStatsByDomain().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByDomainMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByDomain() { - return getDnsStatsByDomainMap(); - } - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public java.util.Map getDnsStatsByDomainMap() { - return internalGetDnsStatsByDomain().getMap(); - } - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { - - java.util.Map map = - internalGetDnsStatsByDomain().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * 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
-     * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByDomain().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DNSSTATSBYDOMAINBYQUERYTYPE_FIELD_NUMBER = 42; - private static final class DnsStatsByDomainByQueryTypeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainByQueryType_; - private com.google.protobuf.MapField - internalGetDnsStatsByDomainByQueryType() { - if (dnsStatsByDomainByQueryType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry); - } - return dnsStatsByDomainByQueryType_; - } - public int getDnsStatsByDomainByQueryTypeCount() { - return internalGetDnsStatsByDomainByQueryType().getMap().size(); - } - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public boolean containsDnsStatsByDomainByQueryType( - int key) { - - return internalGetDnsStatsByDomainByQueryType().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByDomainByQueryTypeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByDomainByQueryType() { - return getDnsStatsByDomainByQueryTypeMap(); - } - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public java.util.Map getDnsStatsByDomainByQueryTypeMap() { - return internalGetDnsStatsByDomainByQueryType().getMap(); - } - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { - - java.util.Map map = - internalGetDnsStatsByDomainByQueryType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * dnsStatsByDomainByQueryType is new field
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByDomainByQueryType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DNSSTATSBYDOMAINOFFSETBYQUERYTYPE_FIELD_NUMBER = 43; - private static final class DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType_; - private com.google.protobuf.MapField - internalGetDnsStatsByDomainOffsetByQueryType() { - if (dnsStatsByDomainOffsetByQueryType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry); - } - return dnsStatsByDomainOffsetByQueryType_; - } - public int getDnsStatsByDomainOffsetByQueryTypeCount() { - return internalGetDnsStatsByDomainOffsetByQueryType().getMap().size(); - } - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public boolean containsDnsStatsByDomainOffsetByQueryType( - int key) { - - return internalGetDnsStatsByDomainOffsetByQueryType().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByDomainOffsetByQueryTypeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByDomainOffsetByQueryType() { - return getDnsStatsByDomainOffsetByQueryTypeMap(); - } - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public java.util.Map getDnsStatsByDomainOffsetByQueryTypeMap() { - return internalGetDnsStatsByDomainOffsetByQueryType().getMap(); - } - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { - - java.util.Map map = - internalGetDnsStatsByDomainOffsetByQueryType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-     * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByDomainOffsetByQueryType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ROUTEIDX_FIELD_NUMBER = 36; - private int routeIdx_ = 0; - /** - * int32 routeIdx = 36; - * @return The routeIdx. - */ - @java.lang.Override - public int getRouteIdx() { - return routeIdx_; - } - - public static final int ROUTETARGETIDX_FIELD_NUMBER = 40; - private int routeTargetIdx_ = 0; - /** - *
-     * the index of the resolved target of the route (post-resolution field)
-     * 
- * - * int32 routeTargetIdx = 40; - * @return The routeTargetIdx. - */ - @java.lang.Override - public int getRouteTargetIdx() { - return routeTargetIdx_; - } - - public static final int HTTPAGGREGATIONS_FIELD_NUMBER = 37; - private com.google.protobuf.ByteString httpAggregations_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
-     * 
- * - * bytes httpAggregations = 37; - * @return The httpAggregations. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHttpAggregations() { - return httpAggregations_; - } - - public static final int TAGS_FIELD_NUMBER = 44; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList tags_; - /** - *
-     * The stored values corresponds to an index into the `Connections.tags` field
-     * 
- * - * repeated uint32 tags = 44; - * @return A list containing the tags. - */ - @java.lang.Override - public java.util.List - getTagsList() { - return tags_; - } - /** - *
-     * The stored values corresponds to an index into the `Connections.tags` field
-     * 
- * - * repeated uint32 tags = 44; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * The stored values corresponds to an index into the `Connections.tags` field
-     * 
- * - * repeated uint32 tags = 44; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public int getTags(int index) { - return tags_.getInt(index); - } - private int tagsMemoizedSerializedSize = -1; - - public static final int TAGSIDX_FIELD_NUMBER = 45; - private int tagsIdx_ = 0; - /** - *
-     * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
-     * 
- * - * int32 tagsIdx = 45; - * @return The tagsIdx. - */ - @java.lang.Override - public int getTagsIdx() { - return tagsIdx_; - } - - public static final int TAGSCHECKSUM_FIELD_NUMBER = 47; - private int tagsChecksum_ = 0; - /** - *
-     * 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.
-     * 
- * - * uint32 tagsChecksum = 47; - * @return The tagsChecksum. - */ - @java.lang.Override - public int getTagsChecksum() { - return tagsChecksum_; - } - - public static final int STATEINDEX_FIELD_NUMBER = 46; - private int stateIndex_ = 0; - /** - *
-     * Used for offset state management (backend)
-     * 
- * - * uint32 stateIndex = 46; - * @return The stateIndex. - */ - @java.lang.Override - public int getStateIndex() { - return stateIndex_; - } - - public static final int DATASTREAMSAGGREGATIONS_FIELD_NUMBER = 49; - private com.google.protobuf.ByteString dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
-     * 
- * - * bytes dataStreamsAggregations = 49; - * @return The dataStreamsAggregations. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDataStreamsAggregations() { - return dataStreamsAggregations_; - } - - public static final int HTTP2AGGREGATIONS_FIELD_NUMBER = 50; - private com.google.protobuf.ByteString http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-     * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
-     * 
- * - * bytes http2Aggregations = 50; - * @return The http2Aggregations. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHttp2Aggregations() { - return http2Aggregations_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (pid_ != 0) { - output.writeInt32(1, pid_); - } - if (laddr_ != null) { - output.writeMessage(5, getLaddr()); - } - if (raddr_ != null) { - output.writeMessage(6, getRaddr()); - } - if (family_ != datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.v4.getNumber()) { - output.writeEnum(10, family_); - } - if (type_ != datadog.process_agent.Agent.ConnectionType.tcp.getNumber()) { - output.writeEnum(11, type_); - } - if (lastBytesSent_ != 0L) { - output.writeUInt64(16, lastBytesSent_); - } - if (lastBytesReceived_ != 0L) { - output.writeUInt64(17, lastBytesReceived_); - } - if (lastRetransmits_ != 0) { - output.writeUInt32(18, lastRetransmits_); - } - if (direction_ != datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.unspecified.getNumber()) { - output.writeEnum(19, direction_); - } - if (netNS_ != 0) { - output.writeUInt32(20, netNS_); - } - if (ipTranslation_ != null) { - output.writeMessage(21, getIpTranslation()); - } - if (rtt_ != 0) { - output.writeUInt32(22, rtt_); - } - if (rttVar_ != 0) { - output.writeUInt32(23, rttVar_); - } - if (intraHost_ != false) { - output.writeBool(24, intraHost_); - } - if (dnsSuccessfulResponses_ != 0) { - output.writeUInt32(25, dnsSuccessfulResponses_); - } - if (dnsFailedResponses_ != 0) { - output.writeUInt32(26, dnsFailedResponses_); - } - if (dnsTimeouts_ != 0) { - output.writeUInt32(27, dnsTimeouts_); - } - if (dnsSuccessLatencySum_ != 0L) { - output.writeUInt64(28, dnsSuccessLatencySum_); - } - if (dnsFailureLatencySum_ != 0L) { - output.writeUInt64(29, dnsFailureLatencySum_); - } - if (lastTcpEstablished_ != 0) { - output.writeUInt32(30, lastTcpEstablished_); - } - if (lastTcpClosed_ != 0) { - output.writeUInt32(31, lastTcpClosed_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteNetworkId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 32, remoteNetworkId_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetDnsCountByRcode(), - DnsCountByRcodeDefaultEntryHolder.defaultEntry, - 33); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetDnsStatsByDomain(), - DnsStatsByDomainDefaultEntryHolder.defaultEntry, - 34); - if (routeIdx_ != 0) { - output.writeInt32(36, routeIdx_); - } - if (!httpAggregations_.isEmpty()) { - output.writeBytes(37, httpAggregations_); - } - if (lastPacketsSent_ != 0L) { - output.writeUInt64(38, lastPacketsSent_); - } - if (lastPacketsReceived_ != 0L) { - output.writeUInt64(39, lastPacketsReceived_); - } - if (routeTargetIdx_ != 0) { - output.writeInt32(40, routeTargetIdx_); - } - if (isLocalPortEphemeral_ != datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.ephemeralUnspecified.getNumber()) { - output.writeEnum(41, isLocalPortEphemeral_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetDnsStatsByDomainByQueryType(), - DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry, - 42); - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetDnsStatsByDomainOffsetByQueryType(), - DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry, - 43); - if (getTagsList().size() > 0) { - output.writeUInt32NoTag(354); - output.writeUInt32NoTag(tagsMemoizedSerializedSize); - } - for (int i = 0; i < tags_.size(); i++) { - output.writeUInt32NoTag(tags_.getInt(i)); - } - if (tagsIdx_ != 0) { - output.writeInt32(45, tagsIdx_); - } - if (stateIndex_ != 0) { - output.writeUInt32(46, stateIndex_); - } - if (tagsChecksum_ != 0) { - output.writeUInt32(47, tagsChecksum_); - } - if (protocol_ != null) { - output.writeMessage(48, getProtocol()); - } - if (!dataStreamsAggregations_.isEmpty()) { - output.writeBytes(49, dataStreamsAggregations_); - } - if (!http2Aggregations_.isEmpty()) { - output.writeBytes(50, http2Aggregations_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pid_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pid_); - } - if (laddr_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLaddr()); - } - if (raddr_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getRaddr()); - } - if (family_ != datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.v4.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, family_); - } - if (type_ != datadog.process_agent.Agent.ConnectionType.tcp.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, type_); - } - if (lastBytesSent_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(16, lastBytesSent_); - } - if (lastBytesReceived_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(17, lastBytesReceived_); - } - if (lastRetransmits_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(18, lastRetransmits_); - } - if (direction_ != datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.unspecified.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(19, direction_); - } - if (netNS_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(20, netNS_); - } - if (ipTranslation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getIpTranslation()); - } - if (rtt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(22, rtt_); - } - if (rttVar_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(23, rttVar_); - } - if (intraHost_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(24, intraHost_); - } - if (dnsSuccessfulResponses_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(25, dnsSuccessfulResponses_); - } - if (dnsFailedResponses_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(26, dnsFailedResponses_); - } - if (dnsTimeouts_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(27, dnsTimeouts_); - } - if (dnsSuccessLatencySum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(28, dnsSuccessLatencySum_); - } - if (dnsFailureLatencySum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(29, dnsFailureLatencySum_); - } - if (lastTcpEstablished_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(30, lastTcpEstablished_); - } - if (lastTcpClosed_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(31, lastTcpClosed_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteNetworkId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, remoteNetworkId_); - } - for (java.util.Map.Entry entry - : internalGetDnsCountByRcode().getMap().entrySet()) { - com.google.protobuf.MapEntry - dnsCountByRcode__ = DnsCountByRcodeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, dnsCountByRcode__); - } - for (java.util.Map.Entry entry - : internalGetDnsStatsByDomain().getMap().entrySet()) { - com.google.protobuf.MapEntry - dnsStatsByDomain__ = DnsStatsByDomainDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, dnsStatsByDomain__); - } - if (routeIdx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(36, routeIdx_); - } - if (!httpAggregations_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(37, httpAggregations_); - } - if (lastPacketsSent_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(38, lastPacketsSent_); - } - if (lastPacketsReceived_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(39, lastPacketsReceived_); - } - if (routeTargetIdx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(40, routeTargetIdx_); - } - if (isLocalPortEphemeral_ != datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.ephemeralUnspecified.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(41, isLocalPortEphemeral_); - } - for (java.util.Map.Entry entry - : internalGetDnsStatsByDomainByQueryType().getMap().entrySet()) { - com.google.protobuf.MapEntry - dnsStatsByDomainByQueryType__ = DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, dnsStatsByDomainByQueryType__); - } - for (java.util.Map.Entry entry - : internalGetDnsStatsByDomainOffsetByQueryType().getMap().entrySet()) { - com.google.protobuf.MapEntry - dnsStatsByDomainOffsetByQueryType__ = DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, dnsStatsByDomainOffsetByQueryType__); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(tags_.getInt(i)); - } - size += dataSize; - if (!getTagsList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - tagsMemoizedSerializedSize = dataSize; - } - if (tagsIdx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(45, tagsIdx_); - } - if (stateIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(46, stateIndex_); - } - if (tagsChecksum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(47, tagsChecksum_); - } - if (protocol_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, getProtocol()); - } - if (!dataStreamsAggregations_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(49, dataStreamsAggregations_); - } - if (!http2Aggregations_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(50, http2Aggregations_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Connection)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.Connection other = (datadog.process_agent.ConnectionsOuterClass.Connection) obj; - - if (getPid() - != other.getPid()) return false; - if (hasLaddr() != other.hasLaddr()) return false; - if (hasLaddr()) { - if (!getLaddr() - .equals(other.getLaddr())) return false; - } - if (hasRaddr() != other.hasRaddr()) return false; - if (hasRaddr()) { - if (!getRaddr() - .equals(other.getRaddr())) return false; - } - if (family_ != other.family_) return false; - if (type_ != other.type_) return false; - if (isLocalPortEphemeral_ != other.isLocalPortEphemeral_) return false; - if (getLastBytesSent() - != other.getLastBytesSent()) return false; - if (getLastBytesReceived() - != other.getLastBytesReceived()) return false; - if (getLastRetransmits() - != other.getLastRetransmits()) return false; - if (direction_ != other.direction_) return false; - if (getLastPacketsSent() - != other.getLastPacketsSent()) return false; - if (getLastPacketsReceived() - != other.getLastPacketsReceived()) return false; - if (hasProtocol() != other.hasProtocol()) return false; - if (hasProtocol()) { - if (!getProtocol() - .equals(other.getProtocol())) return false; - } - if (getNetNS() - != other.getNetNS()) return false; - if (!getRemoteNetworkId() - .equals(other.getRemoteNetworkId())) return false; - if (hasIpTranslation() != other.hasIpTranslation()) return false; - if (hasIpTranslation()) { - if (!getIpTranslation() - .equals(other.getIpTranslation())) return false; - } - if (getRtt() - != other.getRtt()) return false; - if (getRttVar() - != other.getRttVar()) return false; - if (getIntraHost() - != other.getIntraHost()) return false; - if (getDnsSuccessfulResponses() - != other.getDnsSuccessfulResponses()) return false; - if (getDnsFailedResponses() - != other.getDnsFailedResponses()) return false; - if (getDnsTimeouts() - != other.getDnsTimeouts()) return false; - if (getDnsSuccessLatencySum() - != other.getDnsSuccessLatencySum()) return false; - if (getDnsFailureLatencySum() - != other.getDnsFailureLatencySum()) return false; - if (!internalGetDnsCountByRcode().equals( - other.internalGetDnsCountByRcode())) return false; - if (getLastTcpEstablished() - != other.getLastTcpEstablished()) return false; - if (getLastTcpClosed() - != other.getLastTcpClosed()) return false; - if (!internalGetDnsStatsByDomain().equals( - other.internalGetDnsStatsByDomain())) return false; - if (!internalGetDnsStatsByDomainByQueryType().equals( - other.internalGetDnsStatsByDomainByQueryType())) return false; - if (!internalGetDnsStatsByDomainOffsetByQueryType().equals( - other.internalGetDnsStatsByDomainOffsetByQueryType())) return false; - if (getRouteIdx() - != other.getRouteIdx()) return false; - if (getRouteTargetIdx() - != other.getRouteTargetIdx()) return false; - if (!getHttpAggregations() - .equals(other.getHttpAggregations())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getTagsIdx() - != other.getTagsIdx()) return false; - if (getTagsChecksum() - != other.getTagsChecksum()) return false; - if (getStateIndex() - != other.getStateIndex()) return false; - if (!getDataStreamsAggregations() - .equals(other.getDataStreamsAggregations())) return false; - if (!getHttp2Aggregations() - .equals(other.getHttp2Aggregations())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PID_FIELD_NUMBER; - hash = (53 * hash) + getPid(); - if (hasLaddr()) { - hash = (37 * hash) + LADDR_FIELD_NUMBER; - hash = (53 * hash) + getLaddr().hashCode(); - } - if (hasRaddr()) { - hash = (37 * hash) + RADDR_FIELD_NUMBER; - hash = (53 * hash) + getRaddr().hashCode(); - } - hash = (37 * hash) + FAMILY_FIELD_NUMBER; - hash = (53 * hash) + family_; - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + ISLOCALPORTEPHEMERAL_FIELD_NUMBER; - hash = (53 * hash) + isLocalPortEphemeral_; - hash = (37 * hash) + LASTBYTESSENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastBytesSent()); - hash = (37 * hash) + LASTBYTESRECEIVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastBytesReceived()); - hash = (37 * hash) + LASTRETRANSMITS_FIELD_NUMBER; - hash = (53 * hash) + getLastRetransmits(); - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; - hash = (37 * hash) + LASTPACKETSSENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastPacketsSent()); - hash = (37 * hash) + LASTPACKETSRECEIVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastPacketsReceived()); - if (hasProtocol()) { - hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + getProtocol().hashCode(); - } - hash = (37 * hash) + NETNS_FIELD_NUMBER; - hash = (53 * hash) + getNetNS(); - hash = (37 * hash) + REMOTENETWORKID_FIELD_NUMBER; - hash = (53 * hash) + getRemoteNetworkId().hashCode(); - if (hasIpTranslation()) { - hash = (37 * hash) + IPTRANSLATION_FIELD_NUMBER; - hash = (53 * hash) + getIpTranslation().hashCode(); - } - hash = (37 * hash) + RTT_FIELD_NUMBER; - hash = (53 * hash) + getRtt(); - hash = (37 * hash) + RTTVAR_FIELD_NUMBER; - hash = (53 * hash) + getRttVar(); - hash = (37 * hash) + INTRAHOST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIntraHost()); - hash = (37 * hash) + DNSSUCCESSFULRESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getDnsSuccessfulResponses(); - hash = (37 * hash) + DNSFAILEDRESPONSES_FIELD_NUMBER; - hash = (53 * hash) + getDnsFailedResponses(); - hash = (37 * hash) + DNSTIMEOUTS_FIELD_NUMBER; - hash = (53 * hash) + getDnsTimeouts(); - hash = (37 * hash) + DNSSUCCESSLATENCYSUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsSuccessLatencySum()); - hash = (37 * hash) + DNSFAILURELATENCYSUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsFailureLatencySum()); - if (!internalGetDnsCountByRcode().getMap().isEmpty()) { - hash = (37 * hash) + DNSCOUNTBYRCODE_FIELD_NUMBER; - hash = (53 * hash) + internalGetDnsCountByRcode().hashCode(); - } - hash = (37 * hash) + LASTTCPESTABLISHED_FIELD_NUMBER; - hash = (53 * hash) + getLastTcpEstablished(); - hash = (37 * hash) + LASTTCPCLOSED_FIELD_NUMBER; - hash = (53 * hash) + getLastTcpClosed(); - if (!internalGetDnsStatsByDomain().getMap().isEmpty()) { - hash = (37 * hash) + DNSSTATSBYDOMAIN_FIELD_NUMBER; - hash = (53 * hash) + internalGetDnsStatsByDomain().hashCode(); - } - if (!internalGetDnsStatsByDomainByQueryType().getMap().isEmpty()) { - hash = (37 * hash) + DNSSTATSBYDOMAINBYQUERYTYPE_FIELD_NUMBER; - hash = (53 * hash) + internalGetDnsStatsByDomainByQueryType().hashCode(); - } - if (!internalGetDnsStatsByDomainOffsetByQueryType().getMap().isEmpty()) { - hash = (37 * hash) + DNSSTATSBYDOMAINOFFSETBYQUERYTYPE_FIELD_NUMBER; - hash = (53 * hash) + internalGetDnsStatsByDomainOffsetByQueryType().hashCode(); - } - hash = (37 * hash) + ROUTEIDX_FIELD_NUMBER; - hash = (53 * hash) + getRouteIdx(); - hash = (37 * hash) + ROUTETARGETIDX_FIELD_NUMBER; - hash = (53 * hash) + getRouteTargetIdx(); - hash = (37 * hash) + HTTPAGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getHttpAggregations().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (37 * hash) + TAGSIDX_FIELD_NUMBER; - hash = (53 * hash) + getTagsIdx(); - hash = (37 * hash) + TAGSCHECKSUM_FIELD_NUMBER; - hash = (53 * hash) + getTagsChecksum(); - hash = (37 * hash) + STATEINDEX_FIELD_NUMBER; - hash = (53 * hash) + getStateIndex(); - hash = (37 * hash) + DATASTREAMSAGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getDataStreamsAggregations().hashCode(); - hash = (37 * hash) + HTTP2AGGREGATIONS_FIELD_NUMBER; - hash = (53 * hash) + getHttp2Aggregations().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Connection parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Connection prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.Connection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.Connection) - datadog.process_agent.ConnectionsOuterClass.ConnectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 33: - return internalGetDnsCountByRcode(); - case 34: - return internalGetDnsStatsByDomain(); - case 42: - return internalGetDnsStatsByDomainByQueryType(); - case 43: - return internalGetDnsStatsByDomainOffsetByQueryType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 33: - return internalGetMutableDnsCountByRcode(); - case 34: - return internalGetMutableDnsStatsByDomain(); - case 42: - return internalGetMutableDnsStatsByDomainByQueryType(); - case 43: - return internalGetMutableDnsStatsByDomainOffsetByQueryType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Connection.class, datadog.process_agent.ConnectionsOuterClass.Connection.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.Connection.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - pid_ = 0; - laddr_ = null; - if (laddrBuilder_ != null) { - laddrBuilder_.dispose(); - laddrBuilder_ = null; - } - raddr_ = null; - if (raddrBuilder_ != null) { - raddrBuilder_.dispose(); - raddrBuilder_ = null; - } - family_ = 0; - type_ = 0; - isLocalPortEphemeral_ = 0; - lastBytesSent_ = 0L; - lastBytesReceived_ = 0L; - lastRetransmits_ = 0; - direction_ = 0; - lastPacketsSent_ = 0L; - lastPacketsReceived_ = 0L; - protocol_ = null; - if (protocolBuilder_ != null) { - protocolBuilder_.dispose(); - protocolBuilder_ = null; - } - netNS_ = 0; - remoteNetworkId_ = ""; - ipTranslation_ = null; - if (ipTranslationBuilder_ != null) { - ipTranslationBuilder_.dispose(); - ipTranslationBuilder_ = null; - } - rtt_ = 0; - rttVar_ = 0; - intraHost_ = false; - dnsSuccessfulResponses_ = 0; - dnsFailedResponses_ = 0; - dnsTimeouts_ = 0; - dnsSuccessLatencySum_ = 0L; - dnsFailureLatencySum_ = 0L; - internalGetMutableDnsCountByRcode().clear(); - lastTcpEstablished_ = 0; - lastTcpClosed_ = 0; - internalGetMutableDnsStatsByDomain().clear(); - internalGetMutableDnsStatsByDomainByQueryType().clear(); - internalGetMutableDnsStatsByDomainOffsetByQueryType().clear(); - routeIdx_ = 0; - routeTargetIdx_ = 0; - httpAggregations_ = com.google.protobuf.ByteString.EMPTY; - tags_ = emptyIntList(); - tagsIdx_ = 0; - tagsChecksum_ = 0; - stateIndex_ = 0; - dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; - http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Connection_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connection getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connection build() { - datadog.process_agent.ConnectionsOuterClass.Connection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connection buildPartial() { - datadog.process_agent.ConnectionsOuterClass.Connection result = new datadog.process_agent.ConnectionsOuterClass.Connection(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - if (bitField1_ != 0) { buildPartial1(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.Connection result) { - if (((bitField1_ & 0x00000002) != 0)) { - tags_.makeImmutable(); - bitField1_ = (bitField1_ & ~0x00000002); - } - result.tags_ = tags_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Connection result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pid_ = pid_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.laddr_ = laddrBuilder_ == null - ? laddr_ - : laddrBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.raddr_ = raddrBuilder_ == null - ? raddr_ - : raddrBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.family_ = family_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.isLocalPortEphemeral_ = isLocalPortEphemeral_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.lastBytesSent_ = lastBytesSent_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.lastBytesReceived_ = lastBytesReceived_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.lastRetransmits_ = lastRetransmits_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.direction_ = direction_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.lastPacketsSent_ = lastPacketsSent_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.lastPacketsReceived_ = lastPacketsReceived_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.protocol_ = protocolBuilder_ == null - ? protocol_ - : protocolBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.netNS_ = netNS_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.remoteNetworkId_ = remoteNetworkId_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.ipTranslation_ = ipTranslationBuilder_ == null - ? ipTranslation_ - : ipTranslationBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.rtt_ = rtt_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.rttVar_ = rttVar_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.intraHost_ = intraHost_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.dnsSuccessfulResponses_ = dnsSuccessfulResponses_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.dnsFailedResponses_ = dnsFailedResponses_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.dnsTimeouts_ = dnsTimeouts_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.dnsSuccessLatencySum_ = dnsSuccessLatencySum_; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.dnsFailureLatencySum_ = dnsFailureLatencySum_; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.dnsCountByRcode_ = internalGetDnsCountByRcode(); - result.dnsCountByRcode_.makeImmutable(); - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.lastTcpEstablished_ = lastTcpEstablished_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.lastTcpClosed_ = lastTcpClosed_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.dnsStatsByDomain_ = internalGetDnsStatsByDomain(); - result.dnsStatsByDomain_.makeImmutable(); - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.dnsStatsByDomainByQueryType_ = internalGetDnsStatsByDomainByQueryType(); - result.dnsStatsByDomainByQueryType_.makeImmutable(); - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.dnsStatsByDomainOffsetByQueryType_ = internalGetDnsStatsByDomainOffsetByQueryType(); - result.dnsStatsByDomainOffsetByQueryType_.makeImmutable(); - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.routeIdx_ = routeIdx_; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.routeTargetIdx_ = routeTargetIdx_; - } - } - - private void buildPartial1(datadog.process_agent.ConnectionsOuterClass.Connection result) { - int from_bitField1_ = bitField1_; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.httpAggregations_ = httpAggregations_; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.tagsIdx_ = tagsIdx_; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.tagsChecksum_ = tagsChecksum_; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.stateIndex_ = stateIndex_; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.dataStreamsAggregations_ = dataStreamsAggregations_; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.http2Aggregations_ = http2Aggregations_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.Connection) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Connection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Connection other) { - if (other == datadog.process_agent.ConnectionsOuterClass.Connection.getDefaultInstance()) return this; - if (other.getPid() != 0) { - setPid(other.getPid()); - } - if (other.hasLaddr()) { - mergeLaddr(other.getLaddr()); - } - if (other.hasRaddr()) { - mergeRaddr(other.getRaddr()); - } - if (other.family_ != 0) { - setFamilyValue(other.getFamilyValue()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.isLocalPortEphemeral_ != 0) { - setIsLocalPortEphemeralValue(other.getIsLocalPortEphemeralValue()); - } - if (other.getLastBytesSent() != 0L) { - setLastBytesSent(other.getLastBytesSent()); - } - if (other.getLastBytesReceived() != 0L) { - setLastBytesReceived(other.getLastBytesReceived()); - } - if (other.getLastRetransmits() != 0) { - setLastRetransmits(other.getLastRetransmits()); - } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); - } - if (other.getLastPacketsSent() != 0L) { - setLastPacketsSent(other.getLastPacketsSent()); - } - if (other.getLastPacketsReceived() != 0L) { - setLastPacketsReceived(other.getLastPacketsReceived()); - } - if (other.hasProtocol()) { - mergeProtocol(other.getProtocol()); - } - if (other.getNetNS() != 0) { - setNetNS(other.getNetNS()); - } - if (!other.getRemoteNetworkId().isEmpty()) { - remoteNetworkId_ = other.remoteNetworkId_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (other.hasIpTranslation()) { - mergeIpTranslation(other.getIpTranslation()); - } - if (other.getRtt() != 0) { - setRtt(other.getRtt()); - } - if (other.getRttVar() != 0) { - setRttVar(other.getRttVar()); - } - if (other.getIntraHost() != false) { - setIntraHost(other.getIntraHost()); - } - if (other.getDnsSuccessfulResponses() != 0) { - setDnsSuccessfulResponses(other.getDnsSuccessfulResponses()); - } - if (other.getDnsFailedResponses() != 0) { - setDnsFailedResponses(other.getDnsFailedResponses()); - } - if (other.getDnsTimeouts() != 0) { - setDnsTimeouts(other.getDnsTimeouts()); - } - if (other.getDnsSuccessLatencySum() != 0L) { - setDnsSuccessLatencySum(other.getDnsSuccessLatencySum()); - } - if (other.getDnsFailureLatencySum() != 0L) { - setDnsFailureLatencySum(other.getDnsFailureLatencySum()); - } - internalGetMutableDnsCountByRcode().mergeFrom( - other.internalGetDnsCountByRcode()); - bitField0_ |= 0x01000000; - if (other.getLastTcpEstablished() != 0) { - setLastTcpEstablished(other.getLastTcpEstablished()); - } - if (other.getLastTcpClosed() != 0) { - setLastTcpClosed(other.getLastTcpClosed()); - } - internalGetMutableDnsStatsByDomain().mergeFrom( - other.internalGetDnsStatsByDomain()); - bitField0_ |= 0x08000000; - internalGetMutableDnsStatsByDomainByQueryType().mergeFrom( - other.internalGetDnsStatsByDomainByQueryType()); - bitField0_ |= 0x10000000; - internalGetMutableDnsStatsByDomainOffsetByQueryType().mergeFrom( - other.internalGetDnsStatsByDomainOffsetByQueryType()); - bitField0_ |= 0x20000000; - if (other.getRouteIdx() != 0) { - setRouteIdx(other.getRouteIdx()); - } - if (other.getRouteTargetIdx() != 0) { - setRouteTargetIdx(other.getRouteTargetIdx()); - } - if (other.getHttpAggregations() != com.google.protobuf.ByteString.EMPTY) { - setHttpAggregations(other.getHttpAggregations()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField1_ = (bitField1_ & ~0x00000002); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getTagsIdx() != 0) { - setTagsIdx(other.getTagsIdx()); - } - if (other.getTagsChecksum() != 0) { - setTagsChecksum(other.getTagsChecksum()); - } - if (other.getStateIndex() != 0) { - setStateIndex(other.getStateIndex()); - } - if (other.getDataStreamsAggregations() != com.google.protobuf.ByteString.EMPTY) { - setDataStreamsAggregations(other.getDataStreamsAggregations()); - } - if (other.getHttp2Aggregations() != com.google.protobuf.ByteString.EMPTY) { - setHttp2Aggregations(other.getHttp2Aggregations()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - pid_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 42: { - input.readMessage( - getLaddrFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: { - input.readMessage( - getRaddrFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 50 - case 80: { - family_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 80 - case 88: { - type_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 88 - case 128: { - lastBytesSent_ = input.readUInt64(); - bitField0_ |= 0x00000040; - break; - } // case 128 - case 136: { - lastBytesReceived_ = input.readUInt64(); - bitField0_ |= 0x00000080; - break; - } // case 136 - case 144: { - lastRetransmits_ = input.readUInt32(); - bitField0_ |= 0x00000100; - break; - } // case 144 - case 152: { - direction_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 152 - case 160: { - netNS_ = input.readUInt32(); - bitField0_ |= 0x00002000; - break; - } // case 160 - case 170: { - input.readMessage( - getIpTranslationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 176: { - rtt_ = input.readUInt32(); - bitField0_ |= 0x00010000; - break; - } // case 176 - case 184: { - rttVar_ = input.readUInt32(); - bitField0_ |= 0x00020000; - break; - } // case 184 - case 192: { - intraHost_ = input.readBool(); - bitField0_ |= 0x00040000; - break; - } // case 192 - case 200: { - dnsSuccessfulResponses_ = input.readUInt32(); - bitField0_ |= 0x00080000; - break; - } // case 200 - case 208: { - dnsFailedResponses_ = input.readUInt32(); - bitField0_ |= 0x00100000; - break; - } // case 208 - case 216: { - dnsTimeouts_ = input.readUInt32(); - bitField0_ |= 0x00200000; - break; - } // case 216 - case 224: { - dnsSuccessLatencySum_ = input.readUInt64(); - bitField0_ |= 0x00400000; - break; - } // case 224 - case 232: { - dnsFailureLatencySum_ = input.readUInt64(); - bitField0_ |= 0x00800000; - break; - } // case 232 - case 240: { - lastTcpEstablished_ = input.readUInt32(); - bitField0_ |= 0x02000000; - break; - } // case 240 - case 248: { - lastTcpClosed_ = input.readUInt32(); - bitField0_ |= 0x04000000; - break; - } // case 248 - case 258: { - remoteNetworkId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 258 - case 266: { - com.google.protobuf.MapEntry - dnsCountByRcode__ = input.readMessage( - DnsCountByRcodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDnsCountByRcode().getMutableMap().put( - dnsCountByRcode__.getKey(), dnsCountByRcode__.getValue()); - bitField0_ |= 0x01000000; - break; - } // case 266 - case 274: { - com.google.protobuf.MapEntry - dnsStatsByDomain__ = input.readMessage( - DnsStatsByDomainDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDnsStatsByDomain().getMutableMap().put( - dnsStatsByDomain__.getKey(), dnsStatsByDomain__.getValue()); - bitField0_ |= 0x08000000; - break; - } // case 274 - case 288: { - routeIdx_ = input.readInt32(); - bitField0_ |= 0x40000000; - break; - } // case 288 - case 298: { - httpAggregations_ = input.readBytes(); - bitField1_ |= 0x00000001; - break; - } // case 298 - case 304: { - lastPacketsSent_ = input.readUInt64(); - bitField0_ |= 0x00000400; - break; - } // case 304 - case 312: { - lastPacketsReceived_ = input.readUInt64(); - bitField0_ |= 0x00000800; - break; - } // case 312 - case 320: { - routeTargetIdx_ = input.readInt32(); - bitField0_ |= 0x80000000; - break; - } // case 320 - case 328: { - isLocalPortEphemeral_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 328 - case 338: { - com.google.protobuf.MapEntry - dnsStatsByDomainByQueryType__ = input.readMessage( - DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDnsStatsByDomainByQueryType().getMutableMap().put( - dnsStatsByDomainByQueryType__.getKey(), dnsStatsByDomainByQueryType__.getValue()); - bitField0_ |= 0x10000000; - break; - } // case 338 - case 346: { - com.google.protobuf.MapEntry - dnsStatsByDomainOffsetByQueryType__ = input.readMessage( - DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap().put( - dnsStatsByDomainOffsetByQueryType__.getKey(), dnsStatsByDomainOffsetByQueryType__.getValue()); - bitField0_ |= 0x20000000; - break; - } // case 346 - case 352: { - int v = input.readUInt32(); - ensureTagsIsMutable(); - tags_.addInt(v); - break; - } // case 352 - case 354: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureTagsIsMutable(); - while (input.getBytesUntilLimit() > 0) { - tags_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } // case 354 - case 360: { - tagsIdx_ = input.readInt32(); - bitField1_ |= 0x00000004; - break; - } // case 360 - case 368: { - stateIndex_ = input.readUInt32(); - bitField1_ |= 0x00000010; - break; - } // case 368 - case 376: { - tagsChecksum_ = input.readUInt32(); - bitField1_ |= 0x00000008; - break; - } // case 376 - case 386: { - input.readMessage( - getProtocolFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 386 - case 394: { - dataStreamsAggregations_ = input.readBytes(); - bitField1_ |= 0x00000020; - break; - } // case 394 - case 402: { - http2Aggregations_ = input.readBytes(); - bitField1_ |= 0x00000040; - break; - } // case 402 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - private int bitField1_; - - private int pid_ ; - /** - * int32 pid = 1; - * @return The pid. - */ - @java.lang.Override - public int getPid() { - return pid_; - } - /** - * int32 pid = 1; - * @param value The pid to set. - * @return This builder for chaining. - */ - public Builder setPid(int value) { - - pid_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 pid = 1; - * @return This builder for chaining. - */ - public Builder clearPid() { - bitField0_ = (bitField0_ & ~0x00000001); - pid_ = 0; - onChanged(); - return this; - } - - private datadog.process_agent.ConnectionsOuterClass.Addr laddr_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> laddrBuilder_; - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - * @return Whether the laddr field is set. - */ - public boolean hasLaddr() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - * @return The laddr. - */ - public datadog.process_agent.ConnectionsOuterClass.Addr getLaddr() { - if (laddrBuilder_ == null) { - return laddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; - } else { - return laddrBuilder_.getMessage(); - } - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - public Builder setLaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { - if (laddrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - laddr_ = value; - } else { - laddrBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - public Builder setLaddr( - datadog.process_agent.ConnectionsOuterClass.Addr.Builder builderForValue) { - if (laddrBuilder_ == null) { - laddr_ = builderForValue.build(); - } else { - laddrBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - public Builder mergeLaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { - if (laddrBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - laddr_ != null && - laddr_ != datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance()) { - getLaddrBuilder().mergeFrom(value); - } else { - laddr_ = value; - } - } else { - laddrBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - public Builder clearLaddr() { - bitField0_ = (bitField0_ & ~0x00000002); - laddr_ = null; - if (laddrBuilder_ != null) { - laddrBuilder_.dispose(); - laddrBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.Addr.Builder getLaddrBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getLaddrFieldBuilder().getBuilder(); - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getLaddrOrBuilder() { - if (laddrBuilder_ != null) { - return laddrBuilder_.getMessageOrBuilder(); - } else { - return laddr_ == null ? - datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : laddr_; - } - } - /** - *
-       * Local address
-       * 
- * - * .datadog.process_agent.Addr laddr = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> - getLaddrFieldBuilder() { - if (laddrBuilder_ == null) { - laddrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder>( - getLaddr(), - getParentForChildren(), - isClean()); - laddr_ = null; - } - return laddrBuilder_; - } - - private datadog.process_agent.ConnectionsOuterClass.Addr raddr_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> raddrBuilder_; - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - * @return Whether the raddr field is set. - */ - public boolean hasRaddr() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - * @return The raddr. - */ - public datadog.process_agent.ConnectionsOuterClass.Addr getRaddr() { - if (raddrBuilder_ == null) { - return raddr_ == null ? datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; - } else { - return raddrBuilder_.getMessage(); - } - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - public Builder setRaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { - if (raddrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - raddr_ = value; - } else { - raddrBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - public Builder setRaddr( - datadog.process_agent.ConnectionsOuterClass.Addr.Builder builderForValue) { - if (raddrBuilder_ == null) { - raddr_ = builderForValue.build(); - } else { - raddrBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - public Builder mergeRaddr(datadog.process_agent.ConnectionsOuterClass.Addr value) { - if (raddrBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - raddr_ != null && - raddr_ != datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance()) { - getRaddrBuilder().mergeFrom(value); - } else { - raddr_ = value; - } - } else { - raddrBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - public Builder clearRaddr() { - bitField0_ = (bitField0_ & ~0x00000004); - raddr_ = null; - if (raddrBuilder_ != null) { - raddrBuilder_.dispose(); - raddrBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - public datadog.process_agent.ConnectionsOuterClass.Addr.Builder getRaddrBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getRaddrFieldBuilder().getBuilder(); - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - public datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder getRaddrOrBuilder() { - if (raddrBuilder_ != null) { - return raddrBuilder_.getMessageOrBuilder(); - } else { - return raddr_ == null ? - datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance() : raddr_; - } - } - /** - *
-       * Remote address
-       * 
- * - * .datadog.process_agent.Addr raddr = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder> - getRaddrFieldBuilder() { - if (raddrBuilder_ == null) { - raddrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Addr, datadog.process_agent.ConnectionsOuterClass.Addr.Builder, datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder>( - getRaddr(), - getParentForChildren(), - isClean()); - raddr_ = null; - } - return raddrBuilder_; - } - - private int family_ = 0; - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return The enum numeric value on the wire for family. - */ - @java.lang.Override public int getFamilyValue() { - return family_; - } - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @param value The enum numeric value on the wire for family to set. - * @return This builder for chaining. - */ - public Builder setFamilyValue(int value) { - family_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return The family. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionFamily getFamily() { - datadog.process_agent.ConnectionsOuterClass.ConnectionFamily result = datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.forNumber(family_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionFamily.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @param value The family to set. - * @return This builder for chaining. - */ - public Builder setFamily(datadog.process_agent.ConnectionsOuterClass.ConnectionFamily value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - family_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.ConnectionFamily family = 10; - * @return This builder for chaining. - */ - public Builder clearFamily() { - bitField0_ = (bitField0_ & ~0x00000008); - family_ = 0; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - * .datadog.process_agent.ConnectionType type = 11; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return The type. - */ - @java.lang.Override - public datadog.process_agent.Agent.ConnectionType getType() { - datadog.process_agent.Agent.ConnectionType result = datadog.process_agent.Agent.ConnectionType.forNumber(type_); - return result == null ? datadog.process_agent.Agent.ConnectionType.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.ConnectionType type = 11; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(datadog.process_agent.Agent.ConnectionType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.ConnectionType type = 11; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000010); - type_ = 0; - onChanged(); - return this; - } - - private int isLocalPortEphemeral_ = 0; - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return The enum numeric value on the wire for isLocalPortEphemeral. - */ - @java.lang.Override public int getIsLocalPortEphemeralValue() { - return isLocalPortEphemeral_; - } - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @param value The enum numeric value on the wire for isLocalPortEphemeral to set. - * @return This builder for chaining. - */ - public Builder setIsLocalPortEphemeralValue(int value) { - isLocalPortEphemeral_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return The isLocalPortEphemeral. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.EphemeralPortState getIsLocalPortEphemeral() { - datadog.process_agent.ConnectionsOuterClass.EphemeralPortState result = datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.forNumber(isLocalPortEphemeral_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.EphemeralPortState.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @param value The isLocalPortEphemeral to set. - * @return This builder for chaining. - */ - public Builder setIsLocalPortEphemeral(datadog.process_agent.ConnectionsOuterClass.EphemeralPortState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - isLocalPortEphemeral_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.EphemeralPortState isLocalPortEphemeral = 41; - * @return This builder for chaining. - */ - public Builder clearIsLocalPortEphemeral() { - bitField0_ = (bitField0_ & ~0x00000020); - isLocalPortEphemeral_ = 0; - onChanged(); - return this; - } - - private long lastBytesSent_ ; - /** - *
-       * Relative counters since last check
-       * 
- * - * uint64 lastBytesSent = 16; - * @return The lastBytesSent. - */ - @java.lang.Override - public long getLastBytesSent() { - return lastBytesSent_; - } - /** - *
-       * Relative counters since last check
-       * 
- * - * uint64 lastBytesSent = 16; - * @param value The lastBytesSent to set. - * @return This builder for chaining. - */ - public Builder setLastBytesSent(long value) { - - lastBytesSent_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Relative counters since last check
-       * 
- * - * uint64 lastBytesSent = 16; - * @return This builder for chaining. - */ - public Builder clearLastBytesSent() { - bitField0_ = (bitField0_ & ~0x00000040); - lastBytesSent_ = 0L; - onChanged(); - return this; - } - - private long lastBytesReceived_ ; - /** - * uint64 lastBytesReceived = 17; - * @return The lastBytesReceived. - */ - @java.lang.Override - public long getLastBytesReceived() { - return lastBytesReceived_; - } - /** - * uint64 lastBytesReceived = 17; - * @param value The lastBytesReceived to set. - * @return This builder for chaining. - */ - public Builder setLastBytesReceived(long value) { - - lastBytesReceived_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * uint64 lastBytesReceived = 17; - * @return This builder for chaining. - */ - public Builder clearLastBytesReceived() { - bitField0_ = (bitField0_ & ~0x00000080); - lastBytesReceived_ = 0L; - onChanged(); - return this; - } - - private int lastRetransmits_ ; - /** - * uint32 lastRetransmits = 18; - * @return The lastRetransmits. - */ - @java.lang.Override - public int getLastRetransmits() { - return lastRetransmits_; - } - /** - * uint32 lastRetransmits = 18; - * @param value The lastRetransmits to set. - * @return This builder for chaining. - */ - public Builder setLastRetransmits(int value) { - - lastRetransmits_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint32 lastRetransmits = 18; - * @return This builder for chaining. - */ - public Builder clearLastRetransmits() { - bitField0_ = (bitField0_ & ~0x00000100); - lastRetransmits_ = 0; - onChanged(); - return this; - } - - private int direction_ = 0; - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return The enum numeric value on the wire for direction. - */ - @java.lang.Override public int getDirectionValue() { - return direction_; - } - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @param value The enum numeric value on the wire for direction to set. - * @return This builder for chaining. - */ - public Builder setDirectionValue(int value) { - direction_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return The direction. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionDirection getDirection() { - datadog.process_agent.ConnectionsOuterClass.ConnectionDirection result = datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.forNumber(direction_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.ConnectionDirection.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @param value The direction to set. - * @return This builder for chaining. - */ - public Builder setDirection(datadog.process_agent.ConnectionsOuterClass.ConnectionDirection value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.ConnectionDirection direction = 19; - * @return This builder for chaining. - */ - public Builder clearDirection() { - bitField0_ = (bitField0_ & ~0x00000200); - direction_ = 0; - onChanged(); - return this; - } - - private long lastPacketsSent_ ; - /** - * uint64 lastPacketsSent = 38; - * @return The lastPacketsSent. - */ - @java.lang.Override - public long getLastPacketsSent() { - return lastPacketsSent_; - } - /** - * uint64 lastPacketsSent = 38; - * @param value The lastPacketsSent to set. - * @return This builder for chaining. - */ - public Builder setLastPacketsSent(long value) { - - lastPacketsSent_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * uint64 lastPacketsSent = 38; - * @return This builder for chaining. - */ - public Builder clearLastPacketsSent() { - bitField0_ = (bitField0_ & ~0x00000400); - lastPacketsSent_ = 0L; - onChanged(); - return this; - } - - private long lastPacketsReceived_ ; - /** - * uint64 lastPacketsReceived = 39; - * @return The lastPacketsReceived. - */ - @java.lang.Override - public long getLastPacketsReceived() { - return lastPacketsReceived_; - } - /** - * uint64 lastPacketsReceived = 39; - * @param value The lastPacketsReceived to set. - * @return This builder for chaining. - */ - public Builder setLastPacketsReceived(long value) { - - lastPacketsReceived_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * uint64 lastPacketsReceived = 39; - * @return This builder for chaining. - */ - public Builder clearLastPacketsReceived() { - bitField0_ = (bitField0_ & ~0x00000800); - lastPacketsReceived_ = 0L; - onChanged(); - return this; - } - - private datadog.process_agent.ConnectionsOuterClass.ProtocolStack protocol_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.ProtocolStack, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder, datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder> protocolBuilder_; - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - * @return Whether the protocol field is set. - */ - public boolean hasProtocol() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - * @return The protocol. - */ - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getProtocol() { - if (protocolBuilder_ == null) { - return protocol_ == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; - } else { - return protocolBuilder_.getMessage(); - } - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - public Builder setProtocol(datadog.process_agent.ConnectionsOuterClass.ProtocolStack value) { - if (protocolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - protocol_ = value; - } else { - protocolBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - public Builder setProtocol( - datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder builderForValue) { - if (protocolBuilder_ == null) { - protocol_ = builderForValue.build(); - } else { - protocolBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - public Builder mergeProtocol(datadog.process_agent.ConnectionsOuterClass.ProtocolStack value) { - if (protocolBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - protocol_ != null && - protocol_ != datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance()) { - getProtocolBuilder().mergeFrom(value); - } else { - protocol_ = value; - } - } else { - protocolBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - public Builder clearProtocol() { - bitField0_ = (bitField0_ & ~0x00001000); - protocol_ = null; - if (protocolBuilder_ != null) { - protocolBuilder_.dispose(); - protocolBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder getProtocolBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getProtocolFieldBuilder().getBuilder(); - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - public datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder getProtocolOrBuilder() { - if (protocolBuilder_ != null) { - return protocolBuilder_.getMessageOrBuilder(); - } else { - return protocol_ == null ? - datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance() : protocol_; - } - } - /** - * .datadog.process_agent.ProtocolStack protocol = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.ProtocolStack, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder, datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder> - getProtocolFieldBuilder() { - if (protocolBuilder_ == null) { - protocolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.ProtocolStack, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder, datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder>( - getProtocol(), - getParentForChildren(), - isClean()); - protocol_ = null; - } - return protocolBuilder_; - } - - private int netNS_ ; - /** - *
-       * Network namespace
-       * 
- * - * uint32 netNS = 20; - * @return The netNS. - */ - @java.lang.Override - public int getNetNS() { - return netNS_; - } - /** - *
-       * Network namespace
-       * 
- * - * uint32 netNS = 20; - * @param value The netNS to set. - * @return This builder for chaining. - */ - public Builder setNetNS(int value) { - - netNS_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-       * Network namespace
-       * 
- * - * uint32 netNS = 20; - * @return This builder for chaining. - */ - public Builder clearNetNS() { - bitField0_ = (bitField0_ & ~0x00002000); - netNS_ = 0; - onChanged(); - return this; - } - - private java.lang.Object remoteNetworkId_ = ""; - /** - *
-       * NetworkID of the remote address (post-resolution field)
-       * 
- * - * string remoteNetworkId = 32; - * @return The remoteNetworkId. - */ - public java.lang.String getRemoteNetworkId() { - java.lang.Object ref = remoteNetworkId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remoteNetworkId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * NetworkID of the remote address (post-resolution field)
-       * 
- * - * string remoteNetworkId = 32; - * @return The bytes for remoteNetworkId. - */ - public com.google.protobuf.ByteString - getRemoteNetworkIdBytes() { - java.lang.Object ref = remoteNetworkId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remoteNetworkId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * NetworkID of the remote address (post-resolution field)
-       * 
- * - * string remoteNetworkId = 32; - * @param value The remoteNetworkId to set. - * @return This builder for chaining. - */ - public Builder setRemoteNetworkId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - remoteNetworkId_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - *
-       * NetworkID of the remote address (post-resolution field)
-       * 
- * - * string remoteNetworkId = 32; - * @return This builder for chaining. - */ - public Builder clearRemoteNetworkId() { - remoteNetworkId_ = getDefaultInstance().getRemoteNetworkId(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - *
-       * NetworkID of the remote address (post-resolution field)
-       * 
- * - * string remoteNetworkId = 32; - * @param value The bytes for remoteNetworkId to set. - * @return This builder for chaining. - */ - public Builder setRemoteNetworkIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - remoteNetworkId_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private datadog.process_agent.ConnectionsOuterClass.IPTranslation ipTranslation_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.IPTranslation, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder, datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder> ipTranslationBuilder_; - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - * @return Whether the ipTranslation field is set. - */ - public boolean hasIpTranslation() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - * @return The ipTranslation. - */ - public datadog.process_agent.ConnectionsOuterClass.IPTranslation getIpTranslation() { - if (ipTranslationBuilder_ == null) { - return ipTranslation_ == null ? datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; - } else { - return ipTranslationBuilder_.getMessage(); - } - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - public Builder setIpTranslation(datadog.process_agent.ConnectionsOuterClass.IPTranslation value) { - if (ipTranslationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ipTranslation_ = value; - } else { - ipTranslationBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - public Builder setIpTranslation( - datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder builderForValue) { - if (ipTranslationBuilder_ == null) { - ipTranslation_ = builderForValue.build(); - } else { - ipTranslationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - public Builder mergeIpTranslation(datadog.process_agent.ConnectionsOuterClass.IPTranslation value) { - if (ipTranslationBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - ipTranslation_ != null && - ipTranslation_ != datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance()) { - getIpTranslationBuilder().mergeFrom(value); - } else { - ipTranslation_ = value; - } - } else { - ipTranslationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - public Builder clearIpTranslation() { - bitField0_ = (bitField0_ & ~0x00008000); - ipTranslation_ = null; - if (ipTranslationBuilder_ != null) { - ipTranslationBuilder_.dispose(); - ipTranslationBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - public datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder getIpTranslationBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getIpTranslationFieldBuilder().getBuilder(); - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - public datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder getIpTranslationOrBuilder() { - if (ipTranslationBuilder_ != null) { - return ipTranslationBuilder_.getMessageOrBuilder(); - } else { - return ipTranslation_ == null ? - datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance() : ipTranslation_; - } - } - /** - *
-       * the conntrack entry associated with the connection. May be null on systems which don't support querying conntrack.
-       * 
- * - * .datadog.process_agent.IPTranslation ipTranslation = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.IPTranslation, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder, datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder> - getIpTranslationFieldBuilder() { - if (ipTranslationBuilder_ == null) { - ipTranslationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.IPTranslation, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder, datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder>( - getIpTranslation(), - getParentForChildren(), - isClean()); - ipTranslation_ = null; - } - return ipTranslationBuilder_; - } - - private int rtt_ ; - /** - *
-       * TCP-specific metrics
-       * 
- * - * uint32 rtt = 22; - * @return The rtt. - */ - @java.lang.Override - public int getRtt() { - return rtt_; - } - /** - *
-       * TCP-specific metrics
-       * 
- * - * uint32 rtt = 22; - * @param value The rtt to set. - * @return This builder for chaining. - */ - public Builder setRtt(int value) { - - rtt_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - *
-       * TCP-specific metrics
-       * 
- * - * uint32 rtt = 22; - * @return This builder for chaining. - */ - public Builder clearRtt() { - bitField0_ = (bitField0_ & ~0x00010000); - rtt_ = 0; - onChanged(); - return this; - } - - private int rttVar_ ; - /** - * uint32 rttVar = 23; - * @return The rttVar. - */ - @java.lang.Override - public int getRttVar() { - return rttVar_; - } - /** - * uint32 rttVar = 23; - * @param value The rttVar to set. - * @return This builder for chaining. - */ - public Builder setRttVar(int value) { - - rttVar_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * uint32 rttVar = 23; - * @return This builder for chaining. - */ - public Builder clearRttVar() { - bitField0_ = (bitField0_ & ~0x00020000); - rttVar_ = 0; - onChanged(); - return this; - } - - private boolean intraHost_ ; - /** - *
-       * Indicates that this connection begins and ends on the same host
-       * 
- * - * bool intraHost = 24; - * @return The intraHost. - */ - @java.lang.Override - public boolean getIntraHost() { - return intraHost_; - } - /** - *
-       * Indicates that this connection begins and ends on the same host
-       * 
- * - * bool intraHost = 24; - * @param value The intraHost to set. - * @return This builder for chaining. - */ - public Builder setIntraHost(boolean value) { - - intraHost_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - *
-       * Indicates that this connection begins and ends on the same host
-       * 
- * - * bool intraHost = 24; - * @return This builder for chaining. - */ - public Builder clearIntraHost() { - bitField0_ = (bitField0_ & ~0x00040000); - intraHost_ = false; - onChanged(); - return this; - } - - private int dnsSuccessfulResponses_ ; - /** - *
-       * DNS-specific metrics
-       * 
- * - * uint32 dnsSuccessfulResponses = 25; - * @return The dnsSuccessfulResponses. - */ - @java.lang.Override - public int getDnsSuccessfulResponses() { - return dnsSuccessfulResponses_; - } - /** - *
-       * DNS-specific metrics
-       * 
- * - * uint32 dnsSuccessfulResponses = 25; - * @param value The dnsSuccessfulResponses to set. - * @return This builder for chaining. - */ - public Builder setDnsSuccessfulResponses(int value) { - - dnsSuccessfulResponses_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - *
-       * DNS-specific metrics
-       * 
- * - * uint32 dnsSuccessfulResponses = 25; - * @return This builder for chaining. - */ - public Builder clearDnsSuccessfulResponses() { - bitField0_ = (bitField0_ & ~0x00080000); - dnsSuccessfulResponses_ = 0; - onChanged(); - return this; - } - - private int dnsFailedResponses_ ; - /** - * uint32 dnsFailedResponses = 26; - * @return The dnsFailedResponses. - */ - @java.lang.Override - public int getDnsFailedResponses() { - return dnsFailedResponses_; - } - /** - * uint32 dnsFailedResponses = 26; - * @param value The dnsFailedResponses to set. - * @return This builder for chaining. - */ - public Builder setDnsFailedResponses(int value) { - - dnsFailedResponses_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * uint32 dnsFailedResponses = 26; - * @return This builder for chaining. - */ - public Builder clearDnsFailedResponses() { - bitField0_ = (bitField0_ & ~0x00100000); - dnsFailedResponses_ = 0; - onChanged(); - return this; - } - - private int dnsTimeouts_ ; - /** - * uint32 dnsTimeouts = 27; - * @return The dnsTimeouts. - */ - @java.lang.Override - public int getDnsTimeouts() { - return dnsTimeouts_; - } - /** - * uint32 dnsTimeouts = 27; - * @param value The dnsTimeouts to set. - * @return This builder for chaining. - */ - public Builder setDnsTimeouts(int value) { - - dnsTimeouts_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * uint32 dnsTimeouts = 27; - * @return This builder for chaining. - */ - public Builder clearDnsTimeouts() { - bitField0_ = (bitField0_ & ~0x00200000); - dnsTimeouts_ = 0; - onChanged(); - return this; - } - - private long dnsSuccessLatencySum_ ; - /** - * uint64 dnsSuccessLatencySum = 28; - * @return The dnsSuccessLatencySum. - */ - @java.lang.Override - public long getDnsSuccessLatencySum() { - return dnsSuccessLatencySum_; - } - /** - * uint64 dnsSuccessLatencySum = 28; - * @param value The dnsSuccessLatencySum to set. - * @return This builder for chaining. - */ - public Builder setDnsSuccessLatencySum(long value) { - - dnsSuccessLatencySum_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * uint64 dnsSuccessLatencySum = 28; - * @return This builder for chaining. - */ - public Builder clearDnsSuccessLatencySum() { - bitField0_ = (bitField0_ & ~0x00400000); - dnsSuccessLatencySum_ = 0L; - onChanged(); - return this; - } - - private long dnsFailureLatencySum_ ; - /** - * uint64 dnsFailureLatencySum = 29; - * @return The dnsFailureLatencySum. - */ - @java.lang.Override - public long getDnsFailureLatencySum() { - return dnsFailureLatencySum_; - } - /** - * uint64 dnsFailureLatencySum = 29; - * @param value The dnsFailureLatencySum to set. - * @return This builder for chaining. - */ - public Builder setDnsFailureLatencySum(long value) { - - dnsFailureLatencySum_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * uint64 dnsFailureLatencySum = 29; - * @return This builder for chaining. - */ - public Builder clearDnsFailureLatencySum() { - bitField0_ = (bitField0_ & ~0x00800000); - dnsFailureLatencySum_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> dnsCountByRcode_; - private com.google.protobuf.MapField - internalGetDnsCountByRcode() { - if (dnsCountByRcode_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsCountByRcodeDefaultEntryHolder.defaultEntry); - } - return dnsCountByRcode_; - } - private com.google.protobuf.MapField - internalGetMutableDnsCountByRcode() { - if (dnsCountByRcode_ == null) { - dnsCountByRcode_ = com.google.protobuf.MapField.newMapField( - DnsCountByRcodeDefaultEntryHolder.defaultEntry); - } - if (!dnsCountByRcode_.isMutable()) { - dnsCountByRcode_ = dnsCountByRcode_.copy(); - } - bitField0_ |= 0x01000000; - onChanged(); - return dnsCountByRcode_; - } - public int getDnsCountByRcodeCount() { - return internalGetDnsCountByRcode().getMap().size(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public boolean containsDnsCountByRcode( - int key) { - - return internalGetDnsCountByRcode().getMap().containsKey(key); - } - /** - * Use {@link #getDnsCountByRcodeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsCountByRcode() { - return getDnsCountByRcodeMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public java.util.Map getDnsCountByRcodeMap() { - return internalGetDnsCountByRcode().getMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public int getDnsCountByRcodeOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - @java.lang.Override - public int getDnsCountByRcodeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDnsCountByRcode() { - bitField0_ = (bitField0_ & ~0x01000000); - internalGetMutableDnsCountByRcode().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - public Builder removeDnsCountByRcode( - int key) { - - internalGetMutableDnsCountByRcode().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDnsCountByRcode() { - bitField0_ |= 0x01000000; - return internalGetMutableDnsCountByRcode().getMutableMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - public Builder putDnsCountByRcode( - int key, - int value) { - - - internalGetMutableDnsCountByRcode().getMutableMap() - .put(key, value); - bitField0_ |= 0x01000000; - return this; - } - /** - * map<uint32, uint32> dnsCountByRcode = 33; - */ - public Builder putAllDnsCountByRcode( - java.util.Map values) { - internalGetMutableDnsCountByRcode().getMutableMap() - .putAll(values); - bitField0_ |= 0x01000000; - return this; - } - - private int lastTcpEstablished_ ; - /** - *
-       * TCP state transition counters relative to last check
-       * 
- * - * uint32 lastTcpEstablished = 30; - * @return The lastTcpEstablished. - */ - @java.lang.Override - public int getLastTcpEstablished() { - return lastTcpEstablished_; - } - /** - *
-       * TCP state transition counters relative to last check
-       * 
- * - * uint32 lastTcpEstablished = 30; - * @param value The lastTcpEstablished to set. - * @return This builder for chaining. - */ - public Builder setLastTcpEstablished(int value) { - - lastTcpEstablished_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - *
-       * TCP state transition counters relative to last check
-       * 
- * - * uint32 lastTcpEstablished = 30; - * @return This builder for chaining. - */ - public Builder clearLastTcpEstablished() { - bitField0_ = (bitField0_ & ~0x02000000); - lastTcpEstablished_ = 0; - onChanged(); - return this; - } - - private int lastTcpClosed_ ; - /** - * uint32 lastTcpClosed = 31; - * @return The lastTcpClosed. - */ - @java.lang.Override - public int getLastTcpClosed() { - return lastTcpClosed_; - } - /** - * uint32 lastTcpClosed = 31; - * @param value The lastTcpClosed to set. - * @return This builder for chaining. - */ - public Builder setLastTcpClosed(int value) { - - lastTcpClosed_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * uint32 lastTcpClosed = 31; - * @return This builder for chaining. - */ - public Builder clearLastTcpClosed() { - bitField0_ = (bitField0_ & ~0x04000000); - lastTcpClosed_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByDomain_; - private com.google.protobuf.MapField - internalGetDnsStatsByDomain() { - if (dnsStatsByDomain_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByDomainDefaultEntryHolder.defaultEntry); - } - return dnsStatsByDomain_; - } - private com.google.protobuf.MapField - internalGetMutableDnsStatsByDomain() { - if (dnsStatsByDomain_ == null) { - dnsStatsByDomain_ = com.google.protobuf.MapField.newMapField( - DnsStatsByDomainDefaultEntryHolder.defaultEntry); - } - if (!dnsStatsByDomain_.isMutable()) { - dnsStatsByDomain_ = dnsStatsByDomain_.copy(); - } - bitField0_ |= 0x08000000; - onChanged(); - return dnsStatsByDomain_; - } - public int getDnsStatsByDomainCount() { - return internalGetDnsStatsByDomain().getMap().size(); - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public boolean containsDnsStatsByDomain( - int key) { - - return internalGetDnsStatsByDomain().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByDomainMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByDomain() { - return getDnsStatsByDomainMap(); - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public java.util.Map getDnsStatsByDomainMap() { - return internalGetDnsStatsByDomain().getMap(); - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { - - java.util.Map map = - internalGetDnsStatsByDomain().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByDomainOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByDomain().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDnsStatsByDomain() { - bitField0_ = (bitField0_ & ~0x08000000); - internalGetMutableDnsStatsByDomain().getMutableMap() - .clear(); - return this; - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - public Builder removeDnsStatsByDomain( - int key) { - - internalGetMutableDnsStatsByDomain().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDnsStatsByDomain() { - bitField0_ |= 0x08000000; - return internalGetMutableDnsStatsByDomain().getMutableMap(); - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - public Builder putDnsStatsByDomain( - int key, - datadog.process_agent.ConnectionsOuterClass.DNSStats value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDnsStatsByDomain().getMutableMap() - .put(key, value); - bitField0_ |= 0x08000000; - return this; - } - /** - *
-       * 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
-       * 
- * - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByDomain = 34; - */ - public Builder putAllDnsStatsByDomain( - java.util.Map values) { - internalGetMutableDnsStatsByDomain().getMutableMap() - .putAll(values); - bitField0_ |= 0x08000000; - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainByQueryType_; - private com.google.protobuf.MapField - internalGetDnsStatsByDomainByQueryType() { - if (dnsStatsByDomainByQueryType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry); - } - return dnsStatsByDomainByQueryType_; - } - private com.google.protobuf.MapField - internalGetMutableDnsStatsByDomainByQueryType() { - if (dnsStatsByDomainByQueryType_ == null) { - dnsStatsByDomainByQueryType_ = com.google.protobuf.MapField.newMapField( - DnsStatsByDomainByQueryTypeDefaultEntryHolder.defaultEntry); - } - if (!dnsStatsByDomainByQueryType_.isMutable()) { - dnsStatsByDomainByQueryType_ = dnsStatsByDomainByQueryType_.copy(); - } - bitField0_ |= 0x10000000; - onChanged(); - return dnsStatsByDomainByQueryType_; - } - public int getDnsStatsByDomainByQueryTypeCount() { - return internalGetDnsStatsByDomainByQueryType().getMap().size(); - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public boolean containsDnsStatsByDomainByQueryType( - int key) { - - return internalGetDnsStatsByDomainByQueryType().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByDomainByQueryTypeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByDomainByQueryType() { - return getDnsStatsByDomainByQueryTypeMap(); - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public java.util.Map getDnsStatsByDomainByQueryTypeMap() { - return internalGetDnsStatsByDomainByQueryType().getMap(); - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { - - java.util.Map map = - internalGetDnsStatsByDomainByQueryType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainByQueryTypeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByDomainByQueryType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDnsStatsByDomainByQueryType() { - bitField0_ = (bitField0_ & ~0x10000000); - internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() - .clear(); - return this; - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - public Builder removeDnsStatsByDomainByQueryType( - int key) { - - internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDnsStatsByDomainByQueryType() { - bitField0_ |= 0x10000000; - return internalGetMutableDnsStatsByDomainByQueryType().getMutableMap(); - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - public Builder putDnsStatsByDomainByQueryType( - int key, - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() - .put(key, value); - bitField0_ |= 0x10000000; - return this; - } - /** - *
-       * dnsStatsByDomainByQueryType is new field
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainByQueryType = 42; - */ - public Builder putAllDnsStatsByDomainByQueryType( - java.util.Map values) { - internalGetMutableDnsStatsByDomainByQueryType().getMutableMap() - .putAll(values); - bitField0_ |= 0x10000000; - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType_; - private com.google.protobuf.MapField - internalGetDnsStatsByDomainOffsetByQueryType() { - if (dnsStatsByDomainOffsetByQueryType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry); - } - return dnsStatsByDomainOffsetByQueryType_; - } - private com.google.protobuf.MapField - internalGetMutableDnsStatsByDomainOffsetByQueryType() { - if (dnsStatsByDomainOffsetByQueryType_ == null) { - dnsStatsByDomainOffsetByQueryType_ = com.google.protobuf.MapField.newMapField( - DnsStatsByDomainOffsetByQueryTypeDefaultEntryHolder.defaultEntry); - } - if (!dnsStatsByDomainOffsetByQueryType_.isMutable()) { - dnsStatsByDomainOffsetByQueryType_ = dnsStatsByDomainOffsetByQueryType_.copy(); - } - bitField0_ |= 0x20000000; - onChanged(); - return dnsStatsByDomainOffsetByQueryType_; - } - public int getDnsStatsByDomainOffsetByQueryTypeCount() { - return internalGetDnsStatsByDomainOffsetByQueryType().getMap().size(); - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public boolean containsDnsStatsByDomainOffsetByQueryType( - int key) { - - return internalGetDnsStatsByDomainOffsetByQueryType().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByDomainOffsetByQueryTypeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByDomainOffsetByQueryType() { - return getDnsStatsByDomainOffsetByQueryTypeMap(); - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public java.util.Map getDnsStatsByDomainOffsetByQueryTypeMap() { - return internalGetDnsStatsByDomainOffsetByQueryType().getMap(); - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType defaultValue) { - - java.util.Map map = - internalGetDnsStatsByDomainOffsetByQueryType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDnsStatsByDomainOffsetByQueryTypeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByDomainOffsetByQueryType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDnsStatsByDomainOffsetByQueryType() { - bitField0_ = (bitField0_ & ~0x20000000); - internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() - .clear(); - return this; - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - public Builder removeDnsStatsByDomainOffsetByQueryType( - int key) { - - internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDnsStatsByDomainOffsetByQueryType() { - bitField0_ |= 0x20000000; - return internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap(); - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - public Builder putDnsStatsByDomainOffsetByQueryType( - int key, - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() - .put(key, value); - bitField0_ |= 0x20000000; - return this; - } - /** - *
-       * int32 index into map is the offset into the CollectorConnections.encodedDomainDatabase
-       * 
- * - * map<int32, .datadog.process_agent.DNSStatsByQueryType> dnsStatsByDomainOffsetByQueryType = 43; - */ - public Builder putAllDnsStatsByDomainOffsetByQueryType( - java.util.Map values) { - internalGetMutableDnsStatsByDomainOffsetByQueryType().getMutableMap() - .putAll(values); - bitField0_ |= 0x20000000; - return this; - } - - private int routeIdx_ ; - /** - * int32 routeIdx = 36; - * @return The routeIdx. - */ - @java.lang.Override - public int getRouteIdx() { - return routeIdx_; - } - /** - * int32 routeIdx = 36; - * @param value The routeIdx to set. - * @return This builder for chaining. - */ - public Builder setRouteIdx(int value) { - - routeIdx_ = value; - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * int32 routeIdx = 36; - * @return This builder for chaining. - */ - public Builder clearRouteIdx() { - bitField0_ = (bitField0_ & ~0x40000000); - routeIdx_ = 0; - onChanged(); - return this; - } - - private int routeTargetIdx_ ; - /** - *
-       * the index of the resolved target of the route (post-resolution field)
-       * 
- * - * int32 routeTargetIdx = 40; - * @return The routeTargetIdx. - */ - @java.lang.Override - public int getRouteTargetIdx() { - return routeTargetIdx_; - } - /** - *
-       * the index of the resolved target of the route (post-resolution field)
-       * 
- * - * int32 routeTargetIdx = 40; - * @param value The routeTargetIdx to set. - * @return This builder for chaining. - */ - public Builder setRouteTargetIdx(int value) { - - routeTargetIdx_ = value; - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - *
-       * the index of the resolved target of the route (post-resolution field)
-       * 
- * - * int32 routeTargetIdx = 40; - * @return This builder for chaining. - */ - public Builder clearRouteTargetIdx() { - bitField0_ = (bitField0_ & ~0x80000000); - routeTargetIdx_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString httpAggregations_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
-       * 
- * - * bytes httpAggregations = 37; - * @return The httpAggregations. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHttpAggregations() { - return httpAggregations_; - } - /** - *
-       * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
-       * 
- * - * bytes httpAggregations = 37; - * @param value The httpAggregations to set. - * @return This builder for chaining. - */ - public Builder setHttpAggregations(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - httpAggregations_ = value; - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * serialized HTTPAggregations object summarizing all http transactions recorded for this connection, organized by request path
-       * 
- * - * bytes httpAggregations = 37; - * @return This builder for chaining. - */ - public Builder clearHttpAggregations() { - bitField1_ = (bitField1_ & ~0x00000001); - httpAggregations_ = getDefaultInstance().getHttpAggregations(); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList tags_ = emptyIntList(); - private void ensureTagsIsMutable() { - if (!((bitField1_ & 0x00000002) != 0)) { - tags_ = mutableCopy(tags_); - bitField1_ |= 0x00000002; - } - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @return A list containing the tags. - */ - public java.util.List - getTagsList() { - return ((bitField1_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(tags_) : tags_; - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public int getTags(int index) { - return tags_.getInt(index); - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags( - int index, int value) { - - ensureTagsIsMutable(); - tags_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(int value) { - - ensureTagsIsMutable(); - tags_.addInt(value); - onChanged(); - return this; - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * The stored values corresponds to an index into the `Connections.tags` field
-       * 
- * - * repeated uint32 tags = 44; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = emptyIntList(); - bitField1_ = (bitField1_ & ~0x00000002); - onChanged(); - return this; - } - - private int tagsIdx_ ; - /** - *
-       * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
-       * 
- * - * int32 tagsIdx = 45; - * @return The tagsIdx. - */ - @java.lang.Override - public int getTagsIdx() { - return tagsIdx_; - } - /** - *
-       * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
-       * 
- * - * int32 tagsIdx = 45; - * @param value The tagsIdx to set. - * @return This builder for chaining. - */ - public Builder setTagsIdx(int value) { - - tagsIdx_ = value; - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * the tags index of encodedConnectionsTags (from process.tagsV2.Encode())
-       * 
- * - * int32 tagsIdx = 45; - * @return This builder for chaining. - */ - public Builder clearTagsIdx() { - bitField1_ = (bitField1_ & ~0x00000004); - tagsIdx_ = 0; - onChanged(); - return this; - } - - private int tagsChecksum_ ; - /** - *
-       * 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.
-       * 
- * - * uint32 tagsChecksum = 47; - * @return The tagsChecksum. - */ - @java.lang.Override - public int getTagsChecksum() { - return tagsChecksum_; - } - /** - *
-       * 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.
-       * 
- * - * uint32 tagsChecksum = 47; - * @param value The tagsChecksum to set. - * @return This builder for chaining. - */ - public Builder setTagsChecksum(int value) { - - tagsChecksum_ = value; - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * 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.
-       * 
- * - * uint32 tagsChecksum = 47; - * @return This builder for chaining. - */ - public Builder clearTagsChecksum() { - bitField1_ = (bitField1_ & ~0x00000008); - tagsChecksum_ = 0; - onChanged(); - return this; - } - - private int stateIndex_ ; - /** - *
-       * Used for offset state management (backend)
-       * 
- * - * uint32 stateIndex = 46; - * @return The stateIndex. - */ - @java.lang.Override - public int getStateIndex() { - return stateIndex_; - } - /** - *
-       * Used for offset state management (backend)
-       * 
- * - * uint32 stateIndex = 46; - * @param value The stateIndex to set. - * @return This builder for chaining. - */ - public Builder setStateIndex(int value) { - - stateIndex_ = value; - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * Used for offset state management (backend)
-       * 
- * - * uint32 stateIndex = 46; - * @return This builder for chaining. - */ - public Builder clearStateIndex() { - bitField1_ = (bitField1_ & ~0x00000010); - stateIndex_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString dataStreamsAggregations_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
-       * 
- * - * bytes dataStreamsAggregations = 49; - * @return The dataStreamsAggregations. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDataStreamsAggregations() { - return dataStreamsAggregations_; - } - /** - *
-       * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
-       * 
- * - * bytes dataStreamsAggregations = 49; - * @param value The dataStreamsAggregations to set. - * @return This builder for chaining. - */ - public Builder setDataStreamsAggregations(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - dataStreamsAggregations_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * serialized DataStreamsAggregations object summarizing all data streams transactions (Kafka produce & Kafka fetch) recorded for this connection organized by topic
-       * 
- * - * bytes dataStreamsAggregations = 49; - * @return This builder for chaining. - */ - public Builder clearDataStreamsAggregations() { - bitField1_ = (bitField1_ & ~0x00000020); - dataStreamsAggregations_ = getDefaultInstance().getDataStreamsAggregations(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString http2Aggregations_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
-       * 
- * - * bytes http2Aggregations = 50; - * @return The http2Aggregations. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHttp2Aggregations() { - return http2Aggregations_; - } - /** - *
-       * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
-       * 
- * - * bytes http2Aggregations = 50; - * @param value The http2Aggregations to set. - * @return This builder for chaining. - */ - public Builder setHttp2Aggregations(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - http2Aggregations_ = value; - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * serialized HTTP2Aggregations object summarizing all http2 transactions recorded for this connection, organized by request path
-       * 
- * - * bytes http2Aggregations = 50; - * @return This builder for chaining. - */ - public Builder clearHttp2Aggregations() { - bitField1_ = (bitField1_ & ~0x00000040); - http2Aggregations_ = getDefaultInstance().getHttp2Aggregations(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.Connection) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.Connection) - private static final datadog.process_agent.ConnectionsOuterClass.Connection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Connection(); - } - - public static datadog.process_agent.ConnectionsOuterClass.Connection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Connection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourceMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.ResourceMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * uint32 key = 2; - * @return The key. - */ - int getKey(); - - /** - * bytes byteKey = 3; - * @return The byteKey. - */ - com.google.protobuf.ByteString getByteKey(); - - /** - * repeated string tags = 4; - * @return A list containing the tags. - */ - java.util.List - getTagsList(); - /** - * repeated string tags = 4; - * @return The count of tags. - */ - int getTagsCount(); - /** - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * int32 tagIndex = 5; - * @return The tagIndex. - */ - int getTagIndex(); - - /** - * int64 tagsModified = 6; - * @return The tagsModified. - */ - long getTagsModified(); - } - /** - *
-   * ResourceMetadata only holds enough information to identify a resource in connection data
-   * 
- * - * Protobuf type {@code datadog.process_agent.ResourceMetadata} - */ - public static final class ResourceMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.ResourceMetadata) - ResourceMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceMetadata.newBuilder() to construct. - private ResourceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceMetadata() { - id_ = ""; - byteKey_ = com.google.protobuf.ByteString.EMPTY; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResourceMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.class, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private int key_ = 0; - /** - * uint32 key = 2; - * @return The key. - */ - @java.lang.Override - public int getKey() { - return key_; - } - - public static final int BYTEKEY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString byteKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes byteKey = 3; - * @return The byteKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getByteKey() { - return byteKey_; - } - - public static final int TAGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 4; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 4; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int TAGINDEX_FIELD_NUMBER = 5; - private int tagIndex_ = 0; - /** - * int32 tagIndex = 5; - * @return The tagIndex. - */ - @java.lang.Override - public int getTagIndex() { - return tagIndex_; - } - - public static final int TAGSMODIFIED_FIELD_NUMBER = 6; - private long tagsModified_ = 0L; - /** - * int64 tagsModified = 6; - * @return The tagsModified. - */ - @java.lang.Override - public long getTagsModified() { - return tagsModified_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (key_ != 0) { - output.writeUInt32(2, key_); - } - if (!byteKey_.isEmpty()) { - output.writeBytes(3, byteKey_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); - } - if (tagIndex_ != 0) { - output.writeInt32(5, tagIndex_); - } - if (tagsModified_ != 0L) { - output.writeInt64(6, tagsModified_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (key_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, key_); - } - if (!byteKey_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, byteKey_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (tagIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, tagIndex_); - } - if (tagsModified_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, tagsModified_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.ResourceMetadata)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata other = (datadog.process_agent.ConnectionsOuterClass.ResourceMetadata) obj; - - if (!getId() - .equals(other.getId())) return false; - if (getKey() - != other.getKey()) return false; - if (!getByteKey() - .equals(other.getByteKey())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getTagIndex() - != other.getTagIndex()) return false; - if (getTagsModified() - != other.getTagsModified()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey(); - hash = (37 * hash) + BYTEKEY_FIELD_NUMBER; - hash = (53 * hash) + getByteKey().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (37 * hash) + TAGINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTagIndex(); - hash = (37 * hash) + TAGSMODIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTagsModified()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ResourceMetadata only holds enough information to identify a resource in connection data
-     * 
- * - * Protobuf type {@code datadog.process_agent.ResourceMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.ResourceMetadata) - datadog.process_agent.ConnectionsOuterClass.ResourceMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.class, datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - key_ = 0; - byteKey_ = com.google.protobuf.ByteString.EMPTY; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - tagIndex_ = 0; - tagsModified_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ResourceMetadata_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata build() { - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata buildPartial() { - datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result = new datadog.process_agent.ConnectionsOuterClass.ResourceMetadata(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result) { - if (((bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tags_ = tags_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.byteKey_ = byteKey_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.tagIndex_ = tagIndex_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.tagsModified_ = tagsModified_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.ResourceMetadata) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.ResourceMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.ResourceMetadata other) { - if (other == datadog.process_agent.ConnectionsOuterClass.ResourceMetadata.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getKey() != 0) { - setKey(other.getKey()); - } - if (other.getByteKey() != com.google.protobuf.ByteString.EMPTY) { - setByteKey(other.getByteKey()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getTagIndex() != 0) { - setTagIndex(other.getTagIndex()); - } - if (other.getTagsModified() != 0L) { - setTagsModified(other.getTagsModified()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - key_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - byteKey_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: { - tagIndex_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - tagsModified_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int key_ ; - /** - * uint32 key = 2; - * @return The key. - */ - @java.lang.Override - public int getKey() { - return key_; - } - /** - * uint32 key = 2; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey(int value) { - - key_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 key = 2; - * @return This builder for chaining. - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000002); - key_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString byteKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes byteKey = 3; - * @return The byteKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getByteKey() { - return byteKey_; - } - /** - * bytes byteKey = 3; - * @param value The byteKey to set. - * @return This builder for chaining. - */ - public Builder setByteKey(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - byteKey_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bytes byteKey = 3; - * @return This builder for chaining. - */ - public Builder clearByteKey() { - bitField0_ = (bitField0_ & ~0x00000004); - byteKey_ = getDefaultInstance().getByteKey(); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated string tags = 4; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 4; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 4; - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 4; - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 4; - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 4; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * repeated string tags = 4; - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private int tagIndex_ ; - /** - * int32 tagIndex = 5; - * @return The tagIndex. - */ - @java.lang.Override - public int getTagIndex() { - return tagIndex_; - } - /** - * int32 tagIndex = 5; - * @param value The tagIndex to set. - * @return This builder for chaining. - */ - public Builder setTagIndex(int value) { - - tagIndex_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int32 tagIndex = 5; - * @return This builder for chaining. - */ - public Builder clearTagIndex() { - bitField0_ = (bitField0_ & ~0x00000010); - tagIndex_ = 0; - onChanged(); - return this; - } - - private long tagsModified_ ; - /** - * int64 tagsModified = 6; - * @return The tagsModified. - */ - @java.lang.Override - public long getTagsModified() { - return tagsModified_; - } - /** - * int64 tagsModified = 6; - * @param value The tagsModified to set. - * @return This builder for chaining. - */ - public Builder setTagsModified(long value) { - - tagsModified_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int64 tagsModified = 6; - * @return This builder for chaining. - */ - public Builder clearTagsModified() { - bitField0_ = (bitField0_ & ~0x00000020); - tagsModified_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.ResourceMetadata) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.ResourceMetadata) - private static final datadog.process_agent.ConnectionsOuterClass.ResourceMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.ResourceMetadata(); - } - - public static datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ResourceMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConnectionsTelemetryOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.ConnectionsTelemetry) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 monotonicKprobesTriggered = 1; - * @return The monotonicKprobesTriggered. - */ - long getMonotonicKprobesTriggered(); - - /** - * int64 monotonicKprobesMissed = 2; - * @return The monotonicKprobesMissed. - */ - long getMonotonicKprobesMissed(); - - /** - * int64 monotonicConntrackRegisters = 3; - * @return The monotonicConntrackRegisters. - */ - long getMonotonicConntrackRegisters(); - - /** - * int64 monotonicConntrackRegistersDropped = 4; - * @return The monotonicConntrackRegistersDropped. - */ - long getMonotonicConntrackRegistersDropped(); - - /** - * int64 monotonicDnsPacketsProcessed = 5; - * @return The monotonicDnsPacketsProcessed. - */ - long getMonotonicDnsPacketsProcessed(); - - /** - * int64 monotonicConnsClosed = 6; - * @return The monotonicConnsClosed. - */ - long getMonotonicConnsClosed(); - - /** - * int64 connsBpfMapSize = 7; - * @return The connsBpfMapSize. - */ - long getConnsBpfMapSize(); - - /** - * int64 monotonicUdpSendsProcessed = 8; - * @return The monotonicUdpSendsProcessed. - */ - long getMonotonicUdpSendsProcessed(); - - /** - * int64 monotonicUdpSendsMissed = 9; - * @return The monotonicUdpSendsMissed. - */ - long getMonotonicUdpSendsMissed(); - - /** - * int64 conntrackSamplingPercent = 10; - * @return The conntrackSamplingPercent. - */ - long getConntrackSamplingPercent(); - - /** - * int64 dnsStatsDropped = 11; - * @return The dnsStatsDropped. - */ - long getDnsStatsDropped(); - } - /** - * Protobuf type {@code datadog.process_agent.ConnectionsTelemetry} - */ - public static final class ConnectionsTelemetry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.ConnectionsTelemetry) - ConnectionsTelemetryOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConnectionsTelemetry.newBuilder() to construct. - private ConnectionsTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionsTelemetry() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConnectionsTelemetry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder.class); - } - - public static final int MONOTONICKPROBESTRIGGERED_FIELD_NUMBER = 1; - private long monotonicKprobesTriggered_ = 0L; - /** - * int64 monotonicKprobesTriggered = 1; - * @return The monotonicKprobesTriggered. - */ - @java.lang.Override - public long getMonotonicKprobesTriggered() { - return monotonicKprobesTriggered_; - } - - public static final int MONOTONICKPROBESMISSED_FIELD_NUMBER = 2; - private long monotonicKprobesMissed_ = 0L; - /** - * int64 monotonicKprobesMissed = 2; - * @return The monotonicKprobesMissed. - */ - @java.lang.Override - public long getMonotonicKprobesMissed() { - return monotonicKprobesMissed_; - } - - public static final int MONOTONICCONNTRACKREGISTERS_FIELD_NUMBER = 3; - private long monotonicConntrackRegisters_ = 0L; - /** - * int64 monotonicConntrackRegisters = 3; - * @return The monotonicConntrackRegisters. - */ - @java.lang.Override - public long getMonotonicConntrackRegisters() { - return monotonicConntrackRegisters_; - } - - public static final int MONOTONICCONNTRACKREGISTERSDROPPED_FIELD_NUMBER = 4; - private long monotonicConntrackRegistersDropped_ = 0L; - /** - * int64 monotonicConntrackRegistersDropped = 4; - * @return The monotonicConntrackRegistersDropped. - */ - @java.lang.Override - public long getMonotonicConntrackRegistersDropped() { - return monotonicConntrackRegistersDropped_; - } - - public static final int MONOTONICDNSPACKETSPROCESSED_FIELD_NUMBER = 5; - private long monotonicDnsPacketsProcessed_ = 0L; - /** - * int64 monotonicDnsPacketsProcessed = 5; - * @return The monotonicDnsPacketsProcessed. - */ - @java.lang.Override - public long getMonotonicDnsPacketsProcessed() { - return monotonicDnsPacketsProcessed_; - } - - public static final int MONOTONICCONNSCLOSED_FIELD_NUMBER = 6; - private long monotonicConnsClosed_ = 0L; - /** - * int64 monotonicConnsClosed = 6; - * @return The monotonicConnsClosed. - */ - @java.lang.Override - public long getMonotonicConnsClosed() { - return monotonicConnsClosed_; - } - - public static final int CONNSBPFMAPSIZE_FIELD_NUMBER = 7; - private long connsBpfMapSize_ = 0L; - /** - * int64 connsBpfMapSize = 7; - * @return The connsBpfMapSize. - */ - @java.lang.Override - public long getConnsBpfMapSize() { - return connsBpfMapSize_; - } - - public static final int MONOTONICUDPSENDSPROCESSED_FIELD_NUMBER = 8; - private long monotonicUdpSendsProcessed_ = 0L; - /** - * int64 monotonicUdpSendsProcessed = 8; - * @return The monotonicUdpSendsProcessed. - */ - @java.lang.Override - public long getMonotonicUdpSendsProcessed() { - return monotonicUdpSendsProcessed_; - } - - public static final int MONOTONICUDPSENDSMISSED_FIELD_NUMBER = 9; - private long monotonicUdpSendsMissed_ = 0L; - /** - * int64 monotonicUdpSendsMissed = 9; - * @return The monotonicUdpSendsMissed. - */ - @java.lang.Override - public long getMonotonicUdpSendsMissed() { - return monotonicUdpSendsMissed_; - } - - public static final int CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER = 10; - private long conntrackSamplingPercent_ = 0L; - /** - * int64 conntrackSamplingPercent = 10; - * @return The conntrackSamplingPercent. - */ - @java.lang.Override - public long getConntrackSamplingPercent() { - return conntrackSamplingPercent_; - } - - public static final int DNSSTATSDROPPED_FIELD_NUMBER = 11; - private long dnsStatsDropped_ = 0L; - /** - * int64 dnsStatsDropped = 11; - * @return The dnsStatsDropped. - */ - @java.lang.Override - public long getDnsStatsDropped() { - return dnsStatsDropped_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (monotonicKprobesTriggered_ != 0L) { - output.writeInt64(1, monotonicKprobesTriggered_); - } - if (monotonicKprobesMissed_ != 0L) { - output.writeInt64(2, monotonicKprobesMissed_); - } - if (monotonicConntrackRegisters_ != 0L) { - output.writeInt64(3, monotonicConntrackRegisters_); - } - if (monotonicConntrackRegistersDropped_ != 0L) { - output.writeInt64(4, monotonicConntrackRegistersDropped_); - } - if (monotonicDnsPacketsProcessed_ != 0L) { - output.writeInt64(5, monotonicDnsPacketsProcessed_); - } - if (monotonicConnsClosed_ != 0L) { - output.writeInt64(6, monotonicConnsClosed_); - } - if (connsBpfMapSize_ != 0L) { - output.writeInt64(7, connsBpfMapSize_); - } - if (monotonicUdpSendsProcessed_ != 0L) { - output.writeInt64(8, monotonicUdpSendsProcessed_); - } - if (monotonicUdpSendsMissed_ != 0L) { - output.writeInt64(9, monotonicUdpSendsMissed_); - } - if (conntrackSamplingPercent_ != 0L) { - output.writeInt64(10, conntrackSamplingPercent_); - } - if (dnsStatsDropped_ != 0L) { - output.writeInt64(11, dnsStatsDropped_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (monotonicKprobesTriggered_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, monotonicKprobesTriggered_); - } - if (monotonicKprobesMissed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, monotonicKprobesMissed_); - } - if (monotonicConntrackRegisters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, monotonicConntrackRegisters_); - } - if (monotonicConntrackRegistersDropped_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, monotonicConntrackRegistersDropped_); - } - if (monotonicDnsPacketsProcessed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, monotonicDnsPacketsProcessed_); - } - if (monotonicConnsClosed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, monotonicConnsClosed_); - } - if (connsBpfMapSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, connsBpfMapSize_); - } - if (monotonicUdpSendsProcessed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, monotonicUdpSendsProcessed_); - } - if (monotonicUdpSendsMissed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, monotonicUdpSendsMissed_); - } - if (conntrackSamplingPercent_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, conntrackSamplingPercent_); - } - if (dnsStatsDropped_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, dnsStatsDropped_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry other = (datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry) obj; - - if (getMonotonicKprobesTriggered() - != other.getMonotonicKprobesTriggered()) return false; - if (getMonotonicKprobesMissed() - != other.getMonotonicKprobesMissed()) return false; - if (getMonotonicConntrackRegisters() - != other.getMonotonicConntrackRegisters()) return false; - if (getMonotonicConntrackRegistersDropped() - != other.getMonotonicConntrackRegistersDropped()) return false; - if (getMonotonicDnsPacketsProcessed() - != other.getMonotonicDnsPacketsProcessed()) return false; - if (getMonotonicConnsClosed() - != other.getMonotonicConnsClosed()) return false; - if (getConnsBpfMapSize() - != other.getConnsBpfMapSize()) return false; - if (getMonotonicUdpSendsProcessed() - != other.getMonotonicUdpSendsProcessed()) return false; - if (getMonotonicUdpSendsMissed() - != other.getMonotonicUdpSendsMissed()) return false; - if (getConntrackSamplingPercent() - != other.getConntrackSamplingPercent()) return false; - if (getDnsStatsDropped() - != other.getDnsStatsDropped()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MONOTONICKPROBESTRIGGERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicKprobesTriggered()); - hash = (37 * hash) + MONOTONICKPROBESMISSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicKprobesMissed()); - hash = (37 * hash) + MONOTONICCONNTRACKREGISTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicConntrackRegisters()); - hash = (37 * hash) + MONOTONICCONNTRACKREGISTERSDROPPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicConntrackRegistersDropped()); - hash = (37 * hash) + MONOTONICDNSPACKETSPROCESSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicDnsPacketsProcessed()); - hash = (37 * hash) + MONOTONICCONNSCLOSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicConnsClosed()); - hash = (37 * hash) + CONNSBPFMAPSIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConnsBpfMapSize()); - hash = (37 * hash) + MONOTONICUDPSENDSPROCESSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicUdpSendsProcessed()); - hash = (37 * hash) + MONOTONICUDPSENDSMISSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMonotonicUdpSendsMissed()); - hash = (37 * hash) + CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConntrackSamplingPercent()); - hash = (37 * hash) + DNSSTATSDROPPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsStatsDropped()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.ConnectionsTelemetry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.ConnectionsTelemetry) - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - monotonicKprobesTriggered_ = 0L; - monotonicKprobesMissed_ = 0L; - monotonicConntrackRegisters_ = 0L; - monotonicConntrackRegistersDropped_ = 0L; - monotonicDnsPacketsProcessed_ = 0L; - monotonicConnsClosed_ = 0L; - connsBpfMapSize_ = 0L; - monotonicUdpSendsProcessed_ = 0L; - monotonicUdpSendsMissed_ = 0L; - conntrackSamplingPercent_ = 0L; - dnsStatsDropped_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry build() { - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry buildPartial() { - datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry result = new datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.monotonicKprobesTriggered_ = monotonicKprobesTriggered_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.monotonicKprobesMissed_ = monotonicKprobesMissed_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.monotonicConntrackRegisters_ = monotonicConntrackRegisters_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.monotonicConntrackRegistersDropped_ = monotonicConntrackRegistersDropped_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.monotonicDnsPacketsProcessed_ = monotonicDnsPacketsProcessed_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.monotonicConnsClosed_ = monotonicConnsClosed_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.connsBpfMapSize_ = connsBpfMapSize_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.monotonicUdpSendsProcessed_ = monotonicUdpSendsProcessed_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.monotonicUdpSendsMissed_ = monotonicUdpSendsMissed_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.conntrackSamplingPercent_ = conntrackSamplingPercent_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.dnsStatsDropped_ = dnsStatsDropped_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry other) { - if (other == datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry.getDefaultInstance()) return this; - if (other.getMonotonicKprobesTriggered() != 0L) { - setMonotonicKprobesTriggered(other.getMonotonicKprobesTriggered()); - } - if (other.getMonotonicKprobesMissed() != 0L) { - setMonotonicKprobesMissed(other.getMonotonicKprobesMissed()); - } - if (other.getMonotonicConntrackRegisters() != 0L) { - setMonotonicConntrackRegisters(other.getMonotonicConntrackRegisters()); - } - if (other.getMonotonicConntrackRegistersDropped() != 0L) { - setMonotonicConntrackRegistersDropped(other.getMonotonicConntrackRegistersDropped()); - } - if (other.getMonotonicDnsPacketsProcessed() != 0L) { - setMonotonicDnsPacketsProcessed(other.getMonotonicDnsPacketsProcessed()); - } - if (other.getMonotonicConnsClosed() != 0L) { - setMonotonicConnsClosed(other.getMonotonicConnsClosed()); - } - if (other.getConnsBpfMapSize() != 0L) { - setConnsBpfMapSize(other.getConnsBpfMapSize()); - } - if (other.getMonotonicUdpSendsProcessed() != 0L) { - setMonotonicUdpSendsProcessed(other.getMonotonicUdpSendsProcessed()); - } - if (other.getMonotonicUdpSendsMissed() != 0L) { - setMonotonicUdpSendsMissed(other.getMonotonicUdpSendsMissed()); - } - if (other.getConntrackSamplingPercent() != 0L) { - setConntrackSamplingPercent(other.getConntrackSamplingPercent()); - } - if (other.getDnsStatsDropped() != 0L) { - setDnsStatsDropped(other.getDnsStatsDropped()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - monotonicKprobesTriggered_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - monotonicKprobesMissed_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - monotonicConntrackRegisters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - monotonicConntrackRegistersDropped_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - monotonicDnsPacketsProcessed_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - monotonicConnsClosed_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - connsBpfMapSize_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - monotonicUdpSendsProcessed_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - monotonicUdpSendsMissed_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - conntrackSamplingPercent_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - dnsStatsDropped_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long monotonicKprobesTriggered_ ; - /** - * int64 monotonicKprobesTriggered = 1; - * @return The monotonicKprobesTriggered. - */ - @java.lang.Override - public long getMonotonicKprobesTriggered() { - return monotonicKprobesTriggered_; - } - /** - * int64 monotonicKprobesTriggered = 1; - * @param value The monotonicKprobesTriggered to set. - * @return This builder for chaining. - */ - public Builder setMonotonicKprobesTriggered(long value) { - - monotonicKprobesTriggered_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 monotonicKprobesTriggered = 1; - * @return This builder for chaining. - */ - public Builder clearMonotonicKprobesTriggered() { - bitField0_ = (bitField0_ & ~0x00000001); - monotonicKprobesTriggered_ = 0L; - onChanged(); - return this; - } - - private long monotonicKprobesMissed_ ; - /** - * int64 monotonicKprobesMissed = 2; - * @return The monotonicKprobesMissed. - */ - @java.lang.Override - public long getMonotonicKprobesMissed() { - return monotonicKprobesMissed_; - } - /** - * int64 monotonicKprobesMissed = 2; - * @param value The monotonicKprobesMissed to set. - * @return This builder for chaining. - */ - public Builder setMonotonicKprobesMissed(long value) { - - monotonicKprobesMissed_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 monotonicKprobesMissed = 2; - * @return This builder for chaining. - */ - public Builder clearMonotonicKprobesMissed() { - bitField0_ = (bitField0_ & ~0x00000002); - monotonicKprobesMissed_ = 0L; - onChanged(); - return this; - } - - private long monotonicConntrackRegisters_ ; - /** - * int64 monotonicConntrackRegisters = 3; - * @return The monotonicConntrackRegisters. - */ - @java.lang.Override - public long getMonotonicConntrackRegisters() { - return monotonicConntrackRegisters_; - } - /** - * int64 monotonicConntrackRegisters = 3; - * @param value The monotonicConntrackRegisters to set. - * @return This builder for chaining. - */ - public Builder setMonotonicConntrackRegisters(long value) { - - monotonicConntrackRegisters_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 monotonicConntrackRegisters = 3; - * @return This builder for chaining. - */ - public Builder clearMonotonicConntrackRegisters() { - bitField0_ = (bitField0_ & ~0x00000004); - monotonicConntrackRegisters_ = 0L; - onChanged(); - return this; - } - - private long monotonicConntrackRegistersDropped_ ; - /** - * int64 monotonicConntrackRegistersDropped = 4; - * @return The monotonicConntrackRegistersDropped. - */ - @java.lang.Override - public long getMonotonicConntrackRegistersDropped() { - return monotonicConntrackRegistersDropped_; - } - /** - * int64 monotonicConntrackRegistersDropped = 4; - * @param value The monotonicConntrackRegistersDropped to set. - * @return This builder for chaining. - */ - public Builder setMonotonicConntrackRegistersDropped(long value) { - - monotonicConntrackRegistersDropped_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int64 monotonicConntrackRegistersDropped = 4; - * @return This builder for chaining. - */ - public Builder clearMonotonicConntrackRegistersDropped() { - bitField0_ = (bitField0_ & ~0x00000008); - monotonicConntrackRegistersDropped_ = 0L; - onChanged(); - return this; - } - - private long monotonicDnsPacketsProcessed_ ; - /** - * int64 monotonicDnsPacketsProcessed = 5; - * @return The monotonicDnsPacketsProcessed. - */ - @java.lang.Override - public long getMonotonicDnsPacketsProcessed() { - return monotonicDnsPacketsProcessed_; - } - /** - * int64 monotonicDnsPacketsProcessed = 5; - * @param value The monotonicDnsPacketsProcessed to set. - * @return This builder for chaining. - */ - public Builder setMonotonicDnsPacketsProcessed(long value) { - - monotonicDnsPacketsProcessed_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int64 monotonicDnsPacketsProcessed = 5; - * @return This builder for chaining. - */ - public Builder clearMonotonicDnsPacketsProcessed() { - bitField0_ = (bitField0_ & ~0x00000010); - monotonicDnsPacketsProcessed_ = 0L; - onChanged(); - return this; - } - - private long monotonicConnsClosed_ ; - /** - * int64 monotonicConnsClosed = 6; - * @return The monotonicConnsClosed. - */ - @java.lang.Override - public long getMonotonicConnsClosed() { - return monotonicConnsClosed_; - } - /** - * int64 monotonicConnsClosed = 6; - * @param value The monotonicConnsClosed to set. - * @return This builder for chaining. - */ - public Builder setMonotonicConnsClosed(long value) { - - monotonicConnsClosed_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int64 monotonicConnsClosed = 6; - * @return This builder for chaining. - */ - public Builder clearMonotonicConnsClosed() { - bitField0_ = (bitField0_ & ~0x00000020); - monotonicConnsClosed_ = 0L; - onChanged(); - return this; - } - - private long connsBpfMapSize_ ; - /** - * int64 connsBpfMapSize = 7; - * @return The connsBpfMapSize. - */ - @java.lang.Override - public long getConnsBpfMapSize() { - return connsBpfMapSize_; - } - /** - * int64 connsBpfMapSize = 7; - * @param value The connsBpfMapSize to set. - * @return This builder for chaining. - */ - public Builder setConnsBpfMapSize(long value) { - - connsBpfMapSize_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int64 connsBpfMapSize = 7; - * @return This builder for chaining. - */ - public Builder clearConnsBpfMapSize() { - bitField0_ = (bitField0_ & ~0x00000040); - connsBpfMapSize_ = 0L; - onChanged(); - return this; - } - - private long monotonicUdpSendsProcessed_ ; - /** - * int64 monotonicUdpSendsProcessed = 8; - * @return The monotonicUdpSendsProcessed. - */ - @java.lang.Override - public long getMonotonicUdpSendsProcessed() { - return monotonicUdpSendsProcessed_; - } - /** - * int64 monotonicUdpSendsProcessed = 8; - * @param value The monotonicUdpSendsProcessed to set. - * @return This builder for chaining. - */ - public Builder setMonotonicUdpSendsProcessed(long value) { - - monotonicUdpSendsProcessed_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * int64 monotonicUdpSendsProcessed = 8; - * @return This builder for chaining. - */ - public Builder clearMonotonicUdpSendsProcessed() { - bitField0_ = (bitField0_ & ~0x00000080); - monotonicUdpSendsProcessed_ = 0L; - onChanged(); - return this; - } - - private long monotonicUdpSendsMissed_ ; - /** - * int64 monotonicUdpSendsMissed = 9; - * @return The monotonicUdpSendsMissed. - */ - @java.lang.Override - public long getMonotonicUdpSendsMissed() { - return monotonicUdpSendsMissed_; - } - /** - * int64 monotonicUdpSendsMissed = 9; - * @param value The monotonicUdpSendsMissed to set. - * @return This builder for chaining. - */ - public Builder setMonotonicUdpSendsMissed(long value) { - - monotonicUdpSendsMissed_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * int64 monotonicUdpSendsMissed = 9; - * @return This builder for chaining. - */ - public Builder clearMonotonicUdpSendsMissed() { - bitField0_ = (bitField0_ & ~0x00000100); - monotonicUdpSendsMissed_ = 0L; - onChanged(); - return this; - } - - private long conntrackSamplingPercent_ ; - /** - * int64 conntrackSamplingPercent = 10; - * @return The conntrackSamplingPercent. - */ - @java.lang.Override - public long getConntrackSamplingPercent() { - return conntrackSamplingPercent_; - } - /** - * int64 conntrackSamplingPercent = 10; - * @param value The conntrackSamplingPercent to set. - * @return This builder for chaining. - */ - public Builder setConntrackSamplingPercent(long value) { - - conntrackSamplingPercent_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * int64 conntrackSamplingPercent = 10; - * @return This builder for chaining. - */ - public Builder clearConntrackSamplingPercent() { - bitField0_ = (bitField0_ & ~0x00000200); - conntrackSamplingPercent_ = 0L; - onChanged(); - return this; - } - - private long dnsStatsDropped_ ; - /** - * int64 dnsStatsDropped = 11; - * @return The dnsStatsDropped. - */ - @java.lang.Override - public long getDnsStatsDropped() { - return dnsStatsDropped_; - } - /** - * int64 dnsStatsDropped = 11; - * @param value The dnsStatsDropped to set. - * @return This builder for chaining. - */ - public Builder setDnsStatsDropped(long value) { - - dnsStatsDropped_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * int64 dnsStatsDropped = 11; - * @return This builder for chaining. - */ - public Builder clearDnsStatsDropped() { - bitField0_ = (bitField0_ & ~0x00000400); - dnsStatsDropped_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.ConnectionsTelemetry) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.ConnectionsTelemetry) - private static final datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry(); - } - - public static datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionsTelemetry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ConnectionsTelemetry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CollectorConnectionsTelemetryOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.CollectorConnectionsTelemetry) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 kprobesTriggered = 1; - * @return The kprobesTriggered. - */ - long getKprobesTriggered(); - - /** - * int64 kprobesMissed = 2; - * @return The kprobesMissed. - */ - long getKprobesMissed(); - - /** - * int64 conntrackRegisters = 3; - * @return The conntrackRegisters. - */ - long getConntrackRegisters(); - - /** - * int64 conntrackRegistersDropped = 4; - * @return The conntrackRegistersDropped. - */ - long getConntrackRegistersDropped(); - - /** - * int64 dnsPacketsProcessed = 5; - * @return The dnsPacketsProcessed. - */ - long getDnsPacketsProcessed(); - - /** - * int64 connsClosed = 6; - * @return The connsClosed. - */ - long getConnsClosed(); - - /** - * int64 connsBpfMapSize = 7; - * @return The connsBpfMapSize. - */ - long getConnsBpfMapSize(); - - /** - * int64 udpSendsProcessed = 8; - * @return The udpSendsProcessed. - */ - long getUdpSendsProcessed(); - - /** - * int64 udpSendsMissed = 9; - * @return The udpSendsMissed. - */ - long getUdpSendsMissed(); - - /** - * int64 conntrackSamplingPercent = 10; - * @return The conntrackSamplingPercent. - */ - long getConntrackSamplingPercent(); - - /** - * int64 dnsStatsDropped = 11; - * @return The dnsStatsDropped. - */ - long getDnsStatsDropped(); - } - /** - * Protobuf type {@code datadog.process_agent.CollectorConnectionsTelemetry} - */ - public static final class CollectorConnectionsTelemetry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.CollectorConnectionsTelemetry) - CollectorConnectionsTelemetryOrBuilder { - private static final long serialVersionUID = 0L; - // Use CollectorConnectionsTelemetry.newBuilder() to construct. - private CollectorConnectionsTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CollectorConnectionsTelemetry() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CollectorConnectionsTelemetry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder.class); - } - - public static final int KPROBESTRIGGERED_FIELD_NUMBER = 1; - private long kprobesTriggered_ = 0L; - /** - * int64 kprobesTriggered = 1; - * @return The kprobesTriggered. - */ - @java.lang.Override - public long getKprobesTriggered() { - return kprobesTriggered_; - } - - public static final int KPROBESMISSED_FIELD_NUMBER = 2; - private long kprobesMissed_ = 0L; - /** - * int64 kprobesMissed = 2; - * @return The kprobesMissed. - */ - @java.lang.Override - public long getKprobesMissed() { - return kprobesMissed_; - } - - public static final int CONNTRACKREGISTERS_FIELD_NUMBER = 3; - private long conntrackRegisters_ = 0L; - /** - * int64 conntrackRegisters = 3; - * @return The conntrackRegisters. - */ - @java.lang.Override - public long getConntrackRegisters() { - return conntrackRegisters_; - } - - public static final int CONNTRACKREGISTERSDROPPED_FIELD_NUMBER = 4; - private long conntrackRegistersDropped_ = 0L; - /** - * int64 conntrackRegistersDropped = 4; - * @return The conntrackRegistersDropped. - */ - @java.lang.Override - public long getConntrackRegistersDropped() { - return conntrackRegistersDropped_; - } - - public static final int DNSPACKETSPROCESSED_FIELD_NUMBER = 5; - private long dnsPacketsProcessed_ = 0L; - /** - * int64 dnsPacketsProcessed = 5; - * @return The dnsPacketsProcessed. - */ - @java.lang.Override - public long getDnsPacketsProcessed() { - return dnsPacketsProcessed_; - } - - public static final int CONNSCLOSED_FIELD_NUMBER = 6; - private long connsClosed_ = 0L; - /** - * int64 connsClosed = 6; - * @return The connsClosed. - */ - @java.lang.Override - public long getConnsClosed() { - return connsClosed_; - } - - public static final int CONNSBPFMAPSIZE_FIELD_NUMBER = 7; - private long connsBpfMapSize_ = 0L; - /** - * int64 connsBpfMapSize = 7; - * @return The connsBpfMapSize. - */ - @java.lang.Override - public long getConnsBpfMapSize() { - return connsBpfMapSize_; - } - - public static final int UDPSENDSPROCESSED_FIELD_NUMBER = 8; - private long udpSendsProcessed_ = 0L; - /** - * int64 udpSendsProcessed = 8; - * @return The udpSendsProcessed. - */ - @java.lang.Override - public long getUdpSendsProcessed() { - return udpSendsProcessed_; - } - - public static final int UDPSENDSMISSED_FIELD_NUMBER = 9; - private long udpSendsMissed_ = 0L; - /** - * int64 udpSendsMissed = 9; - * @return The udpSendsMissed. - */ - @java.lang.Override - public long getUdpSendsMissed() { - return udpSendsMissed_; - } - - public static final int CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER = 10; - private long conntrackSamplingPercent_ = 0L; - /** - * int64 conntrackSamplingPercent = 10; - * @return The conntrackSamplingPercent. - */ - @java.lang.Override - public long getConntrackSamplingPercent() { - return conntrackSamplingPercent_; - } - - public static final int DNSSTATSDROPPED_FIELD_NUMBER = 11; - private long dnsStatsDropped_ = 0L; - /** - * int64 dnsStatsDropped = 11; - * @return The dnsStatsDropped. - */ - @java.lang.Override - public long getDnsStatsDropped() { - return dnsStatsDropped_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (kprobesTriggered_ != 0L) { - output.writeInt64(1, kprobesTriggered_); - } - if (kprobesMissed_ != 0L) { - output.writeInt64(2, kprobesMissed_); - } - if (conntrackRegisters_ != 0L) { - output.writeInt64(3, conntrackRegisters_); - } - if (conntrackRegistersDropped_ != 0L) { - output.writeInt64(4, conntrackRegistersDropped_); - } - if (dnsPacketsProcessed_ != 0L) { - output.writeInt64(5, dnsPacketsProcessed_); - } - if (connsClosed_ != 0L) { - output.writeInt64(6, connsClosed_); - } - if (connsBpfMapSize_ != 0L) { - output.writeInt64(7, connsBpfMapSize_); - } - if (udpSendsProcessed_ != 0L) { - output.writeInt64(8, udpSendsProcessed_); - } - if (udpSendsMissed_ != 0L) { - output.writeInt64(9, udpSendsMissed_); - } - if (conntrackSamplingPercent_ != 0L) { - output.writeInt64(10, conntrackSamplingPercent_); - } - if (dnsStatsDropped_ != 0L) { - output.writeInt64(11, dnsStatsDropped_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (kprobesTriggered_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, kprobesTriggered_); - } - if (kprobesMissed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, kprobesMissed_); - } - if (conntrackRegisters_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, conntrackRegisters_); - } - if (conntrackRegistersDropped_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, conntrackRegistersDropped_); - } - if (dnsPacketsProcessed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, dnsPacketsProcessed_); - } - if (connsClosed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, connsClosed_); - } - if (connsBpfMapSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, connsBpfMapSize_); - } - if (udpSendsProcessed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, udpSendsProcessed_); - } - if (udpSendsMissed_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, udpSendsMissed_); - } - if (conntrackSamplingPercent_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, conntrackSamplingPercent_); - } - if (dnsStatsDropped_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, dnsStatsDropped_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry other = (datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry) obj; - - if (getKprobesTriggered() - != other.getKprobesTriggered()) return false; - if (getKprobesMissed() - != other.getKprobesMissed()) return false; - if (getConntrackRegisters() - != other.getConntrackRegisters()) return false; - if (getConntrackRegistersDropped() - != other.getConntrackRegistersDropped()) return false; - if (getDnsPacketsProcessed() - != other.getDnsPacketsProcessed()) return false; - if (getConnsClosed() - != other.getConnsClosed()) return false; - if (getConnsBpfMapSize() - != other.getConnsBpfMapSize()) return false; - if (getUdpSendsProcessed() - != other.getUdpSendsProcessed()) return false; - if (getUdpSendsMissed() - != other.getUdpSendsMissed()) return false; - if (getConntrackSamplingPercent() - != other.getConntrackSamplingPercent()) return false; - if (getDnsStatsDropped() - != other.getDnsStatsDropped()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KPROBESTRIGGERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getKprobesTriggered()); - hash = (37 * hash) + KPROBESMISSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getKprobesMissed()); - hash = (37 * hash) + CONNTRACKREGISTERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConntrackRegisters()); - hash = (37 * hash) + CONNTRACKREGISTERSDROPPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConntrackRegistersDropped()); - hash = (37 * hash) + DNSPACKETSPROCESSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsPacketsProcessed()); - hash = (37 * hash) + CONNSCLOSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConnsClosed()); - hash = (37 * hash) + CONNSBPFMAPSIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConnsBpfMapSize()); - hash = (37 * hash) + UDPSENDSPROCESSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUdpSendsProcessed()); - hash = (37 * hash) + UDPSENDSMISSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUdpSendsMissed()); - hash = (37 * hash) + CONNTRACKSAMPLINGPERCENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getConntrackSamplingPercent()); - hash = (37 * hash) + DNSSTATSDROPPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsStatsDropped()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.CollectorConnectionsTelemetry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.CollectorConnectionsTelemetry) - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.class, datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - kprobesTriggered_ = 0L; - kprobesMissed_ = 0L; - conntrackRegisters_ = 0L; - conntrackRegistersDropped_ = 0L; - dnsPacketsProcessed_ = 0L; - connsClosed_ = 0L; - connsBpfMapSize_ = 0L; - udpSendsProcessed_ = 0L; - udpSendsMissed_ = 0L; - conntrackSamplingPercent_ = 0L; - dnsStatsDropped_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry build() { - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry buildPartial() { - datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry result = new datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.kprobesTriggered_ = kprobesTriggered_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.kprobesMissed_ = kprobesMissed_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.conntrackRegisters_ = conntrackRegisters_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.conntrackRegistersDropped_ = conntrackRegistersDropped_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.dnsPacketsProcessed_ = dnsPacketsProcessed_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.connsClosed_ = connsClosed_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.connsBpfMapSize_ = connsBpfMapSize_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.udpSendsProcessed_ = udpSendsProcessed_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.udpSendsMissed_ = udpSendsMissed_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.conntrackSamplingPercent_ = conntrackSamplingPercent_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.dnsStatsDropped_ = dnsStatsDropped_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry other) { - if (other == datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry.getDefaultInstance()) return this; - if (other.getKprobesTriggered() != 0L) { - setKprobesTriggered(other.getKprobesTriggered()); - } - if (other.getKprobesMissed() != 0L) { - setKprobesMissed(other.getKprobesMissed()); - } - if (other.getConntrackRegisters() != 0L) { - setConntrackRegisters(other.getConntrackRegisters()); - } - if (other.getConntrackRegistersDropped() != 0L) { - setConntrackRegistersDropped(other.getConntrackRegistersDropped()); - } - if (other.getDnsPacketsProcessed() != 0L) { - setDnsPacketsProcessed(other.getDnsPacketsProcessed()); - } - if (other.getConnsClosed() != 0L) { - setConnsClosed(other.getConnsClosed()); - } - if (other.getConnsBpfMapSize() != 0L) { - setConnsBpfMapSize(other.getConnsBpfMapSize()); - } - if (other.getUdpSendsProcessed() != 0L) { - setUdpSendsProcessed(other.getUdpSendsProcessed()); - } - if (other.getUdpSendsMissed() != 0L) { - setUdpSendsMissed(other.getUdpSendsMissed()); - } - if (other.getConntrackSamplingPercent() != 0L) { - setConntrackSamplingPercent(other.getConntrackSamplingPercent()); - } - if (other.getDnsStatsDropped() != 0L) { - setDnsStatsDropped(other.getDnsStatsDropped()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - kprobesTriggered_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - kprobesMissed_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - conntrackRegisters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - conntrackRegistersDropped_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - dnsPacketsProcessed_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - connsClosed_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - connsBpfMapSize_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - udpSendsProcessed_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - udpSendsMissed_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - conntrackSamplingPercent_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - dnsStatsDropped_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long kprobesTriggered_ ; - /** - * int64 kprobesTriggered = 1; - * @return The kprobesTriggered. - */ - @java.lang.Override - public long getKprobesTriggered() { - return kprobesTriggered_; - } - /** - * int64 kprobesTriggered = 1; - * @param value The kprobesTriggered to set. - * @return This builder for chaining. - */ - public Builder setKprobesTriggered(long value) { - - kprobesTriggered_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 kprobesTriggered = 1; - * @return This builder for chaining. - */ - public Builder clearKprobesTriggered() { - bitField0_ = (bitField0_ & ~0x00000001); - kprobesTriggered_ = 0L; - onChanged(); - return this; - } - - private long kprobesMissed_ ; - /** - * int64 kprobesMissed = 2; - * @return The kprobesMissed. - */ - @java.lang.Override - public long getKprobesMissed() { - return kprobesMissed_; - } - /** - * int64 kprobesMissed = 2; - * @param value The kprobesMissed to set. - * @return This builder for chaining. - */ - public Builder setKprobesMissed(long value) { - - kprobesMissed_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 kprobesMissed = 2; - * @return This builder for chaining. - */ - public Builder clearKprobesMissed() { - bitField0_ = (bitField0_ & ~0x00000002); - kprobesMissed_ = 0L; - onChanged(); - return this; - } - - private long conntrackRegisters_ ; - /** - * int64 conntrackRegisters = 3; - * @return The conntrackRegisters. - */ - @java.lang.Override - public long getConntrackRegisters() { - return conntrackRegisters_; - } - /** - * int64 conntrackRegisters = 3; - * @param value The conntrackRegisters to set. - * @return This builder for chaining. - */ - public Builder setConntrackRegisters(long value) { - - conntrackRegisters_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 conntrackRegisters = 3; - * @return This builder for chaining. - */ - public Builder clearConntrackRegisters() { - bitField0_ = (bitField0_ & ~0x00000004); - conntrackRegisters_ = 0L; - onChanged(); - return this; - } - - private long conntrackRegistersDropped_ ; - /** - * int64 conntrackRegistersDropped = 4; - * @return The conntrackRegistersDropped. - */ - @java.lang.Override - public long getConntrackRegistersDropped() { - return conntrackRegistersDropped_; - } - /** - * int64 conntrackRegistersDropped = 4; - * @param value The conntrackRegistersDropped to set. - * @return This builder for chaining. - */ - public Builder setConntrackRegistersDropped(long value) { - - conntrackRegistersDropped_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int64 conntrackRegistersDropped = 4; - * @return This builder for chaining. - */ - public Builder clearConntrackRegistersDropped() { - bitField0_ = (bitField0_ & ~0x00000008); - conntrackRegistersDropped_ = 0L; - onChanged(); - return this; - } - - private long dnsPacketsProcessed_ ; - /** - * int64 dnsPacketsProcessed = 5; - * @return The dnsPacketsProcessed. - */ - @java.lang.Override - public long getDnsPacketsProcessed() { - return dnsPacketsProcessed_; - } - /** - * int64 dnsPacketsProcessed = 5; - * @param value The dnsPacketsProcessed to set. - * @return This builder for chaining. - */ - public Builder setDnsPacketsProcessed(long value) { - - dnsPacketsProcessed_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int64 dnsPacketsProcessed = 5; - * @return This builder for chaining. - */ - public Builder clearDnsPacketsProcessed() { - bitField0_ = (bitField0_ & ~0x00000010); - dnsPacketsProcessed_ = 0L; - onChanged(); - return this; - } - - private long connsClosed_ ; - /** - * int64 connsClosed = 6; - * @return The connsClosed. - */ - @java.lang.Override - public long getConnsClosed() { - return connsClosed_; - } - /** - * int64 connsClosed = 6; - * @param value The connsClosed to set. - * @return This builder for chaining. - */ - public Builder setConnsClosed(long value) { - - connsClosed_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int64 connsClosed = 6; - * @return This builder for chaining. - */ - public Builder clearConnsClosed() { - bitField0_ = (bitField0_ & ~0x00000020); - connsClosed_ = 0L; - onChanged(); - return this; - } - - private long connsBpfMapSize_ ; - /** - * int64 connsBpfMapSize = 7; - * @return The connsBpfMapSize. - */ - @java.lang.Override - public long getConnsBpfMapSize() { - return connsBpfMapSize_; - } - /** - * int64 connsBpfMapSize = 7; - * @param value The connsBpfMapSize to set. - * @return This builder for chaining. - */ - public Builder setConnsBpfMapSize(long value) { - - connsBpfMapSize_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int64 connsBpfMapSize = 7; - * @return This builder for chaining. - */ - public Builder clearConnsBpfMapSize() { - bitField0_ = (bitField0_ & ~0x00000040); - connsBpfMapSize_ = 0L; - onChanged(); - return this; - } - - private long udpSendsProcessed_ ; - /** - * int64 udpSendsProcessed = 8; - * @return The udpSendsProcessed. - */ - @java.lang.Override - public long getUdpSendsProcessed() { - return udpSendsProcessed_; - } - /** - * int64 udpSendsProcessed = 8; - * @param value The udpSendsProcessed to set. - * @return This builder for chaining. - */ - public Builder setUdpSendsProcessed(long value) { - - udpSendsProcessed_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * int64 udpSendsProcessed = 8; - * @return This builder for chaining. - */ - public Builder clearUdpSendsProcessed() { - bitField0_ = (bitField0_ & ~0x00000080); - udpSendsProcessed_ = 0L; - onChanged(); - return this; - } - - private long udpSendsMissed_ ; - /** - * int64 udpSendsMissed = 9; - * @return The udpSendsMissed. - */ - @java.lang.Override - public long getUdpSendsMissed() { - return udpSendsMissed_; - } - /** - * int64 udpSendsMissed = 9; - * @param value The udpSendsMissed to set. - * @return This builder for chaining. - */ - public Builder setUdpSendsMissed(long value) { - - udpSendsMissed_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * int64 udpSendsMissed = 9; - * @return This builder for chaining. - */ - public Builder clearUdpSendsMissed() { - bitField0_ = (bitField0_ & ~0x00000100); - udpSendsMissed_ = 0L; - onChanged(); - return this; - } - - private long conntrackSamplingPercent_ ; - /** - * int64 conntrackSamplingPercent = 10; - * @return The conntrackSamplingPercent. - */ - @java.lang.Override - public long getConntrackSamplingPercent() { - return conntrackSamplingPercent_; - } - /** - * int64 conntrackSamplingPercent = 10; - * @param value The conntrackSamplingPercent to set. - * @return This builder for chaining. - */ - public Builder setConntrackSamplingPercent(long value) { - - conntrackSamplingPercent_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * int64 conntrackSamplingPercent = 10; - * @return This builder for chaining. - */ - public Builder clearConntrackSamplingPercent() { - bitField0_ = (bitField0_ & ~0x00000200); - conntrackSamplingPercent_ = 0L; - onChanged(); - return this; - } - - private long dnsStatsDropped_ ; - /** - * int64 dnsStatsDropped = 11; - * @return The dnsStatsDropped. - */ - @java.lang.Override - public long getDnsStatsDropped() { - return dnsStatsDropped_; - } - /** - * int64 dnsStatsDropped = 11; - * @param value The dnsStatsDropped to set. - * @return This builder for chaining. - */ - public Builder setDnsStatsDropped(long value) { - - dnsStatsDropped_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * int64 dnsStatsDropped = 11; - * @return This builder for chaining. - */ - public Builder clearDnsStatsDropped() { - bitField0_ = (bitField0_ & ~0x00000400); - dnsStatsDropped_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.CollectorConnectionsTelemetry) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.CollectorConnectionsTelemetry) - private static final datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry(); - } - - public static datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectorConnectionsTelemetry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.CollectorConnectionsTelemetry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RuntimeCompilationTelemetryOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.RuntimeCompilationTelemetry) - com.google.protobuf.MessageOrBuilder { - - /** - * bool runtimeCompilationEnabled = 1; - * @return The runtimeCompilationEnabled. - */ - boolean getRuntimeCompilationEnabled(); - - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return The enum numeric value on the wire for runtimeCompilationResult. - */ - int getRuntimeCompilationResultValue(); - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return The runtimeCompilationResult. - */ - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult getRuntimeCompilationResult(); - - /** - * int64 runtimeCompilationDuration = 3; - * @return The runtimeCompilationDuration. - */ - long getRuntimeCompilationDuration(); - - /** - *
-     * Field below was deprecated in agent 7.41
-     * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - int getKernelHeaderFetchResultValue(); - /** - *
-     * Field below was deprecated in agent 7.41
-     * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return The kernelHeaderFetchResult. - */ - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult(); - } - /** - * Protobuf type {@code datadog.process_agent.RuntimeCompilationTelemetry} - */ - public static final class RuntimeCompilationTelemetry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.RuntimeCompilationTelemetry) - RuntimeCompilationTelemetryOrBuilder { - private static final long serialVersionUID = 0L; - // Use RuntimeCompilationTelemetry.newBuilder() to construct. - private RuntimeCompilationTelemetry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RuntimeCompilationTelemetry() { - runtimeCompilationResult_ = 0; - kernelHeaderFetchResult_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RuntimeCompilationTelemetry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.class, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.Builder.class); - } - - public static final int RUNTIMECOMPILATIONENABLED_FIELD_NUMBER = 1; - private boolean runtimeCompilationEnabled_ = false; - /** - * bool runtimeCompilationEnabled = 1; - * @return The runtimeCompilationEnabled. - */ - @java.lang.Override - public boolean getRuntimeCompilationEnabled() { - return runtimeCompilationEnabled_; - } - - public static final int RUNTIMECOMPILATIONRESULT_FIELD_NUMBER = 2; - private int runtimeCompilationResult_ = 0; - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return The enum numeric value on the wire for runtimeCompilationResult. - */ - @java.lang.Override public int getRuntimeCompilationResultValue() { - return runtimeCompilationResult_; - } - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return The runtimeCompilationResult. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult getRuntimeCompilationResult() { - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult result = datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.forNumber(runtimeCompilationResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.UNRECOGNIZED : result; - } - - public static final int RUNTIMECOMPILATIONDURATION_FIELD_NUMBER = 3; - private long runtimeCompilationDuration_ = 0L; - /** - * int64 runtimeCompilationDuration = 3; - * @return The runtimeCompilationDuration. - */ - @java.lang.Override - public long getRuntimeCompilationDuration() { - return runtimeCompilationDuration_; - } - - public static final int KERNELHEADERFETCHRESULT_FIELD_NUMBER = 4; - private int kernelHeaderFetchResult_ = 0; - /** - *
-     * Field below was deprecated in agent 7.41
-     * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - @java.lang.Override public int getKernelHeaderFetchResultValue() { - return kernelHeaderFetchResult_; - } - /** - *
-     * Field below was deprecated in agent 7.41
-     * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return The kernelHeaderFetchResult. - */ - @java.lang.Override public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (runtimeCompilationEnabled_ != false) { - output.writeBool(1, runtimeCompilationEnabled_); - } - if (runtimeCompilationResult_ != datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.NotAttempted.getNumber()) { - output.writeEnum(2, runtimeCompilationResult_); - } - if (runtimeCompilationDuration_ != 0L) { - output.writeInt64(3, runtimeCompilationDuration_); - } - if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { - output.writeEnum(4, kernelHeaderFetchResult_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (runtimeCompilationEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, runtimeCompilationEnabled_); - } - if (runtimeCompilationResult_ != datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.NotAttempted.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, runtimeCompilationResult_); - } - if (runtimeCompilationDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, runtimeCompilationDuration_); - } - if (kernelHeaderFetchResult_ != datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.FetchNotAttempted.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, kernelHeaderFetchResult_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry other = (datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry) obj; - - if (getRuntimeCompilationEnabled() - != other.getRuntimeCompilationEnabled()) return false; - if (runtimeCompilationResult_ != other.runtimeCompilationResult_) return false; - if (getRuntimeCompilationDuration() - != other.getRuntimeCompilationDuration()) return false; - if (kernelHeaderFetchResult_ != other.kernelHeaderFetchResult_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RUNTIMECOMPILATIONENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRuntimeCompilationEnabled()); - hash = (37 * hash) + RUNTIMECOMPILATIONRESULT_FIELD_NUMBER; - hash = (53 * hash) + runtimeCompilationResult_; - hash = (37 * hash) + RUNTIMECOMPILATIONDURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRuntimeCompilationDuration()); - hash = (37 * hash) + KERNELHEADERFETCHRESULT_FIELD_NUMBER; - hash = (53 * hash) + kernelHeaderFetchResult_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.RuntimeCompilationTelemetry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.RuntimeCompilationTelemetry) - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.class, datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - runtimeCompilationEnabled_ = false; - runtimeCompilationResult_ = 0; - runtimeCompilationDuration_ = 0L; - kernelHeaderFetchResult_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry build() { - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry buildPartial() { - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry result = new datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.runtimeCompilationEnabled_ = runtimeCompilationEnabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.runtimeCompilationResult_ = runtimeCompilationResult_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.runtimeCompilationDuration_ = runtimeCompilationDuration_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.kernelHeaderFetchResult_ = kernelHeaderFetchResult_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry other) { - if (other == datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry.getDefaultInstance()) return this; - if (other.getRuntimeCompilationEnabled() != false) { - setRuntimeCompilationEnabled(other.getRuntimeCompilationEnabled()); - } - if (other.runtimeCompilationResult_ != 0) { - setRuntimeCompilationResultValue(other.getRuntimeCompilationResultValue()); - } - if (other.getRuntimeCompilationDuration() != 0L) { - setRuntimeCompilationDuration(other.getRuntimeCompilationDuration()); - } - if (other.kernelHeaderFetchResult_ != 0) { - setKernelHeaderFetchResultValue(other.getKernelHeaderFetchResultValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - runtimeCompilationEnabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - runtimeCompilationResult_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - runtimeCompilationDuration_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - kernelHeaderFetchResult_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean runtimeCompilationEnabled_ ; - /** - * bool runtimeCompilationEnabled = 1; - * @return The runtimeCompilationEnabled. - */ - @java.lang.Override - public boolean getRuntimeCompilationEnabled() { - return runtimeCompilationEnabled_; - } - /** - * bool runtimeCompilationEnabled = 1; - * @param value The runtimeCompilationEnabled to set. - * @return This builder for chaining. - */ - public Builder setRuntimeCompilationEnabled(boolean value) { - - runtimeCompilationEnabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool runtimeCompilationEnabled = 1; - * @return This builder for chaining. - */ - public Builder clearRuntimeCompilationEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - runtimeCompilationEnabled_ = false; - onChanged(); - return this; - } - - private int runtimeCompilationResult_ = 0; - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return The enum numeric value on the wire for runtimeCompilationResult. - */ - @java.lang.Override public int getRuntimeCompilationResultValue() { - return runtimeCompilationResult_; - } - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @param value The enum numeric value on the wire for runtimeCompilationResult to set. - * @return This builder for chaining. - */ - public Builder setRuntimeCompilationResultValue(int value) { - runtimeCompilationResult_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return The runtimeCompilationResult. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult getRuntimeCompilationResult() { - datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult result = datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.forNumber(runtimeCompilationResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult.UNRECOGNIZED : result; - } - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @param value The runtimeCompilationResult to set. - * @return This builder for chaining. - */ - public Builder setRuntimeCompilationResult(datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - runtimeCompilationResult_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .datadog.process_agent.RuntimeCompilationResult runtimeCompilationResult = 2; - * @return This builder for chaining. - */ - public Builder clearRuntimeCompilationResult() { - bitField0_ = (bitField0_ & ~0x00000002); - runtimeCompilationResult_ = 0; - onChanged(); - return this; - } - - private long runtimeCompilationDuration_ ; - /** - * int64 runtimeCompilationDuration = 3; - * @return The runtimeCompilationDuration. - */ - @java.lang.Override - public long getRuntimeCompilationDuration() { - return runtimeCompilationDuration_; - } - /** - * int64 runtimeCompilationDuration = 3; - * @param value The runtimeCompilationDuration to set. - * @return This builder for chaining. - */ - public Builder setRuntimeCompilationDuration(long value) { - - runtimeCompilationDuration_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 runtimeCompilationDuration = 3; - * @return This builder for chaining. - */ - public Builder clearRuntimeCompilationDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - runtimeCompilationDuration_ = 0L; - onChanged(); - return this; - } - - private int kernelHeaderFetchResult_ = 0; - /** - *
-       * Field below was deprecated in agent 7.41
-       * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return The enum numeric value on the wire for kernelHeaderFetchResult. - */ - @java.lang.Override public int getKernelHeaderFetchResultValue() { - return kernelHeaderFetchResult_; - } - /** - *
-       * Field below was deprecated in agent 7.41
-       * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @param value The enum numeric value on the wire for kernelHeaderFetchResult to set. - * @return This builder for chaining. - */ - public Builder setKernelHeaderFetchResultValue(int value) { - kernelHeaderFetchResult_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Field below was deprecated in agent 7.41
-       * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return The kernelHeaderFetchResult. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult getKernelHeaderFetchResult() { - datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult result = datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.forNumber(kernelHeaderFetchResult_); - return result == null ? datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult.UNRECOGNIZED : result; - } - /** - *
-       * Field below was deprecated in agent 7.41
-       * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @param value The kernelHeaderFetchResult to set. - * @return This builder for chaining. - */ - public Builder setKernelHeaderFetchResult(datadog.process_agent.ConnectionsOuterClass.KernelHeaderFetchResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - kernelHeaderFetchResult_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Field below was deprecated in agent 7.41
-       * 
- * - * .datadog.process_agent.KernelHeaderFetchResult kernelHeaderFetchResult = 4; - * @return This builder for chaining. - */ - public Builder clearKernelHeaderFetchResult() { - bitField0_ = (bitField0_ & ~0x00000008); - kernelHeaderFetchResult_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.RuntimeCompilationTelemetry) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.RuntimeCompilationTelemetry) - private static final datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry(); - } - - public static datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeCompilationTelemetry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RuntimeCompilationTelemetry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AgentConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.AgentConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * bool npmEnabled = 1; - * @return The npmEnabled. - */ - boolean getNpmEnabled(); - - /** - * bool usmEnabled = 2; - * @return The usmEnabled. - */ - boolean getUsmEnabled(); - - /** - * bool dsmEnabled = 3; - * @return The dsmEnabled. - */ - boolean getDsmEnabled(); - } - /** - * Protobuf type {@code datadog.process_agent.AgentConfiguration} - */ - public static final class AgentConfiguration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.AgentConfiguration) - AgentConfigurationOrBuilder { - private static final long serialVersionUID = 0L; - // Use AgentConfiguration.newBuilder() to construct. - private AgentConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AgentConfiguration() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AgentConfiguration(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.class, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder.class); - } - - public static final int NPMENABLED_FIELD_NUMBER = 1; - private boolean npmEnabled_ = false; - /** - * bool npmEnabled = 1; - * @return The npmEnabled. - */ - @java.lang.Override - public boolean getNpmEnabled() { - return npmEnabled_; - } - - public static final int USMENABLED_FIELD_NUMBER = 2; - private boolean usmEnabled_ = false; - /** - * bool usmEnabled = 2; - * @return The usmEnabled. - */ - @java.lang.Override - public boolean getUsmEnabled() { - return usmEnabled_; - } - - public static final int DSMENABLED_FIELD_NUMBER = 3; - private boolean dsmEnabled_ = false; - /** - * bool dsmEnabled = 3; - * @return The dsmEnabled. - */ - @java.lang.Override - public boolean getDsmEnabled() { - return dsmEnabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (npmEnabled_ != false) { - output.writeBool(1, npmEnabled_); - } - if (usmEnabled_ != false) { - output.writeBool(2, usmEnabled_); - } - if (dsmEnabled_ != false) { - output.writeBool(3, dsmEnabled_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (npmEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, npmEnabled_); - } - if (usmEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, usmEnabled_); - } - if (dsmEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, dsmEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.AgentConfiguration)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration other = (datadog.process_agent.ConnectionsOuterClass.AgentConfiguration) obj; - - if (getNpmEnabled() - != other.getNpmEnabled()) return false; - if (getUsmEnabled() - != other.getUsmEnabled()) return false; - if (getDsmEnabled() - != other.getDsmEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NPMENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNpmEnabled()); - hash = (37 * hash) + USMENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUsmEnabled()); - hash = (37 * hash) + DSMENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDsmEnabled()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.AgentConfiguration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.AgentConfiguration) - datadog.process_agent.ConnectionsOuterClass.AgentConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.class, datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - npmEnabled_ = false; - usmEnabled_ = false; - dsmEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_AgentConfiguration_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration build() { - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration buildPartial() { - datadog.process_agent.ConnectionsOuterClass.AgentConfiguration result = new datadog.process_agent.ConnectionsOuterClass.AgentConfiguration(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.npmEnabled_ = npmEnabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.usmEnabled_ = usmEnabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.dsmEnabled_ = dsmEnabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.AgentConfiguration) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.AgentConfiguration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.AgentConfiguration other) { - if (other == datadog.process_agent.ConnectionsOuterClass.AgentConfiguration.getDefaultInstance()) return this; - if (other.getNpmEnabled() != false) { - setNpmEnabled(other.getNpmEnabled()); - } - if (other.getUsmEnabled() != false) { - setUsmEnabled(other.getUsmEnabled()); - } - if (other.getDsmEnabled() != false) { - setDsmEnabled(other.getDsmEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - npmEnabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - usmEnabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - dsmEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean npmEnabled_ ; - /** - * bool npmEnabled = 1; - * @return The npmEnabled. - */ - @java.lang.Override - public boolean getNpmEnabled() { - return npmEnabled_; - } - /** - * bool npmEnabled = 1; - * @param value The npmEnabled to set. - * @return This builder for chaining. - */ - public Builder setNpmEnabled(boolean value) { - - npmEnabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool npmEnabled = 1; - * @return This builder for chaining. - */ - public Builder clearNpmEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - npmEnabled_ = false; - onChanged(); - return this; - } - - private boolean usmEnabled_ ; - /** - * bool usmEnabled = 2; - * @return The usmEnabled. - */ - @java.lang.Override - public boolean getUsmEnabled() { - return usmEnabled_; - } - /** - * bool usmEnabled = 2; - * @param value The usmEnabled to set. - * @return This builder for chaining. - */ - public Builder setUsmEnabled(boolean value) { - - usmEnabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool usmEnabled = 2; - * @return This builder for chaining. - */ - public Builder clearUsmEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - usmEnabled_ = false; - onChanged(); - return this; - } - - private boolean dsmEnabled_ ; - /** - * bool dsmEnabled = 3; - * @return The dsmEnabled. - */ - @java.lang.Override - public boolean getDsmEnabled() { - return dsmEnabled_; - } - /** - * bool dsmEnabled = 3; - * @param value The dsmEnabled to set. - * @return This builder for chaining. - */ - public Builder setDsmEnabled(boolean value) { - - dsmEnabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool dsmEnabled = 3; - * @return This builder for chaining. - */ - public Builder clearDsmEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - dsmEnabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.AgentConfiguration) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.AgentConfiguration) - private static final datadog.process_agent.ConnectionsOuterClass.AgentConfiguration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.AgentConfiguration(); - } - - public static datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.AgentConfiguration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RouteOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.Route) - com.google.protobuf.MessageOrBuilder { - - /** - * .datadog.process_agent.Subnet subnet = 1; - * @return Whether the subnet field is set. - */ - boolean hasSubnet(); - /** - * .datadog.process_agent.Subnet subnet = 1; - * @return The subnet. - */ - datadog.process_agent.ConnectionsOuterClass.Subnet getSubnet(); - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder getSubnetOrBuilder(); - } - /** - * Protobuf type {@code datadog.process_agent.Route} - */ - public static final class Route extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.Route) - RouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use Route.newBuilder() to construct. - private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Route() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Route(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Route.class, datadog.process_agent.ConnectionsOuterClass.Route.Builder.class); - } - - public static final int SUBNET_FIELD_NUMBER = 1; - private datadog.process_agent.ConnectionsOuterClass.Subnet subnet_; - /** - * .datadog.process_agent.Subnet subnet = 1; - * @return Whether the subnet field is set. - */ - @java.lang.Override - public boolean hasSubnet() { - return subnet_ != null; - } - /** - * .datadog.process_agent.Subnet subnet = 1; - * @return The subnet. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Subnet getSubnet() { - return subnet_ == null ? datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder getSubnetOrBuilder() { - return subnet_ == null ? datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (subnet_ != null) { - output.writeMessage(1, getSubnet()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubnet()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Route)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.Route other = (datadog.process_agent.ConnectionsOuterClass.Route) obj; - - if (hasSubnet() != other.hasSubnet()) return false; - if (hasSubnet()) { - if (!getSubnet() - .equals(other.getSubnet())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSubnet()) { - hash = (37 * hash) + SUBNET_FIELD_NUMBER; - hash = (53 * hash) + getSubnet().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Route parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Route prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.Route} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.Route) - datadog.process_agent.ConnectionsOuterClass.RouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Route.class, datadog.process_agent.ConnectionsOuterClass.Route.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.Route.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subnet_ = null; - if (subnetBuilder_ != null) { - subnetBuilder_.dispose(); - subnetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Route_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Route getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Route build() { - datadog.process_agent.ConnectionsOuterClass.Route result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Route buildPartial() { - datadog.process_agent.ConnectionsOuterClass.Route result = new datadog.process_agent.ConnectionsOuterClass.Route(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Route result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subnet_ = subnetBuilder_ == null - ? subnet_ - : subnetBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.Route) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Route)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Route other) { - if (other == datadog.process_agent.ConnectionsOuterClass.Route.getDefaultInstance()) return this; - if (other.hasSubnet()) { - mergeSubnet(other.getSubnet()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getSubnetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private datadog.process_agent.ConnectionsOuterClass.Subnet subnet_; - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Subnet, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder, datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder> subnetBuilder_; - /** - * .datadog.process_agent.Subnet subnet = 1; - * @return Whether the subnet field is set. - */ - public boolean hasSubnet() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .datadog.process_agent.Subnet subnet = 1; - * @return The subnet. - */ - public datadog.process_agent.ConnectionsOuterClass.Subnet getSubnet() { - if (subnetBuilder_ == null) { - return subnet_ == null ? datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; - } else { - return subnetBuilder_.getMessage(); - } - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - public Builder setSubnet(datadog.process_agent.ConnectionsOuterClass.Subnet value) { - if (subnetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subnet_ = value; - } else { - subnetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - public Builder setSubnet( - datadog.process_agent.ConnectionsOuterClass.Subnet.Builder builderForValue) { - if (subnetBuilder_ == null) { - subnet_ = builderForValue.build(); - } else { - subnetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - public Builder mergeSubnet(datadog.process_agent.ConnectionsOuterClass.Subnet value) { - if (subnetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - subnet_ != null && - subnet_ != datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance()) { - getSubnetBuilder().mergeFrom(value); - } else { - subnet_ = value; - } - } else { - subnetBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - public Builder clearSubnet() { - bitField0_ = (bitField0_ & ~0x00000001); - subnet_ = null; - if (subnetBuilder_ != null) { - subnetBuilder_.dispose(); - subnetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.Subnet.Builder getSubnetBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSubnetFieldBuilder().getBuilder(); - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - public datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder getSubnetOrBuilder() { - if (subnetBuilder_ != null) { - return subnetBuilder_.getMessageOrBuilder(); - } else { - return subnet_ == null ? - datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance() : subnet_; - } - } - /** - * .datadog.process_agent.Subnet subnet = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Subnet, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder, datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder> - getSubnetFieldBuilder() { - if (subnetBuilder_ == null) { - subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datadog.process_agent.ConnectionsOuterClass.Subnet, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder, datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder>( - getSubnet(), - getParentForChildren(), - isClean()); - subnet_ = null; - } - return subnetBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.Route) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.Route) - private static final datadog.process_agent.ConnectionsOuterClass.Route DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Route(); - } - - public static datadog.process_agent.ConnectionsOuterClass.Route getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Route getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SubnetOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.Subnet) - com.google.protobuf.MessageOrBuilder { - - /** - * string alias = 1; - * @return The alias. - */ - java.lang.String getAlias(); - /** - * string alias = 1; - * @return The bytes for alias. - */ - com.google.protobuf.ByteString - getAliasBytes(); - } - /** - * Protobuf type {@code datadog.process_agent.Subnet} - */ - public static final class Subnet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.Subnet) - SubnetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Subnet.newBuilder() to construct. - private Subnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Subnet() { - alias_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Subnet(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Subnet.class, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder.class); - } - - public static final int ALIAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object alias_ = ""; - /** - * string alias = 1; - * @return The alias. - */ - @java.lang.Override - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - * string alias = 1; - * @return The bytes for alias. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Subnet)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.Subnet other = (datadog.process_agent.ConnectionsOuterClass.Subnet) obj; - - if (!getAlias() - .equals(other.getAlias())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Subnet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Subnet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.Subnet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.Subnet) - datadog.process_agent.ConnectionsOuterClass.SubnetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Subnet.class, datadog.process_agent.ConnectionsOuterClass.Subnet.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.Subnet.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - alias_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Subnet_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Subnet getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Subnet build() { - datadog.process_agent.ConnectionsOuterClass.Subnet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Subnet buildPartial() { - datadog.process_agent.ConnectionsOuterClass.Subnet result = new datadog.process_agent.ConnectionsOuterClass.Subnet(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Subnet result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.alias_ = alias_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.Subnet) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Subnet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Subnet other) { - if (other == datadog.process_agent.ConnectionsOuterClass.Subnet.getDefaultInstance()) return this; - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - alias_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object alias_ = ""; - /** - * string alias = 1; - * @return The alias. - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string alias = 1; - * @return The bytes for alias. - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string alias = 1; - * @param value The alias to set. - * @return This builder for chaining. - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - alias_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string alias = 1; - * @return This builder for chaining. - */ - public Builder clearAlias() { - alias_ = getDefaultInstance().getAlias(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string alias = 1; - * @param value The bytes for alias to set. - * @return This builder for chaining. - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - alias_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.Subnet) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.Subnet) - private static final datadog.process_agent.ConnectionsOuterClass.Subnet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Subnet(); - } - - public static datadog.process_agent.ConnectionsOuterClass.Subnet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subnet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Subnet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RouteMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.RouteMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * string alias = 1; - * @return The alias. - */ - java.lang.String getAlias(); - /** - * string alias = 1; - * @return The bytes for alias. - */ - com.google.protobuf.ByteString - getAliasBytes(); - - /** - * int32 tagIndex = 2; - * @return The tagIndex. - */ - int getTagIndex(); - - /** - * int64 tagsModified = 3; - * @return The tagsModified. - */ - long getTagsModified(); - - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @return A list containing the tags. - */ - java.util.List - getTagsList(); - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @return The count of tags. - */ - int getTagsCount(); - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - } - /** - * Protobuf type {@code datadog.process_agent.RouteMetadata} - */ - public static final class RouteMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.RouteMetadata) - RouteMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use RouteMetadata.newBuilder() to construct. - private RouteMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RouteMetadata() { - alias_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RouteMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.RouteMetadata.class, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder.class); - } - - public static final int ALIAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object alias_ = ""; - /** - * string alias = 1; - * @return The alias. - */ - @java.lang.Override - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - * string alias = 1; - * @return The bytes for alias. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAGINDEX_FIELD_NUMBER = 2; - private int tagIndex_ = 0; - /** - * int32 tagIndex = 2; - * @return The tagIndex. - */ - @java.lang.Override - public int getTagIndex() { - return tagIndex_; - } - - public static final int TAGSMODIFIED_FIELD_NUMBER = 3; - private long tagsModified_ = 0L; - /** - * int64 tagsModified = 3; - * @return The tagsModified. - */ - @java.lang.Override - public long getTagsModified() { - return tagsModified_; - } - - public static final int TAGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * Used only on the backend
-     * 
- * - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); - } - if (tagIndex_ != 0) { - output.writeInt32(2, tagIndex_); - } - if (tagsModified_ != 0L) { - output.writeInt64(3, tagsModified_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); - } - if (tagIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, tagIndex_); - } - if (tagsModified_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, tagsModified_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.RouteMetadata)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.RouteMetadata other = (datadog.process_agent.ConnectionsOuterClass.RouteMetadata) obj; - - if (!getAlias() - .equals(other.getAlias())) return false; - if (getTagIndex() - != other.getTagIndex()) return false; - if (getTagsModified() - != other.getTagsModified()) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (37 * hash) + TAGINDEX_FIELD_NUMBER; - hash = (53 * hash) + getTagIndex(); - hash = (37 * hash) + TAGSMODIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTagsModified()); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.RouteMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.RouteMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.RouteMetadata) - datadog.process_agent.ConnectionsOuterClass.RouteMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.RouteMetadata.class, datadog.process_agent.ConnectionsOuterClass.RouteMetadata.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.RouteMetadata.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - alias_ = ""; - tagIndex_ = 0; - tagsModified_ = 0L; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_RouteMetadata_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata build() { - datadog.process_agent.ConnectionsOuterClass.RouteMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata buildPartial() { - datadog.process_agent.ConnectionsOuterClass.RouteMetadata result = new datadog.process_agent.ConnectionsOuterClass.RouteMetadata(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.RouteMetadata result) { - if (((bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tags_ = tags_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.RouteMetadata result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.alias_ = alias_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagIndex_ = tagIndex_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagsModified_ = tagsModified_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.RouteMetadata) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.RouteMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.RouteMetadata other) { - if (other == datadog.process_agent.ConnectionsOuterClass.RouteMetadata.getDefaultInstance()) return this; - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getTagIndex() != 0) { - setTagIndex(other.getTagIndex()); - } - if (other.getTagsModified() != 0L) { - setTagsModified(other.getTagsModified()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - alias_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - tagIndex_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - tagsModified_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object alias_ = ""; - /** - * string alias = 1; - * @return The alias. - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string alias = 1; - * @return The bytes for alias. - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string alias = 1; - * @param value The alias to set. - * @return This builder for chaining. - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - alias_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string alias = 1; - * @return This builder for chaining. - */ - public Builder clearAlias() { - alias_ = getDefaultInstance().getAlias(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string alias = 1; - * @param value The bytes for alias to set. - * @return This builder for chaining. - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - alias_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int tagIndex_ ; - /** - * int32 tagIndex = 2; - * @return The tagIndex. - */ - @java.lang.Override - public int getTagIndex() { - return tagIndex_; - } - /** - * int32 tagIndex = 2; - * @param value The tagIndex to set. - * @return This builder for chaining. - */ - public Builder setTagIndex(int value) { - - tagIndex_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 tagIndex = 2; - * @return This builder for chaining. - */ - public Builder clearTagIndex() { - bitField0_ = (bitField0_ & ~0x00000002); - tagIndex_ = 0; - onChanged(); - return this; - } - - private long tagsModified_ ; - /** - * int64 tagsModified = 3; - * @return The tagsModified. - */ - @java.lang.Override - public long getTagsModified() { - return tagsModified_; - } - /** - * int64 tagsModified = 3; - * @param value The tagsModified to set. - * @return This builder for chaining. - */ - public Builder setTagsModified(long value) { - - tagsModified_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 tagsModified = 3; - * @return This builder for chaining. - */ - public Builder clearTagsModified() { - bitField0_ = (bitField0_ & ~0x00000004); - tagsModified_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       * Used only on the backend
-       * 
- * - * repeated string tags = 4; - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.RouteMetadata) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.RouteMetadata) - private static final datadog.process_agent.ConnectionsOuterClass.RouteMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.RouteMetadata(); - } - - public static datadog.process_agent.ConnectionsOuterClass.RouteMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.RouteMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IPTranslationOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.IPTranslation) - com.google.protobuf.MessageOrBuilder { - - /** - * string replSrcIP = 1; - * @return The replSrcIP. - */ - java.lang.String getReplSrcIP(); - /** - * string replSrcIP = 1; - * @return The bytes for replSrcIP. - */ - com.google.protobuf.ByteString - getReplSrcIPBytes(); - - /** - * string replDstIP = 2; - * @return The replDstIP. - */ - java.lang.String getReplDstIP(); - /** - * string replDstIP = 2; - * @return The bytes for replDstIP. - */ - com.google.protobuf.ByteString - getReplDstIPBytes(); - - /** - * int32 replSrcPort = 3; - * @return The replSrcPort. - */ - int getReplSrcPort(); - - /** - * int32 replDstPort = 4; - * @return The replDstPort. - */ - int getReplDstPort(); - } - /** - * Protobuf type {@code datadog.process_agent.IPTranslation} - */ - public static final class IPTranslation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.IPTranslation) - IPTranslationOrBuilder { - private static final long serialVersionUID = 0L; - // Use IPTranslation.newBuilder() to construct. - private IPTranslation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IPTranslation() { - replSrcIP_ = ""; - replDstIP_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IPTranslation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.IPTranslation.class, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder.class); - } - - public static final int REPLSRCIP_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object replSrcIP_ = ""; - /** - * string replSrcIP = 1; - * @return The replSrcIP. - */ - @java.lang.Override - public java.lang.String getReplSrcIP() { - java.lang.Object ref = replSrcIP_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - replSrcIP_ = s; - return s; - } - } - /** - * string replSrcIP = 1; - * @return The bytes for replSrcIP. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReplSrcIPBytes() { - java.lang.Object ref = replSrcIP_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - replSrcIP_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPLDSTIP_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object replDstIP_ = ""; - /** - * string replDstIP = 2; - * @return The replDstIP. - */ - @java.lang.Override - public java.lang.String getReplDstIP() { - java.lang.Object ref = replDstIP_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - replDstIP_ = s; - return s; - } - } - /** - * string replDstIP = 2; - * @return The bytes for replDstIP. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReplDstIPBytes() { - java.lang.Object ref = replDstIP_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - replDstIP_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPLSRCPORT_FIELD_NUMBER = 3; - private int replSrcPort_ = 0; - /** - * int32 replSrcPort = 3; - * @return The replSrcPort. - */ - @java.lang.Override - public int getReplSrcPort() { - return replSrcPort_; - } - - public static final int REPLDSTPORT_FIELD_NUMBER = 4; - private int replDstPort_ = 0; - /** - * int32 replDstPort = 4; - * @return The replDstPort. - */ - @java.lang.Override - public int getReplDstPort() { - return replDstPort_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replSrcIP_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replSrcIP_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replDstIP_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, replDstIP_); - } - if (replSrcPort_ != 0) { - output.writeInt32(3, replSrcPort_); - } - if (replDstPort_ != 0) { - output.writeInt32(4, replDstPort_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replSrcIP_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replSrcIP_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replDstIP_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replDstIP_); - } - if (replSrcPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, replSrcPort_); - } - if (replDstPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, replDstPort_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.IPTranslation)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.IPTranslation other = (datadog.process_agent.ConnectionsOuterClass.IPTranslation) obj; - - if (!getReplSrcIP() - .equals(other.getReplSrcIP())) return false; - if (!getReplDstIP() - .equals(other.getReplDstIP())) return false; - if (getReplSrcPort() - != other.getReplSrcPort()) return false; - if (getReplDstPort() - != other.getReplDstPort()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REPLSRCIP_FIELD_NUMBER; - hash = (53 * hash) + getReplSrcIP().hashCode(); - hash = (37 * hash) + REPLDSTIP_FIELD_NUMBER; - hash = (53 * hash) + getReplDstIP().hashCode(); - hash = (37 * hash) + REPLSRCPORT_FIELD_NUMBER; - hash = (53 * hash) + getReplSrcPort(); - hash = (37 * hash) + REPLDSTPORT_FIELD_NUMBER; - hash = (53 * hash) + getReplDstPort(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.IPTranslation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.IPTranslation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.IPTranslation) - datadog.process_agent.ConnectionsOuterClass.IPTranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.IPTranslation.class, datadog.process_agent.ConnectionsOuterClass.IPTranslation.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.IPTranslation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - replSrcIP_ = ""; - replDstIP_ = ""; - replSrcPort_ = 0; - replDstPort_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_IPTranslation_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.IPTranslation getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.IPTranslation build() { - datadog.process_agent.ConnectionsOuterClass.IPTranslation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.IPTranslation buildPartial() { - datadog.process_agent.ConnectionsOuterClass.IPTranslation result = new datadog.process_agent.ConnectionsOuterClass.IPTranslation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.IPTranslation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.replSrcIP_ = replSrcIP_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.replDstIP_ = replDstIP_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.replSrcPort_ = replSrcPort_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.replDstPort_ = replDstPort_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.IPTranslation) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.IPTranslation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.IPTranslation other) { - if (other == datadog.process_agent.ConnectionsOuterClass.IPTranslation.getDefaultInstance()) return this; - if (!other.getReplSrcIP().isEmpty()) { - replSrcIP_ = other.replSrcIP_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getReplDstIP().isEmpty()) { - replDstIP_ = other.replDstIP_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getReplSrcPort() != 0) { - setReplSrcPort(other.getReplSrcPort()); - } - if (other.getReplDstPort() != 0) { - setReplDstPort(other.getReplDstPort()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - replSrcIP_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - replDstIP_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - replSrcPort_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - replDstPort_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object replSrcIP_ = ""; - /** - * string replSrcIP = 1; - * @return The replSrcIP. - */ - public java.lang.String getReplSrcIP() { - java.lang.Object ref = replSrcIP_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - replSrcIP_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string replSrcIP = 1; - * @return The bytes for replSrcIP. - */ - public com.google.protobuf.ByteString - getReplSrcIPBytes() { - java.lang.Object ref = replSrcIP_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - replSrcIP_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string replSrcIP = 1; - * @param value The replSrcIP to set. - * @return This builder for chaining. - */ - public Builder setReplSrcIP( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - replSrcIP_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string replSrcIP = 1; - * @return This builder for chaining. - */ - public Builder clearReplSrcIP() { - replSrcIP_ = getDefaultInstance().getReplSrcIP(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string replSrcIP = 1; - * @param value The bytes for replSrcIP to set. - * @return This builder for chaining. - */ - public Builder setReplSrcIPBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - replSrcIP_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object replDstIP_ = ""; - /** - * string replDstIP = 2; - * @return The replDstIP. - */ - public java.lang.String getReplDstIP() { - java.lang.Object ref = replDstIP_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - replDstIP_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string replDstIP = 2; - * @return The bytes for replDstIP. - */ - public com.google.protobuf.ByteString - getReplDstIPBytes() { - java.lang.Object ref = replDstIP_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - replDstIP_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string replDstIP = 2; - * @param value The replDstIP to set. - * @return This builder for chaining. - */ - public Builder setReplDstIP( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - replDstIP_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string replDstIP = 2; - * @return This builder for chaining. - */ - public Builder clearReplDstIP() { - replDstIP_ = getDefaultInstance().getReplDstIP(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string replDstIP = 2; - * @param value The bytes for replDstIP to set. - * @return This builder for chaining. - */ - public Builder setReplDstIPBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - replDstIP_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int replSrcPort_ ; - /** - * int32 replSrcPort = 3; - * @return The replSrcPort. - */ - @java.lang.Override - public int getReplSrcPort() { - return replSrcPort_; - } - /** - * int32 replSrcPort = 3; - * @param value The replSrcPort to set. - * @return This builder for chaining. - */ - public Builder setReplSrcPort(int value) { - - replSrcPort_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int32 replSrcPort = 3; - * @return This builder for chaining. - */ - public Builder clearReplSrcPort() { - bitField0_ = (bitField0_ & ~0x00000004); - replSrcPort_ = 0; - onChanged(); - return this; - } - - private int replDstPort_ ; - /** - * int32 replDstPort = 4; - * @return The replDstPort. - */ - @java.lang.Override - public int getReplDstPort() { - return replDstPort_; - } - /** - * int32 replDstPort = 4; - * @param value The replDstPort to set. - * @return This builder for chaining. - */ - public Builder setReplDstPort(int value) { - - replDstPort_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int32 replDstPort = 4; - * @return This builder for chaining. - */ - public Builder clearReplDstPort() { - bitField0_ = (bitField0_ & ~0x00000008); - replDstPort_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.IPTranslation) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.IPTranslation) - private static final datadog.process_agent.ConnectionsOuterClass.IPTranslation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.IPTranslation(); - } - - public static datadog.process_agent.ConnectionsOuterClass.IPTranslation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IPTranslation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.IPTranslation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddrOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.Addr) - com.google.protobuf.MessageOrBuilder { - - /** - * string ip = 2; - * @return The ip. - */ - java.lang.String getIp(); - /** - * string ip = 2; - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - * int32 port = 3; - * @return The port. - */ - int getPort(); - - /** - *
-     * post-resolution field
-     * 
- * - * string containerId = 5; - * @return The containerId. - */ - java.lang.String getContainerId(); - /** - *
-     * post-resolution field
-     * 
- * - * string containerId = 5; - * @return The bytes for containerId. - */ - com.google.protobuf.ByteString - getContainerIdBytes(); - - /** - *
-     * post-resolution field
-     * 
- * - * string hostName = 7; - * @return The hostName. - */ - java.lang.String getHostName(); - /** - *
-     * post-resolution field
-     * 
- * - * string hostName = 7; - * @return The bytes for hostName. - */ - com.google.protobuf.ByteString - getHostNameBytes(); - } - /** - * Protobuf type {@code datadog.process_agent.Addr} - */ - public static final class Addr extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.Addr) - AddrOrBuilder { - private static final long serialVersionUID = 0L; - // Use Addr.newBuilder() to construct. - private Addr(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Addr() { - ip_ = ""; - containerId_ = ""; - hostName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Addr(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Addr.class, datadog.process_agent.ConnectionsOuterClass.Addr.Builder.class); - } - - public static final int IP_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; - /** - * string ip = 2; - * @return The ip. - */ - @java.lang.Override - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - * string ip = 2; - * @return The bytes for ip. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 3; - private int port_ = 0; - /** - * int32 port = 3; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - - public static final int CONTAINERID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object containerId_ = ""; - /** - *
-     * post-resolution field
-     * 
- * - * string containerId = 5; - * @return The containerId. - */ - @java.lang.Override - public java.lang.String getContainerId() { - java.lang.Object ref = containerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - containerId_ = s; - return s; - } - } - /** - *
-     * post-resolution field
-     * 
- * - * string containerId = 5; - * @return The bytes for containerId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContainerIdBytes() { - java.lang.Object ref = containerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - containerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HOSTNAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object hostName_ = ""; - /** - *
-     * post-resolution field
-     * 
- * - * string hostName = 7; - * @return The hostName. - */ - @java.lang.Override - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } - } - /** - *
-     * post-resolution field
-     * 
- * - * string hostName = 7; - * @return The bytes for hostName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ip_); - } - if (port_ != 0) { - output.writeInt32(3, port_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, containerId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hostName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ip_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, port_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, containerId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hostName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.Addr)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.Addr other = (datadog.process_agent.ConnectionsOuterClass.Addr) obj; - - if (!getIp() - .equals(other.getIp())) return false; - if (getPort() - != other.getPort()) return false; - if (!getContainerId() - .equals(other.getContainerId())) return false; - if (!getHostName() - .equals(other.getHostName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; - hash = (53 * hash) + getContainerId().hashCode(); - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.Addr parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.Addr prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.Addr} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.Addr) - datadog.process_agent.ConnectionsOuterClass.AddrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.Addr.class, datadog.process_agent.ConnectionsOuterClass.Addr.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.Addr.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ip_ = ""; - port_ = 0; - containerId_ = ""; - hostName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_Addr_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Addr getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Addr build() { - datadog.process_agent.ConnectionsOuterClass.Addr result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Addr buildPartial() { - datadog.process_agent.ConnectionsOuterClass.Addr result = new datadog.process_agent.ConnectionsOuterClass.Addr(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.Addr result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ip_ = ip_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.port_ = port_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.containerId_ = containerId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.hostName_ = hostName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.Addr) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.Addr)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.Addr other) { - if (other == datadog.process_agent.ConnectionsOuterClass.Addr.getDefaultInstance()) return this; - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - if (!other.getContainerId().isEmpty()) { - containerId_ = other.containerId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getHostName().isEmpty()) { - hostName_ = other.hostName_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - ip_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 24: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 42: { - containerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 42 - case 58: { - hostName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object ip_ = ""; - /** - * string ip = 2; - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ip = 2; - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ip = 2; - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ip_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string ip = 2; - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string ip = 2; - * @param value The bytes for ip to set. - * @return This builder for chaining. - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ip_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int port_ ; - /** - * int32 port = 3; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - /** - * int32 port = 3; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 port = 3; - * @return This builder for chaining. - */ - public Builder clearPort() { - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - onChanged(); - return this; - } - - private java.lang.Object containerId_ = ""; - /** - *
-       * post-resolution field
-       * 
- * - * string containerId = 5; - * @return The containerId. - */ - public java.lang.String getContainerId() { - java.lang.Object ref = containerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - containerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * post-resolution field
-       * 
- * - * string containerId = 5; - * @return The bytes for containerId. - */ - public com.google.protobuf.ByteString - getContainerIdBytes() { - java.lang.Object ref = containerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - containerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * post-resolution field
-       * 
- * - * string containerId = 5; - * @param value The containerId to set. - * @return This builder for chaining. - */ - public Builder setContainerId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - containerId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * post-resolution field
-       * 
- * - * string containerId = 5; - * @return This builder for chaining. - */ - public Builder clearContainerId() { - containerId_ = getDefaultInstance().getContainerId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * post-resolution field
-       * 
- * - * string containerId = 5; - * @param value The bytes for containerId to set. - * @return This builder for chaining. - */ - public Builder setContainerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - containerId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object hostName_ = ""; - /** - *
-       * post-resolution field
-       * 
- * - * string hostName = 7; - * @return The hostName. - */ - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * post-resolution field
-       * 
- * - * string hostName = 7; - * @return The bytes for hostName. - */ - public com.google.protobuf.ByteString - getHostNameBytes() { - java.lang.Object ref = hostName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * post-resolution field
-       * 
- * - * string hostName = 7; - * @param value The hostName to set. - * @return This builder for chaining. - */ - public Builder setHostName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - hostName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * post-resolution field
-       * 
- * - * string hostName = 7; - * @return This builder for chaining. - */ - public Builder clearHostName() { - hostName_ = getDefaultInstance().getHostName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       * post-resolution field
-       * 
- * - * string hostName = 7; - * @param value The bytes for hostName to set. - * @return This builder for chaining. - */ - public Builder setHostNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - hostName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.Addr) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.Addr) - private static final datadog.process_agent.ConnectionsOuterClass.Addr DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.Addr(); - } - - public static datadog.process_agent.ConnectionsOuterClass.Addr getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Addr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.Addr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtocolStackOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.ProtocolStack) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return A list containing the stack. - */ - java.util.List getStackList(); - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return The count of stack. - */ - int getStackCount(); - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index of the element to return. - * @return The stack at the given index. - */ - datadog.process_agent.ConnectionsOuterClass.ProtocolType getStack(int index); - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return A list containing the enum numeric values on the wire for stack. - */ - java.util.List - getStackValueList(); - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of stack at the given index. - */ - int getStackValue(int index); - } - /** - * Protobuf type {@code datadog.process_agent.ProtocolStack} - */ - public static final class ProtocolStack extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.ProtocolStack) - ProtocolStackOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtocolStack.newBuilder() to construct. - private ProtocolStack(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtocolStack() { - stack_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProtocolStack(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.ProtocolStack.class, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder.class); - } - - public static final int STACK_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List stack_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType> stack_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType>() { - public datadog.process_agent.ConnectionsOuterClass.ProtocolType convert(java.lang.Integer from) { - datadog.process_agent.ConnectionsOuterClass.ProtocolType result = datadog.process_agent.ConnectionsOuterClass.ProtocolType.forNumber(from); - return result == null ? datadog.process_agent.ConnectionsOuterClass.ProtocolType.UNRECOGNIZED : result; - } - }; - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return A list containing the stack. - */ - @java.lang.Override - public java.util.List getStackList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType>(stack_, stack_converter_); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return The count of stack. - */ - @java.lang.Override - public int getStackCount() { - return stack_.size(); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index of the element to return. - * @return The stack at the given index. - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolType getStack(int index) { - return stack_converter_.convert(stack_.get(index)); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return A list containing the enum numeric values on the wire for stack. - */ - @java.lang.Override - public java.util.List - getStackValueList() { - return stack_; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of stack at the given index. - */ - @java.lang.Override - public int getStackValue(int index) { - return stack_.get(index); - } - private int stackMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getStackList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(stackMemoizedSerializedSize); - } - for (int i = 0; i < stack_.size(); i++) { - output.writeEnumNoTag(stack_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < stack_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(stack_.get(i)); - } - size += dataSize; - if (!getStackList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }stackMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.ProtocolStack)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.ProtocolStack other = (datadog.process_agent.ConnectionsOuterClass.ProtocolStack) obj; - - if (!stack_.equals(other.stack_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getStackCount() > 0) { - hash = (37 * hash) + STACK_FIELD_NUMBER; - hash = (53 * hash) + stack_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.ProtocolStack prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.ProtocolStack} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.ProtocolStack) - datadog.process_agent.ConnectionsOuterClass.ProtocolStackOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.ProtocolStack.class, datadog.process_agent.ConnectionsOuterClass.ProtocolStack.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.ProtocolStack.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - stack_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_ProtocolStack_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack build() { - datadog.process_agent.ConnectionsOuterClass.ProtocolStack result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack buildPartial() { - datadog.process_agent.ConnectionsOuterClass.ProtocolStack result = new datadog.process_agent.ConnectionsOuterClass.ProtocolStack(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.ProtocolStack result) { - if (((bitField0_ & 0x00000001) != 0)) { - stack_ = java.util.Collections.unmodifiableList(stack_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.stack_ = stack_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.ProtocolStack result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.ProtocolStack) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.ProtocolStack)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.ProtocolStack other) { - if (other == datadog.process_agent.ConnectionsOuterClass.ProtocolStack.getDefaultInstance()) return this; - if (!other.stack_.isEmpty()) { - if (stack_.isEmpty()) { - stack_ = other.stack_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStackIsMutable(); - stack_.addAll(other.stack_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int tmpRaw = input.readEnum(); - ensureStackIsMutable(); - stack_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureStackIsMutable(); - stack_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List stack_ = - java.util.Collections.emptyList(); - private void ensureStackIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - stack_ = new java.util.ArrayList(stack_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return A list containing the stack. - */ - public java.util.List getStackList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.ProtocolType>(stack_, stack_converter_); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return The count of stack. - */ - public int getStackCount() { - return stack_.size(); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index of the element to return. - * @return The stack at the given index. - */ - public datadog.process_agent.ConnectionsOuterClass.ProtocolType getStack(int index) { - return stack_converter_.convert(stack_.get(index)); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index to set the value at. - * @param value The stack to set. - * @return This builder for chaining. - */ - public Builder setStack( - int index, datadog.process_agent.ConnectionsOuterClass.ProtocolType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStackIsMutable(); - stack_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param value The stack to add. - * @return This builder for chaining. - */ - public Builder addStack(datadog.process_agent.ConnectionsOuterClass.ProtocolType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStackIsMutable(); - stack_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param values The stack to add. - * @return This builder for chaining. - */ - public Builder addAllStack( - java.lang.Iterable values) { - ensureStackIsMutable(); - for (datadog.process_agent.ConnectionsOuterClass.ProtocolType value : values) { - stack_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return This builder for chaining. - */ - public Builder clearStack() { - stack_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @return A list containing the enum numeric values on the wire for stack. - */ - public java.util.List - getStackValueList() { - return java.util.Collections.unmodifiableList(stack_); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of stack at the given index. - */ - public int getStackValue(int index) { - return stack_.get(index); - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for stack to set. - * @return This builder for chaining. - */ - public Builder setStackValue( - int index, int value) { - ensureStackIsMutable(); - stack_.set(index, value); - onChanged(); - return this; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param value The enum numeric value on the wire for stack to add. - * @return This builder for chaining. - */ - public Builder addStackValue(int value) { - ensureStackIsMutable(); - stack_.add(value); - onChanged(); - return this; - } - /** - * repeated .datadog.process_agent.ProtocolType stack = 1; - * @param values The enum numeric values on the wire for stack to add. - * @return This builder for chaining. - */ - public Builder addAllStackValue( - java.lang.Iterable values) { - ensureStackIsMutable(); - for (int value : values) { - stack_.add(value); - } - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.ProtocolStack) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.ProtocolStack) - private static final datadog.process_agent.ConnectionsOuterClass.ProtocolStack DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.ProtocolStack(); - } - - public static datadog.process_agent.ConnectionsOuterClass.ProtocolStack getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtocolStack parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.ProtocolStack getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DNSEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.DNSEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string names = 1; - * @return A list containing the names. - */ - java.util.List - getNamesList(); - /** - * repeated string names = 1; - * @return The count of names. - */ - int getNamesCount(); - /** - * repeated string names = 1; - * @param index The index of the element to return. - * @return The names at the given index. - */ - java.lang.String getNames(int index); - /** - * repeated string names = 1; - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - com.google.protobuf.ByteString - getNamesBytes(int index); - } - /** - * Protobuf type {@code datadog.process_agent.DNSEntry} - */ - public static final class DNSEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.DNSEntry) - DNSEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use DNSEntry.newBuilder() to construct. - private DNSEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DNSEntry() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DNSEntry(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.DNSEntry.class, datadog.process_agent.ConnectionsOuterClass.DNSEntry.Builder.class); - } - - public static final int NAMES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList names_; - /** - * repeated string names = 1; - * @return A list containing the names. - */ - public com.google.protobuf.ProtocolStringList - getNamesList() { - return names_; - } - /** - * repeated string names = 1; - * @return The count of names. - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - * @param index The index of the element to return. - * @return The names at the given index. - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < names_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < names_.size(); i++) { - dataSize += computeStringSizeNoTag(names_.getRaw(i)); - } - size += dataSize; - size += 1 * getNamesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.DNSEntry)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.DNSEntry other = (datadog.process_agent.ConnectionsOuterClass.DNSEntry) obj; - - if (!getNamesList() - .equals(other.getNamesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNamesCount() > 0) { - hash = (37 * hash) + NAMES_FIELD_NUMBER; - hash = (53 * hash) + getNamesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.DNSEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.DNSEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.DNSEntry) - datadog.process_agent.ConnectionsOuterClass.DNSEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.DNSEntry.class, datadog.process_agent.ConnectionsOuterClass.DNSEntry.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.DNSEntry.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSEntry_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.DNSEntry.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSEntry build() { - datadog.process_agent.ConnectionsOuterClass.DNSEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSEntry buildPartial() { - datadog.process_agent.ConnectionsOuterClass.DNSEntry result = new datadog.process_agent.ConnectionsOuterClass.DNSEntry(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(datadog.process_agent.ConnectionsOuterClass.DNSEntry result) { - if (((bitField0_ & 0x00000001) != 0)) { - names_ = names_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.names_ = names_; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.DNSEntry result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.DNSEntry) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.DNSEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.DNSEntry other) { - if (other == datadog.process_agent.ConnectionsOuterClass.DNSEntry.getDefaultInstance()) return this; - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNamesIsMutable(); - names_.addAll(other.names_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNamesIsMutable(); - names_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string names = 1; - * @return A list containing the names. - */ - public com.google.protobuf.ProtocolStringList - getNamesList() { - return names_.getUnmodifiableView(); - } - /** - * repeated string names = 1; - * @return The count of names. - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - * @param index The index of the element to return. - * @return The names at the given index. - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - /** - * repeated string names = 1; - * @param index The index to set the value at. - * @param value The names to set. - * @return This builder for chaining. - */ - public Builder setNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNamesIsMutable(); - names_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - * @param value The names to add. - * @return This builder for chaining. - */ - public Builder addNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - * @param values The names to add. - * @return This builder for chaining. - */ - public Builder addAllNames( - java.lang.Iterable values) { - ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, names_); - onChanged(); - return this; - } - /** - * repeated string names = 1; - * @return This builder for chaining. - */ - public Builder clearNames() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string names = 1; - * @param value The bytes of the names to add. - * @return This builder for chaining. - */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.DNSEntry) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.DNSEntry) - private static final datadog.process_agent.ConnectionsOuterClass.DNSEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.DNSEntry(); - } - - public static datadog.process_agent.ConnectionsOuterClass.DNSEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DNSEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DNSStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.DNSStats) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 dnsTimeouts = 1; - * @return The dnsTimeouts. - */ - int getDnsTimeouts(); - - /** - * uint64 dnsSuccessLatencySum = 2; - * @return The dnsSuccessLatencySum. - */ - long getDnsSuccessLatencySum(); - - /** - * uint64 dnsFailureLatencySum = 3; - * @return The dnsFailureLatencySum. - */ - long getDnsFailureLatencySum(); - - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - int getDnsCountByRcodeCount(); - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - boolean containsDnsCountByRcode( - int key); - /** - * Use {@link #getDnsCountByRcodeMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDnsCountByRcode(); - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - java.util.Map - getDnsCountByRcodeMap(); - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - int getDnsCountByRcodeOrDefault( - int key, - int defaultValue); - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - int getDnsCountByRcodeOrThrow( - int key); - } - /** - * Protobuf type {@code datadog.process_agent.DNSStats} - */ - public static final class DNSStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.DNSStats) - DNSStatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use DNSStats.newBuilder() to construct. - private DNSStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DNSStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DNSStats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetDnsCountByRcode(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.DNSStats.class, datadog.process_agent.ConnectionsOuterClass.DNSStats.Builder.class); - } - - public static final int DNSTIMEOUTS_FIELD_NUMBER = 1; - private int dnsTimeouts_ = 0; - /** - * uint32 dnsTimeouts = 1; - * @return The dnsTimeouts. - */ - @java.lang.Override - public int getDnsTimeouts() { - return dnsTimeouts_; - } - - public static final int DNSSUCCESSLATENCYSUM_FIELD_NUMBER = 2; - private long dnsSuccessLatencySum_ = 0L; - /** - * uint64 dnsSuccessLatencySum = 2; - * @return The dnsSuccessLatencySum. - */ - @java.lang.Override - public long getDnsSuccessLatencySum() { - return dnsSuccessLatencySum_; - } - - public static final int DNSFAILURELATENCYSUM_FIELD_NUMBER = 3; - private long dnsFailureLatencySum_ = 0L; - /** - * uint64 dnsFailureLatencySum = 3; - * @return The dnsFailureLatencySum. - */ - @java.lang.Override - public long getDnsFailureLatencySum() { - return dnsFailureLatencySum_; - } - - public static final int DNSCOUNTBYRCODE_FIELD_NUMBER = 4; - private static final class DnsCountByRcodeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0, - com.google.protobuf.WireFormat.FieldType.UINT32, - 0); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> dnsCountByRcode_; - private com.google.protobuf.MapField - internalGetDnsCountByRcode() { - if (dnsCountByRcode_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsCountByRcodeDefaultEntryHolder.defaultEntry); - } - return dnsCountByRcode_; - } - public int getDnsCountByRcodeCount() { - return internalGetDnsCountByRcode().getMap().size(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public boolean containsDnsCountByRcode( - int key) { - - return internalGetDnsCountByRcode().getMap().containsKey(key); - } - /** - * Use {@link #getDnsCountByRcodeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsCountByRcode() { - return getDnsCountByRcodeMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public java.util.Map getDnsCountByRcodeMap() { - return internalGetDnsCountByRcode().getMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public int getDnsCountByRcodeOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public int getDnsCountByRcodeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dnsTimeouts_ != 0) { - output.writeUInt32(1, dnsTimeouts_); - } - if (dnsSuccessLatencySum_ != 0L) { - output.writeUInt64(2, dnsSuccessLatencySum_); - } - if (dnsFailureLatencySum_ != 0L) { - output.writeUInt64(3, dnsFailureLatencySum_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetDnsCountByRcode(), - DnsCountByRcodeDefaultEntryHolder.defaultEntry, - 4); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dnsTimeouts_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, dnsTimeouts_); - } - if (dnsSuccessLatencySum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, dnsSuccessLatencySum_); - } - if (dnsFailureLatencySum_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, dnsFailureLatencySum_); - } - for (java.util.Map.Entry entry - : internalGetDnsCountByRcode().getMap().entrySet()) { - com.google.protobuf.MapEntry - dnsCountByRcode__ = DnsCountByRcodeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, dnsCountByRcode__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.DNSStats)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.DNSStats other = (datadog.process_agent.ConnectionsOuterClass.DNSStats) obj; - - if (getDnsTimeouts() - != other.getDnsTimeouts()) return false; - if (getDnsSuccessLatencySum() - != other.getDnsSuccessLatencySum()) return false; - if (getDnsFailureLatencySum() - != other.getDnsFailureLatencySum()) return false; - if (!internalGetDnsCountByRcode().equals( - other.internalGetDnsCountByRcode())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DNSTIMEOUTS_FIELD_NUMBER; - hash = (53 * hash) + getDnsTimeouts(); - hash = (37 * hash) + DNSSUCCESSLATENCYSUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsSuccessLatencySum()); - hash = (37 * hash) + DNSFAILURELATENCYSUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDnsFailureLatencySum()); - if (!internalGetDnsCountByRcode().getMap().isEmpty()) { - hash = (37 * hash) + DNSCOUNTBYRCODE_FIELD_NUMBER; - hash = (53 * hash) + internalGetDnsCountByRcode().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.DNSStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.DNSStats} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.DNSStats) - datadog.process_agent.ConnectionsOuterClass.DNSStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetDnsCountByRcode(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableDnsCountByRcode(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.DNSStats.class, datadog.process_agent.ConnectionsOuterClass.DNSStats.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.DNSStats.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dnsTimeouts_ = 0; - dnsSuccessLatencySum_ = 0L; - dnsFailureLatencySum_ = 0L; - internalGetMutableDnsCountByRcode().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStats_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats build() { - datadog.process_agent.ConnectionsOuterClass.DNSStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats buildPartial() { - datadog.process_agent.ConnectionsOuterClass.DNSStats result = new datadog.process_agent.ConnectionsOuterClass.DNSStats(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.DNSStats result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dnsTimeouts_ = dnsTimeouts_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dnsSuccessLatencySum_ = dnsSuccessLatencySum_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.dnsFailureLatencySum_ = dnsFailureLatencySum_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dnsCountByRcode_ = internalGetDnsCountByRcode(); - result.dnsCountByRcode_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.DNSStats) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.DNSStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.DNSStats other) { - if (other == datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance()) return this; - if (other.getDnsTimeouts() != 0) { - setDnsTimeouts(other.getDnsTimeouts()); - } - if (other.getDnsSuccessLatencySum() != 0L) { - setDnsSuccessLatencySum(other.getDnsSuccessLatencySum()); - } - if (other.getDnsFailureLatencySum() != 0L) { - setDnsFailureLatencySum(other.getDnsFailureLatencySum()); - } - internalGetMutableDnsCountByRcode().mergeFrom( - other.internalGetDnsCountByRcode()); - bitField0_ |= 0x00000008; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - dnsTimeouts_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - dnsSuccessLatencySum_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - dnsFailureLatencySum_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - com.google.protobuf.MapEntry - dnsCountByRcode__ = input.readMessage( - DnsCountByRcodeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDnsCountByRcode().getMutableMap().put( - dnsCountByRcode__.getKey(), dnsCountByRcode__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int dnsTimeouts_ ; - /** - * uint32 dnsTimeouts = 1; - * @return The dnsTimeouts. - */ - @java.lang.Override - public int getDnsTimeouts() { - return dnsTimeouts_; - } - /** - * uint32 dnsTimeouts = 1; - * @param value The dnsTimeouts to set. - * @return This builder for chaining. - */ - public Builder setDnsTimeouts(int value) { - - dnsTimeouts_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 dnsTimeouts = 1; - * @return This builder for chaining. - */ - public Builder clearDnsTimeouts() { - bitField0_ = (bitField0_ & ~0x00000001); - dnsTimeouts_ = 0; - onChanged(); - return this; - } - - private long dnsSuccessLatencySum_ ; - /** - * uint64 dnsSuccessLatencySum = 2; - * @return The dnsSuccessLatencySum. - */ - @java.lang.Override - public long getDnsSuccessLatencySum() { - return dnsSuccessLatencySum_; - } - /** - * uint64 dnsSuccessLatencySum = 2; - * @param value The dnsSuccessLatencySum to set. - * @return This builder for chaining. - */ - public Builder setDnsSuccessLatencySum(long value) { - - dnsSuccessLatencySum_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 dnsSuccessLatencySum = 2; - * @return This builder for chaining. - */ - public Builder clearDnsSuccessLatencySum() { - bitField0_ = (bitField0_ & ~0x00000002); - dnsSuccessLatencySum_ = 0L; - onChanged(); - return this; - } - - private long dnsFailureLatencySum_ ; - /** - * uint64 dnsFailureLatencySum = 3; - * @return The dnsFailureLatencySum. - */ - @java.lang.Override - public long getDnsFailureLatencySum() { - return dnsFailureLatencySum_; - } - /** - * uint64 dnsFailureLatencySum = 3; - * @param value The dnsFailureLatencySum to set. - * @return This builder for chaining. - */ - public Builder setDnsFailureLatencySum(long value) { - - dnsFailureLatencySum_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 dnsFailureLatencySum = 3; - * @return This builder for chaining. - */ - public Builder clearDnsFailureLatencySum() { - bitField0_ = (bitField0_ & ~0x00000004); - dnsFailureLatencySum_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> dnsCountByRcode_; - private com.google.protobuf.MapField - internalGetDnsCountByRcode() { - if (dnsCountByRcode_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsCountByRcodeDefaultEntryHolder.defaultEntry); - } - return dnsCountByRcode_; - } - private com.google.protobuf.MapField - internalGetMutableDnsCountByRcode() { - if (dnsCountByRcode_ == null) { - dnsCountByRcode_ = com.google.protobuf.MapField.newMapField( - DnsCountByRcodeDefaultEntryHolder.defaultEntry); - } - if (!dnsCountByRcode_.isMutable()) { - dnsCountByRcode_ = dnsCountByRcode_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - return dnsCountByRcode_; - } - public int getDnsCountByRcodeCount() { - return internalGetDnsCountByRcode().getMap().size(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public boolean containsDnsCountByRcode( - int key) { - - return internalGetDnsCountByRcode().getMap().containsKey(key); - } - /** - * Use {@link #getDnsCountByRcodeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsCountByRcode() { - return getDnsCountByRcodeMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public java.util.Map getDnsCountByRcodeMap() { - return internalGetDnsCountByRcode().getMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public int getDnsCountByRcodeOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - @java.lang.Override - public int getDnsCountByRcodeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsCountByRcode().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDnsCountByRcode() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableDnsCountByRcode().getMutableMap() - .clear(); - return this; - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - public Builder removeDnsCountByRcode( - int key) { - - internalGetMutableDnsCountByRcode().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDnsCountByRcode() { - bitField0_ |= 0x00000008; - return internalGetMutableDnsCountByRcode().getMutableMap(); - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - public Builder putDnsCountByRcode( - int key, - int value) { - - - internalGetMutableDnsCountByRcode().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000008; - return this; - } - /** - * map<uint32, uint32> dnsCountByRcode = 4; - */ - public Builder putAllDnsCountByRcode( - java.util.Map values) { - internalGetMutableDnsCountByRcode().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000008; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.DNSStats) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.DNSStats) - private static final datadog.process_agent.ConnectionsOuterClass.DNSStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.DNSStats(); - } - - public static datadog.process_agent.ConnectionsOuterClass.DNSStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DNSStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DNSStatsByQueryTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:datadog.process_agent.DNSStatsByQueryType) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - int getDnsStatsByQueryTypeCount(); - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - boolean containsDnsStatsByQueryType( - int key); - /** - * Use {@link #getDnsStatsByQueryTypeMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDnsStatsByQueryType(); - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - java.util.Map - getDnsStatsByQueryTypeMap(); - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue); - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrThrow( - int key); - } - /** - * Protobuf type {@code datadog.process_agent.DNSStatsByQueryType} - */ - public static final class DNSStatsByQueryType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datadog.process_agent.DNSStatsByQueryType) - DNSStatsByQueryTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use DNSStatsByQueryType.newBuilder() to construct. - private DNSStatsByQueryType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DNSStatsByQueryType() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DNSStatsByQueryType(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetDnsStatsByQueryType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.class, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.Builder.class); - } - - public static final int DNSSTATSBYQUERYTYPE_FIELD_NUMBER = 1; - private static final class DnsStatsByQueryTypeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - datadog.process_agent.ConnectionsOuterClass.DNSStats.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByQueryType_; - private com.google.protobuf.MapField - internalGetDnsStatsByQueryType() { - if (dnsStatsByQueryType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry); - } - return dnsStatsByQueryType_; - } - public int getDnsStatsByQueryTypeCount() { - return internalGetDnsStatsByQueryType().getMap().size(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public boolean containsDnsStatsByQueryType( - int key) { - - return internalGetDnsStatsByQueryType().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByQueryTypeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByQueryType() { - return getDnsStatsByQueryTypeMap(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public java.util.Map getDnsStatsByQueryTypeMap() { - return internalGetDnsStatsByQueryType().getMap(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { - - java.util.Map map = - internalGetDnsStatsByQueryType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByQueryType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetDnsStatsByQueryType(), - DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry, - 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetDnsStatsByQueryType().getMap().entrySet()) { - com.google.protobuf.MapEntry - dnsStatsByQueryType__ = DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dnsStatsByQueryType__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType)) { - return super.equals(obj); - } - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType other = (datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType) obj; - - if (!internalGetDnsStatsByQueryType().equals( - other.internalGetDnsStatsByQueryType())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetDnsStatsByQueryType().getMap().isEmpty()) { - hash = (37 * hash) + DNSSTATSBYQUERYTYPE_FIELD_NUMBER; - hash = (53 * hash) + internalGetDnsStatsByQueryType().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code datadog.process_agent.DNSStatsByQueryType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datadog.process_agent.DNSStatsByQueryType) - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetDnsStatsByQueryType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableDnsStatsByQueryType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.class, datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.Builder.class); - } - - // Construct using datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableDnsStatsByQueryType().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datadog.process_agent.ConnectionsOuterClass.internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDefaultInstanceForType() { - return datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance(); - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType build() { - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType buildPartial() { - datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType result = new datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dnsStatsByQueryType_ = internalGetDnsStatsByQueryType(); - result.dnsStatsByQueryType_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType) { - return mergeFrom((datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType other) { - if (other == datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType.getDefaultInstance()) return this; - internalGetMutableDnsStatsByQueryType().mergeFrom( - other.internalGetDnsStatsByQueryType()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.MapEntry - dnsStatsByQueryType__ = input.readMessage( - DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDnsStatsByQueryType().getMutableMap().put( - dnsStatsByQueryType__.getKey(), dnsStatsByQueryType__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, datadog.process_agent.ConnectionsOuterClass.DNSStats> dnsStatsByQueryType_; - private com.google.protobuf.MapField - internalGetDnsStatsByQueryType() { - if (dnsStatsByQueryType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry); - } - return dnsStatsByQueryType_; - } - private com.google.protobuf.MapField - internalGetMutableDnsStatsByQueryType() { - if (dnsStatsByQueryType_ == null) { - dnsStatsByQueryType_ = com.google.protobuf.MapField.newMapField( - DnsStatsByQueryTypeDefaultEntryHolder.defaultEntry); - } - if (!dnsStatsByQueryType_.isMutable()) { - dnsStatsByQueryType_ = dnsStatsByQueryType_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return dnsStatsByQueryType_; - } - public int getDnsStatsByQueryTypeCount() { - return internalGetDnsStatsByQueryType().getMap().size(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public boolean containsDnsStatsByQueryType( - int key) { - - return internalGetDnsStatsByQueryType().getMap().containsKey(key); - } - /** - * Use {@link #getDnsStatsByQueryTypeMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getDnsStatsByQueryType() { - return getDnsStatsByQueryTypeMap(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public java.util.Map getDnsStatsByQueryTypeMap() { - return internalGetDnsStatsByQueryType().getMap(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrDefault( - int key, - /* nullable */ -datadog.process_agent.ConnectionsOuterClass.DNSStats defaultValue) { - - java.util.Map map = - internalGetDnsStatsByQueryType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStats getDnsStatsByQueryTypeOrThrow( - int key) { - - java.util.Map map = - internalGetDnsStatsByQueryType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearDnsStatsByQueryType() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableDnsStatsByQueryType().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - public Builder removeDnsStatsByQueryType( - int key) { - - internalGetMutableDnsStatsByQueryType().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDnsStatsByQueryType() { - bitField0_ |= 0x00000001; - return internalGetMutableDnsStatsByQueryType().getMutableMap(); - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - public Builder putDnsStatsByQueryType( - int key, - datadog.process_agent.ConnectionsOuterClass.DNSStats value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDnsStatsByQueryType().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .datadog.process_agent.DNSStats> dnsStatsByQueryType = 1; - */ - public Builder putAllDnsStatsByQueryType( - java.util.Map values) { - internalGetMutableDnsStatsByQueryType().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:datadog.process_agent.DNSStatsByQueryType) - } - - // @@protoc_insertion_point(class_scope:datadog.process_agent.DNSStatsByQueryType) - private static final datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType(); - } - - public static datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DNSStatsByQueryType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public datadog.process_agent.ConnectionsOuterClass.DNSStatsByQueryType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connections_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connections_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connections_DnsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connections_DnsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_ResourceMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_AgentConfiguration_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Route_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Route_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Subnet_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Subnet_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_RouteMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_IPTranslation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_Addr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_Addr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_ProtocolStack_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_DNSEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_DNSStats_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_DNSStats_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037proto/process/connections.proto\022\025datad" + - "og.process_agent\032\031proto/process/agent.pr" + - "oto\"\265\017\n\024CollectorConnections\022\020\n\010hostName" + - "\030\002 \001(\t\022\021\n\tnetworkId\030\014 \001(\t\0226\n\013connections" + - "\030\003 \003(\0132!.datadog.process_agent.Connectio" + - "n\022\017\n\007groupId\030\005 \001(\005\022\021\n\tgroupSize\030\006 \001(\005\022]\n" + - "\021resolvedResources\030\010 \003(\0132B.datadog.proce" + - "ss_agent.CollectorConnections.ResolvedRe" + - "sourcesEntry\022Y\n\017containerForPid\030\n \003(\0132@." + - "datadog.process_agent.CollectorConnectio" + - "ns.ContainerForPidEntry\022\023\n\013encodedTags\030\013" + - " \001(\014\022\036\n\026encodedConnectionsTags\030& \001(\014\022C\n\021" + - "containerHostType\030\017 \001(\0162(.datadog.proces" + - "s_agent.ContainerHostType\022K\n\rconnTelemet" + - "ry\030\020 \001(\01324.datadog.process_agent.Collect" + - "orConnectionsTelemetry\022[\n\020connTelemetryM" + - "ap\030\' \003(\0132A.datadog.process_agent.Collect" + - "orConnections.ConnTelemetryMapEntry\022\024\n\014a" + - "rchitecture\030\021 \001(\t\022\025\n\rkernelVersion\030\022 \001(\t" + - "\022\020\n\010platform\030\023 \001(\t\022\027\n\017platformVersion\030\024 " + - "\001(\t\022q\n\033compilationTelemetryByAsset\030\025 \003(\013" + - "2L.datadog.process_agent.CollectorConnec" + - "tions.CompilationTelemetryByAssetEntry\022O" + - "\n\027kernelHeaderFetchResult\030) \001(\0162..datado" + - "g.process_agent.KernelHeaderFetchResult\022" + - "c\n\024CORETelemetryByAsset\030* \003(\0132E.datadog." + - "process_agent.CollectorConnections.CORET" + - "elemetryByAssetEntry\022\032\n\022PrebuiltEBPFAsse" + - "ts\030, \003(\t\022,\n\006routes\030\037 \003(\0132\034.datadog.proce" + - "ss_agent.Route\022;\n\rrouteMetadata\030\" \003(\0132$." + - "datadog.process_agent.RouteMetadata\022E\n\022a" + - "gentConfiguration\030# \001(\0132).datadog.proces" + - "s_agent.AgentConfiguration\022\022\n\nencodedDNS" + - "\030\016 \001(\014\022\017\n\007domains\030\036 \003(\t\022\035\n\025encodedDomain" + - "Database\030$ \001(\014\022\031\n\021encodedDnsLookups\030% \001(" + - "\014\022a\n\023resolvedHostsByName\030( \003(\0132D.datadog" + - ".process_agent.CollectorConnections.Reso" + - "lvedHostsByNameEntry\032a\n\026ResolvedResource" + - "sEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.dat" + - "adog.process_agent.ResourceMetadata:\0028\001\032" + - "6\n\024ContainerForPidEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\0327\n\025ConnTelemetryMapEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\032v\n Comp" + - "ilationTelemetryByAssetEntry\022\013\n\003key\030\001 \001(" + - "\t\022A\n\005value\030\002 \001(\01322.datadog.process_agent" + - ".RuntimeCompilationTelemetry:\0028\001\032^\n\031CORE" + - "TelemetryByAssetEntry\022\013\n\003key\030\001 \001(\t\0220\n\005va" + - "lue\030\002 \001(\0162!.datadog.process_agent.CORERe" + - "sult:\0028\001\032W\n\030ResolvedHostsByNameEntry\022\013\n\003" + - "key\030\001 \001(\t\022*\n\005value\030\002 \001(\0132\033.datadog.proce" + - "ss_agent.Host:\0028\001J\004\010\001\020\002J\004\010\004\020\005J\004\010\007\020\010J\004\010\t\020" + - "\nJ\004\010\r\020\016J\004\010 \020!J\004\010!\020\"\"\266\010\n\013Connections\0220\n\005c" + - "onns\030\001 \003(\0132!.datadog.process_agent.Conne" + - "ction\0228\n\003dns\030\002 \003(\0132+.datadog.process_age" + - "nt.Connections.DnsEntry\022B\n\rconnTelemetry" + - "\030\003 \001(\0132+.datadog.process_agent.Connectio" + - "nsTelemetry\022\017\n\007domains\030\004 \003(\t\022,\n\006routes\030\005" + - " \003(\0132\034.datadog.process_agent.Route\022h\n\033co" + - "mpilationTelemetryByAsset\030\006 \003(\0132C.datado" + - "g.process_agent.Connections.CompilationT" + - "elemetryByAssetEntry\022E\n\022agentConfigurati" + - "on\030\007 \001(\0132).datadog.process_agent.AgentCo" + - "nfiguration\022\014\n\004tags\030\010 \003(\t\022R\n\020connTelemet" + - "ryMap\030\t \003(\01328.datadog.process_agent.Conn" + - "ections.ConnTelemetryMapEntry\022O\n\027kernelH" + - "eaderFetchResult\030\n \001(\0162..datadog.process" + - "_agent.KernelHeaderFetchResult\022Z\n\024CORETe" + - "lemetryByAsset\030\013 \003(\0132<.datadog.process_a" + - "gent.Connections.CORETelemetryByAssetEnt" + - "ry\022\032\n\022PrebuiltEBPFAssets\030\014 \003(\t\032K\n\010DnsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.datadog" + - ".process_agent.DNSEntry:\0028\001\032v\n Compilati" + - "onTelemetryByAssetEntry\022\013\n\003key\030\001 \001(\t\022A\n\005" + - "value\030\002 \001(\01322.datadog.process_agent.Runt" + - "imeCompilationTelemetry:\0028\001\0327\n\025ConnTelem" + - "etryMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003" + - ":\0028\001\032^\n\031CORETelemetryByAssetEntry\022\013\n\003key" + - "\030\001 \001(\t\0220\n\005value\030\002 \001(\0162!.datadog.process_" + - "agent.COREResult:\0028\001\"\372\016\n\nConnection\022\013\n\003p" + - "id\030\001 \001(\005\022*\n\005laddr\030\005 \001(\0132\033.datadog.proces" + - "s_agent.Addr\022*\n\005raddr\030\006 \001(\0132\033.datadog.pr" + - "ocess_agent.Addr\0227\n\006family\030\n \001(\0162\'.datad" + - "og.process_agent.ConnectionFamily\0223\n\004typ" + - "e\030\013 \001(\0162%.datadog.process_agent.Connecti" + - "onType\022G\n\024isLocalPortEphemeral\030) \001(\0162).d" + - "atadog.process_agent.EphemeralPortState\022" + - "\025\n\rlastBytesSent\030\020 \001(\004\022\031\n\021lastBytesRecei" + - "ved\030\021 \001(\004\022\027\n\017lastRetransmits\030\022 \001(\r\022=\n\tdi" + - "rection\030\023 \001(\0162*.datadog.process_agent.Co" + - "nnectionDirection\022\027\n\017lastPacketsSent\030& \001" + - "(\004\022\033\n\023lastPacketsReceived\030\' \001(\004\0226\n\010proto" + - "col\0300 \001(\0132$.datadog.process_agent.Protoc" + - "olStack\022\r\n\005netNS\030\024 \001(\r\022\027\n\017remoteNetworkI" + - "d\030 \001(\t\022;\n\ripTranslation\030\025 \001(\0132$.datadog" + - ".process_agent.IPTranslation\022\013\n\003rtt\030\026 \001(" + - "\r\022\016\n\006rttVar\030\027 \001(\r\022\021\n\tintraHost\030\030 \001(\010\022\036\n\026" + - "dnsSuccessfulResponses\030\031 \001(\r\022\032\n\022dnsFaile" + - "dResponses\030\032 \001(\r\022\023\n\013dnsTimeouts\030\033 \001(\r\022\034\n" + - "\024dnsSuccessLatencySum\030\034 \001(\004\022\034\n\024dnsFailur" + - "eLatencySum\030\035 \001(\004\022O\n\017dnsCountByRcode\030! \003" + - "(\01326.datadog.process_agent.Connection.Dn" + - "sCountByRcodeEntry\022\032\n\022lastTcpEstablished" + - "\030\036 \001(\r\022\025\n\rlastTcpClosed\030\037 \001(\r\022Q\n\020dnsStat" + - "sByDomain\030\" \003(\01327.datadog.process_agent." + - "Connection.DnsStatsByDomainEntry\022g\n\033dnsS" + - "tatsByDomainByQueryType\030* \003(\0132B.datadog." + - "process_agent.Connection.DnsStatsByDomai" + - "nByQueryTypeEntry\022s\n!dnsStatsByDomainOff" + - "setByQueryType\030+ \003(\0132H.datadog.process_a" + - "gent.Connection.DnsStatsByDomainOffsetBy" + - "QueryTypeEntry\022\020\n\010routeIdx\030$ \001(\005\022\026\n\016rout" + - "eTargetIdx\030( \001(\005\022\030\n\020httpAggregations\030% \001" + - "(\014\022\014\n\004tags\030, \003(\r\022\017\n\007tagsIdx\030- \001(\005\022\024\n\014tag" + - "sChecksum\030/ \001(\r\022\022\n\nstateIndex\030. \001(\r\022\037\n\027d" + - "ataStreamsAggregations\0301 \001(\014\022\031\n\021http2Agg" + - "regations\0302 \001(\014\0326\n\024DnsCountByRcodeEntry\022" + - "\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028\001\032X\n\025DnsSt" + - "atsByDomainEntry\022\013\n\003key\030\001 \001(\005\022.\n\005value\030\002" + - " \001(\0132\037.datadog.process_agent.DNSStats:\0028" + - "\001\032n\n DnsStatsByDomainByQueryTypeEntry\022\013\n" + - "\003key\030\001 \001(\005\0229\n\005value\030\002 \001(\0132*.datadog.proc" + - "ess_agent.DNSStatsByQueryType:\0028\001\032t\n&Dns" + - "StatsByDomainOffsetByQueryTypeEntry\022\013\n\003k" + - "ey\030\001 \001(\005\0229\n\005value\030\002 \001(\0132*.datadog.proces" + - "s_agent.DNSStatsByQueryType:\0028\001J\004\010\002\020\003J\004\010" + - "\003\020\004J\004\010\004\020\005J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\014\020\rJ\004\010\r\020\016J" + - "\004\010\016\020\017J\004\010\017\020\020J\004\010#\020$\"r\n\020ResourceMetadata\022\n\n" + - "\002id\030\001 \001(\t\022\013\n\003key\030\002 \001(\r\022\017\n\007byteKey\030\003 \001(\014\022" + - "\014\n\004tags\030\004 \003(\t\022\020\n\010tagIndex\030\005 \001(\005\022\024\n\014tagsM" + - "odified\030\006 \001(\003\"\207\003\n\024ConnectionsTelemetry\022!" + - "\n\031monotonicKprobesTriggered\030\001 \001(\003\022\036\n\026mon" + - "otonicKprobesMissed\030\002 \001(\003\022#\n\033monotonicCo" + - "nntrackRegisters\030\003 \001(\003\022*\n\"monotonicConnt" + - "rackRegistersDropped\030\004 \001(\003\022$\n\034monotonicD" + - "nsPacketsProcessed\030\005 \001(\003\022\034\n\024monotonicCon" + - "nsClosed\030\006 \001(\003\022\027\n\017connsBpfMapSize\030\007 \001(\003\022" + - "\"\n\032monotonicUdpSendsProcessed\030\010 \001(\003\022\037\n\027m" + - "onotonicUdpSendsMissed\030\t \001(\003\022 \n\030conntrac" + - "kSamplingPercent\030\n \001(\003\022\027\n\017dnsStatsDroppe" + - "d\030\013 \001(\003\"\310\002\n\035CollectorConnectionsTelemetr" + - "y\022\030\n\020kprobesTriggered\030\001 \001(\003\022\025\n\rkprobesMi" + - "ssed\030\002 \001(\003\022\032\n\022conntrackRegisters\030\003 \001(\003\022!" + - "\n\031conntrackRegistersDropped\030\004 \001(\003\022\033\n\023dns" + - "PacketsProcessed\030\005 \001(\003\022\023\n\013connsClosed\030\006 " + - "\001(\003\022\027\n\017connsBpfMapSize\030\007 \001(\003\022\031\n\021udpSends" + - "Processed\030\010 \001(\003\022\026\n\016udpSendsMissed\030\t \001(\003\022" + - " \n\030conntrackSamplingPercent\030\n \001(\003\022\027\n\017dns" + - "StatsDropped\030\013 \001(\003\"\210\002\n\033RuntimeCompilatio" + - "nTelemetry\022!\n\031runtimeCompilationEnabled\030" + - "\001 \001(\010\022Q\n\030runtimeCompilationResult\030\002 \001(\0162" + - "/.datadog.process_agent.RuntimeCompilati" + - "onResult\022\"\n\032runtimeCompilationDuration\030\003" + - " \001(\003\022O\n\027kernelHeaderFetchResult\030\004 \001(\0162.." + - "datadog.process_agent.KernelHeaderFetchR" + - "esult\"P\n\022AgentConfiguration\022\022\n\nnpmEnable" + - "d\030\001 \001(\010\022\022\n\nusmEnabled\030\002 \001(\010\022\022\n\ndsmEnable" + - "d\030\003 \001(\010\"6\n\005Route\022-\n\006subnet\030\001 \001(\0132\035.datad" + - "og.process_agent.Subnet\"\027\n\006Subnet\022\r\n\005ali" + - "as\030\001 \001(\t\"T\n\rRouteMetadata\022\r\n\005alias\030\001 \001(\t" + - "\022\020\n\010tagIndex\030\002 \001(\005\022\024\n\014tagsModified\030\003 \001(\003" + - "\022\014\n\004tags\030\004 \003(\t\"_\n\rIPTranslation\022\021\n\treplS" + - "rcIP\030\001 \001(\t\022\021\n\treplDstIP\030\002 \001(\t\022\023\n\013replSrc" + - "Port\030\003 \001(\005\022\023\n\013replDstPort\030\004 \001(\005\"Y\n\004Addr\022" + - "\n\n\002ip\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022\023\n\013containerId" + - "\030\005 \001(\t\022\020\n\010hostName\030\007 \001(\tJ\004\010\001\020\002J\004\010\004\020\005J\004\010\006" + - "\020\007\"C\n\rProtocolStack\0222\n\005stack\030\001 \003(\0162#.dat" + - "adog.process_agent.ProtocolType\"\031\n\010DNSEn" + - "try\022\r\n\005names\030\001 \003(\t\"\342\001\n\010DNSStats\022\023\n\013dnsTi" + - "meouts\030\001 \001(\r\022\034\n\024dnsSuccessLatencySum\030\002 \001" + - "(\004\022\034\n\024dnsFailureLatencySum\030\003 \001(\004\022M\n\017dnsC" + - "ountByRcode\030\004 \003(\01324.datadog.process_agen" + - "t.DNSStats.DnsCountByRcodeEntry\0326\n\024DnsCo" + - "untByRcodeEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 " + - "\001(\r:\0028\001\"\324\001\n\023DNSStatsByQueryType\022`\n\023dnsSt" + - "atsByQueryType\030\001 \003(\0132C.datadog.process_a" + - "gent.DNSStatsByQueryType.DnsStatsByQuery" + - "TypeEntry\032[\n\030DnsStatsByQueryTypeEntry\022\013\n" + - "\003key\030\001 \001(\005\022.\n\005value\030\002 \001(\0132\037.datadog.proc" + - "ess_agent.DNSStats:\0028\001*\222\002\n\030RuntimeCompil" + - "ationResult\022\020\n\014NotAttempted\020\000\022\026\n\022Compila" + - "tionSuccess\020\001\022\024\n\020KernelVersionErr\020\002\022\025\n\021V" + - "erificationError\020\003\022\020\n\014OutputDirErr\020\004\022\021\n\r" + - "OutputFileErr\020\005\022\022\n\016NewCompilerErr\020\006\022\022\n\016C" + - "ompilationErr\020\007\022\021\n\rResultReadErr\020\010\022\022\n\016He" + - "aderFetchErr\020\t\022\027\n\023CompiledOutputFound\020\n\022" + - "\022\n\016InputHashError\020\013*\251\002\n\027KernelHeaderFetc" + - "hResult\022\025\n\021FetchNotAttempted\020\000\022\026\n\022Custom" + - "HeadersFound\020\001\022\027\n\023DefaultHeadersFound\020\002\022" + - "\025\n\021SysfsHeadersFound\020\003\022\032\n\026DownloadedHead" + - "ersFound\020\004\022\023\n\017DownloadSuccess\020\005\022\022\n\016HostV" + - "ersionErr\020\006\022\023\n\017DownloadFailure\020\007\022\025\n\021Vali" + - "dationFailure\020\010\022\031\n\025ReposDirAccessFailure" + - "\020\t\022#\n\037HeadersNotFoundDownloadDisabled\020\n*" + - "\232\001\n\nCOREResult\022\024\n\020SuccessCustomBTF\020\000\022\026\n\022" + - "SuccessEmbeddedBTF\020\001\022\025\n\021SuccessDefaultBT" + - "F\020\002\022\017\n\013BtfNotFound\020\003\022\022\n\016AssetReadError\020\004" + - "\022\021\n\rVerifierError\020\005\022\017\n\013LoaderError\020\006*\"\n\020" + - "ConnectionFamily\022\006\n\002v4\020\000\022\006\n\002v6\020\001*W\n\023Conn" + - "ectionDirection\022\017\n\013unspecified\020\000\022\014\n\010inco" + - "ming\020\001\022\014\n\010outgoing\020\002\022\t\n\005local\020\003\022\010\n\004none\020" + - "\004*U\n\022EphemeralPortState\022\030\n\024ephemeralUnsp" + - "ecified\020\000\022\021\n\rephemeralTrue\020\001\022\022\n\016ephemera" + - "lFalse\020\002*\347\001\n\014ProtocolType\022\030\n\024protocolUnc" + - "lassified\020\000\022\023\n\017protocolUnknown\020\001\022\020\n\014prot" + - "ocolHTTP\020\002\022\021\n\rprotocolHTTP2\020\003\022\017\n\013protoco" + - "lTLS\020\004\022\021\n\rprotocolKafka\020\005\022\021\n\rprotocolMon" + - "go\020\006\022\024\n\020protocolPostgres\020\007\022\020\n\014protocolAM" + - "QP\020\010\022\021\n\rprotocolRedis\020\t\022\021\n\rprotocolMySQL" + - "\020\nB-Z+github.com/DataDog/agent-payload/v" + - "5/processb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - datadog.process_agent.Agent.getDescriptor(), - }); - internal_static_datadog_process_agent_CollectorConnections_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_datadog_process_agent_CollectorConnections_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_descriptor, - new java.lang.String[] { "HostName", "NetworkId", "Connections", "GroupId", "GroupSize", "ResolvedResources", "ContainerForPid", "EncodedTags", "EncodedConnectionsTags", "ContainerHostType", "ConnTelemetry", "ConnTelemetryMap", "Architecture", "KernelVersion", "Platform", "PlatformVersion", "CompilationTelemetryByAsset", "KernelHeaderFetchResult", "CORETelemetryByAsset", "PrebuiltEBPFAssets", "Routes", "RouteMetadata", "AgentConfiguration", "EncodedDNS", "Domains", "EncodedDomainDatabase", "EncodedDnsLookups", "ResolvedHostsByName", }); - internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor = - internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(0); - internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_ResolvedResourcesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor = - internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(1); - internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_ContainerForPidEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor = - internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(2); - internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_ConnTelemetryMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor = - internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(3); - internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_CompilationTelemetryByAssetEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor = - internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(4); - internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_CORETelemetryByAssetEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor = - internal_static_datadog_process_agent_CollectorConnections_descriptor.getNestedTypes().get(5); - internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnections_ResolvedHostsByNameEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connections_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_datadog_process_agent_Connections_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connections_descriptor, - new java.lang.String[] { "Conns", "Dns", "ConnTelemetry", "Domains", "Routes", "CompilationTelemetryByAsset", "AgentConfiguration", "Tags", "ConnTelemetryMap", "KernelHeaderFetchResult", "CORETelemetryByAsset", "PrebuiltEBPFAssets", }); - internal_static_datadog_process_agent_Connections_DnsEntry_descriptor = - internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(0); - internal_static_datadog_process_agent_Connections_DnsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connections_DnsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor = - internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(1); - internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connections_CompilationTelemetryByAssetEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor = - internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(2); - internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connections_ConnTelemetryMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor = - internal_static_datadog_process_agent_Connections_descriptor.getNestedTypes().get(3); - internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connections_CORETelemetryByAssetEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connection_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_datadog_process_agent_Connection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connection_descriptor, - new java.lang.String[] { "Pid", "Laddr", "Raddr", "Family", "Type", "IsLocalPortEphemeral", "LastBytesSent", "LastBytesReceived", "LastRetransmits", "Direction", "LastPacketsSent", "LastPacketsReceived", "Protocol", "NetNS", "RemoteNetworkId", "IpTranslation", "Rtt", "RttVar", "IntraHost", "DnsSuccessfulResponses", "DnsFailedResponses", "DnsTimeouts", "DnsSuccessLatencySum", "DnsFailureLatencySum", "DnsCountByRcode", "LastTcpEstablished", "LastTcpClosed", "DnsStatsByDomain", "DnsStatsByDomainByQueryType", "DnsStatsByDomainOffsetByQueryType", "RouteIdx", "RouteTargetIdx", "HttpAggregations", "Tags", "TagsIdx", "TagsChecksum", "StateIndex", "DataStreamsAggregations", "Http2Aggregations", }); - internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor = - internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(0); - internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connection_DnsCountByRcodeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor = - internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(1); - internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connection_DnsStatsByDomainEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor = - internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(2); - internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connection_DnsStatsByDomainByQueryTypeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor = - internal_static_datadog_process_agent_Connection_descriptor.getNestedTypes().get(3); - internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Connection_DnsStatsByDomainOffsetByQueryTypeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_ResourceMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_datadog_process_agent_ResourceMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_ResourceMetadata_descriptor, - new java.lang.String[] { "Id", "Key", "ByteKey", "Tags", "TagIndex", "TagsModified", }); - internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_datadog_process_agent_ConnectionsTelemetry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_ConnectionsTelemetry_descriptor, - new java.lang.String[] { "MonotonicKprobesTriggered", "MonotonicKprobesMissed", "MonotonicConntrackRegisters", "MonotonicConntrackRegistersDropped", "MonotonicDnsPacketsProcessed", "MonotonicConnsClosed", "ConnsBpfMapSize", "MonotonicUdpSendsProcessed", "MonotonicUdpSendsMissed", "ConntrackSamplingPercent", "DnsStatsDropped", }); - internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_datadog_process_agent_CollectorConnectionsTelemetry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_CollectorConnectionsTelemetry_descriptor, - new java.lang.String[] { "KprobesTriggered", "KprobesMissed", "ConntrackRegisters", "ConntrackRegistersDropped", "DnsPacketsProcessed", "ConnsClosed", "ConnsBpfMapSize", "UdpSendsProcessed", "UdpSendsMissed", "ConntrackSamplingPercent", "DnsStatsDropped", }); - internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_datadog_process_agent_RuntimeCompilationTelemetry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_RuntimeCompilationTelemetry_descriptor, - new java.lang.String[] { "RuntimeCompilationEnabled", "RuntimeCompilationResult", "RuntimeCompilationDuration", "KernelHeaderFetchResult", }); - internal_static_datadog_process_agent_AgentConfiguration_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_datadog_process_agent_AgentConfiguration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_AgentConfiguration_descriptor, - new java.lang.String[] { "NpmEnabled", "UsmEnabled", "DsmEnabled", }); - internal_static_datadog_process_agent_Route_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_datadog_process_agent_Route_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Route_descriptor, - new java.lang.String[] { "Subnet", }); - internal_static_datadog_process_agent_Subnet_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_datadog_process_agent_Subnet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Subnet_descriptor, - new java.lang.String[] { "Alias", }); - internal_static_datadog_process_agent_RouteMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_datadog_process_agent_RouteMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_RouteMetadata_descriptor, - new java.lang.String[] { "Alias", "TagIndex", "TagsModified", "Tags", }); - internal_static_datadog_process_agent_IPTranslation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_datadog_process_agent_IPTranslation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_IPTranslation_descriptor, - new java.lang.String[] { "ReplSrcIP", "ReplDstIP", "ReplSrcPort", "ReplDstPort", }); - internal_static_datadog_process_agent_Addr_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_datadog_process_agent_Addr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_Addr_descriptor, - new java.lang.String[] { "Ip", "Port", "ContainerId", "HostName", }); - internal_static_datadog_process_agent_ProtocolStack_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_datadog_process_agent_ProtocolStack_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_ProtocolStack_descriptor, - new java.lang.String[] { "Stack", }); - internal_static_datadog_process_agent_DNSEntry_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_datadog_process_agent_DNSEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_DNSEntry_descriptor, - new java.lang.String[] { "Names", }); - internal_static_datadog_process_agent_DNSStats_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_datadog_process_agent_DNSStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_DNSStats_descriptor, - new java.lang.String[] { "DnsTimeouts", "DnsSuccessLatencySum", "DnsFailureLatencySum", "DnsCountByRcode", }); - internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor = - internal_static_datadog_process_agent_DNSStats_descriptor.getNestedTypes().get(0); - internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_DNSStats_DnsCountByRcodeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_datadog_process_agent_DNSStatsByQueryType_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor, - new java.lang.String[] { "DnsStatsByQueryType", }); - internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor = - internal_static_datadog_process_agent_DNSStatsByQueryType_descriptor.getNestedTypes().get(0); - internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datadog_process_agent_DNSStatsByQueryType_DnsStatsByQueryTypeEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - datadog.process_agent.Agent.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 29326e30bf82df90734dc5cd12de4e4a830519e8 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Fri, 7 Jul 2023 15:47:21 -0400 Subject: [PATCH 3/6] compile vtproto for shared agent message Host --- Rakefile | 13 +- process/agent.pb.go | 61749 +++++++--------------------- process/agent_vtproto.pb.go | 48734 ++++++++++++++++++++++ process/connections_vtproto.pb.go | 79 +- 4 files changed, 63968 insertions(+), 46607 deletions(-) create mode 100644 process/agent_vtproto.pb.go diff --git a/Rakefile b/Rakefile index 3b6af209..9ccd5693 100644 --- a/Rakefile +++ b/Rakefile @@ -119,14 +119,23 @@ BASH --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/cws/dumpsv1.ProcessInfo \ proto/cws/dumpsv1/activity_dump.proto - echo "Generating NPM CollectorConnections" + 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 \ - --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.CollectorConnections \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Connections \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Host \ proto/process/connections.proto + echo "Generating Agent Shared VTProto" + PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ + --go_out=$GOPATH/src \ + --go-vtproto_out=$GOPATH/src \ + --go-vtproto_opt=features=pool+marshal+unmarshal+size \ + --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Host \ + proto/process/agent.proto + cp -r v5/* . rm -rf v5 BASH diff --git a/process/agent.pb.go b/process/agent.pb.go index 8e1f17af..f862e06b 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,48516 +873,17003 @@ 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 } -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 + + HostName string `protobuf:"bytes,2,opt,name=hostName,proto3" json:"hostName,omitempty"` +} -func (m *CollectorCronJob) GetCronJobs() []*CronJob { - if m != nil { - return m.CronJobs +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 (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 (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 (m *Process) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorDeployment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CollectorDeployment) ProtoMessage() {} + +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 0 +} + +func (x *CollectorCluster) GetCluster() *Cluster { + if x != nil { + return x.Cluster } return nil } -func (m *SystemInfo) GetCpus() []*CPUInfo { - if m != nil { - return m.Cpus +func (x *CollectorCluster) GetTags() []string { + if x != nil { + return x.Tags } 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"` +type CollectorManifest 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"` + Manifests []*Manifest `protobuf:"bytes,5,rep,name=manifests,proto3" json:"manifests,omitempty"` } -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} } +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 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"` +func (x *CollectorManifest) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*CollectorManifest) ProtoMessage() {} -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) 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 *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} } - -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"` +// Deprecated: Use CollectorManifest.ProtoReflect.Descriptor instead. +func (*CollectorManifest) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{13} } -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} } +func (x *CollectorManifest) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} -func (m *CPUStat) GetCpus() []*SingleCPUStat { - if m != nil { - return m.Cpus +func (x *CollectorManifest) GetClusterId() string { + if x != nil { + return x.ClusterId } - 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) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -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) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + 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) GetManifests() []*Manifest { + if x != nil { + return x.Manifests + } + return nil } -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} } +type CollectorManifestCRD struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -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"` + 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 (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 mi.MessageOf(x) } -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 - } - 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) GetContainerStatuses() []*ContainerStatus { - if m != nil { - return m.ContainerStatuses +func (x *CollectorStatefulSet) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Pod) GetInitContainerStatuses() []*ContainerStatus { - if m != nil { - return m.InitContainerStatuses +func (x *CollectorStatefulSet) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *Pod) GetHost() *Host { - if m != nil { - return m.Host +func (x *CollectorStatefulSet) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *Pod) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorStatefulSet) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *Pod) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorStatefulSet) GetStatefulSets() []*StatefulSet { + if x != nil { + return x.StatefulSets } return nil } -func (m *Pod) GetConditions() []*PodCondition { - if m != nil { - return m.Conditions +func (x *CollectorStatefulSet) GetTags() []string { + if x != nil { + return x.Tags } 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"` +type CollectorPersistentVolume 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"` + 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 *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} } +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) + } +} -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"` +func (x *CollectorPersistentVolume) String() string { + return protoimpl.X.MessageStringOf(x) } -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} } +func (*CollectorPersistentVolume) ProtoMessage() {} -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) 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 *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} } +// Deprecated: Use CollectorPersistentVolume.ProtoReflect.Descriptor instead. +func (*CollectorPersistentVolume) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{21} +} -// 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) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" } -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 (x *CollectorPersistentVolume) 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#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) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -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} } +func (x *CollectorPersistentVolume) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} -func (m *Namespace) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorPersistentVolume) GetPersistentVolumes() []*PersistentVolume { + if x != nil { + return x.PersistentVolumes } return nil } -func (m *Namespace) GetConditions() []*NamespaceCondition { - if m != nil { - return m.Conditions +func (x *CollectorPersistentVolume) GetTags() []string { + if x != nil { + return x.Tags } return nil } -// 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"` -} +type CollectorPersistentVolumeClaim struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -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} } + 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 *ResourceRequirements) GetLimits() map[string]int64 { - if m != nil { - return m.Limits +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 } -func (m *ResourceRequirements) GetRequests() map[string]int64 { - if m != nil { - return m.Requests +func (x *CollectorPersistentVolumeClaim) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CollectorPersistentVolumeClaim) ProtoMessage() {} + +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 nil + return mi.MessageOf(x) } -// 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"` +// Deprecated: Use CollectorPersistentVolumeClaim.ProtoReflect.Descriptor instead. +func (*CollectorPersistentVolumeClaim) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{22} } -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 (x *CollectorPersistentVolumeClaim) GetClusterName() string { + if x != nil { + return x.ClusterName + } + return "" +} -func (m *ResourceMetrics) GetMetricValues() map[string]float64 { - if m != nil { - return m.MetricValues +func (x *CollectorPersistentVolumeClaim) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -// 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 (x *CollectorPersistentVolumeClaim) GetGroupId() int32 { + if x != nil { + return x.GroupId + } + return 0 } -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} } +func (x *CollectorPersistentVolumeClaim) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} -func (m *JobSpec) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors +func (x *CollectorPersistentVolumeClaim) GetPersistentVolumeClaims() []*PersistentVolumeClaim { + if x != nil { + return x.PersistentVolumeClaims } return nil } -func (m *JobSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +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/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"` +type CollectorRole 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"` + 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 *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 (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) + } +} -// 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 *CollectorRole) String() string { + return protoimpl.X.MessageStringOf(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} } +func (*CollectorRole) ProtoMessage() {} -// 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 *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 mi.MessageOf(x) } -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} } +// Deprecated: Use CollectorRole.ProtoReflect.Descriptor instead. +func (*CollectorRole) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{23} +} -func (m *Job) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorRole) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *Job) GetSpec() *JobSpec { - if m != nil { - return m.Spec +func (x *CollectorRole) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *Job) GetStatus() *JobStatus { - if m != nil { - return m.Status +func (x *CollectorRole) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *Job) GetConditions() []*JobCondition { - if m != nil { - return m.Conditions +func (x *CollectorRole) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 +} + +func (x *CollectorRole) GetRoles() []*Role { + if x != nil { + return x.Roles } 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"` +func (x *CollectorRole) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -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} } +type CollectorRoleBinding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CronJobSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements + 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 (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) } - 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 *CollectorRoleBinding) 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 (*CollectorRoleBinding) ProtoMessage() {} -func (m *CronJobStatus) GetActive() []*ObjectReference { - if m != nil { - return m.Active +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 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 CollectorRoleBinding.ProtoReflect.Descriptor instead. +func (*CollectorRoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{24} } -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 *CollectorRoleBinding) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *CronJob) GetSpec() *CronJobSpec { - if m != nil { - return m.Spec +func (x *CollectorRoleBinding) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *CronJob) GetStatus() *CronJobStatus { - if m != nil { - return m.Status +func (x *CollectorRoleBinding) 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 *CollectorRoleBinding) 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 *CollectorRoleBinding) GetRoleBindings() []*RoleBinding { + if x != nil { + return x.RoleBindings } return nil } -func (m *DaemonSetSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorRoleBinding) 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"` -} - -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} } +type CollectorClusterRole 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#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"` + 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 *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 (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) + } +} -// 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 *CollectorClusterRole) String() string { + return protoimpl.X.MessageStringOf(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} } +func (*CollectorClusterRole) ProtoMessage() {} -func (m *DaemonSet) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +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 nil + return mi.MessageOf(x) } -func (m *DaemonSet) GetSpec() *DaemonSetSpec { - if m != nil { - return m.Spec - } - return nil +// Deprecated: Use CollectorClusterRole.ProtoReflect.Descriptor instead. +func (*CollectorClusterRole) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{25} } -func (m *DaemonSet) GetStatus() *DaemonSetStatus { - if m != nil { - return m.Status +func (x *CollectorClusterRole) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *DaemonSet) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorClusterRole) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *DaemonSet) GetConditions() []*DaemonSetCondition { - if m != nil { - return m.Conditions +func (x *CollectorClusterRole) 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#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 *CollectorClusterRole) GetGroupSize() int32 { + if x != nil { + return x.GroupSize + } + return 0 } -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} } - -func (m *StatefulSetSpec) GetSelectors() []*LabelSelectorRequirement { - if m != nil { - return m.Selectors +func (x *CollectorClusterRole) GetClusterRoles() []*ClusterRole { + if x != nil { + return x.ClusterRoles } return nil } -func (m *StatefulSetSpec) GetResourceRequirements() []*ResourceRequirements { - if m != nil { - return m.ResourceRequirements +func (x *CollectorClusterRole) 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#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 (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} } +type CollectorClusterRoleBinding 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#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"` + 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 (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} } +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) + } +} -// 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 *CollectorClusterRoleBinding) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*CollectorClusterRoleBinding) ProtoMessage() {} -func (m *StatefulSet) 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 *StatefulSet) GetSpec() *StatefulSetSpec { - 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 *StatefulSet) GetStatus() *StatefulSetStatus { - if m != nil { - return m.Status +func (x *CollectorClusterRoleBinding) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *StatefulSet) GetMetrics() *ResourceMetrics { - if m != nil { - return m.Metrics +func (x *CollectorClusterRoleBinding) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *StatefulSet) GetConditions() []*StatefulSetCondition { - if m != nil { - return m.Conditions +func (x *CollectorClusterRoleBinding) GetGroupId() int32 { + if x != nil { + return x.GroupId } - 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"` + return 0 } -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 (m *PersistentVolume) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *CollectorClusterRoleBinding) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *PersistentVolume) GetSpec() *PersistentVolumeSpec { - if m != nil { - return m.Spec +func (x *CollectorClusterRoleBinding) GetClusterRoleBindings() []*ClusterRoleBinding { + if x != nil { + return x.ClusterRoleBindings } return nil } -func (m *PersistentVolume) GetStatus() *PersistentVolumeStatus { - if m != nil { - return m.Status +func (x *CollectorClusterRoleBinding) 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 { - // 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 (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} } +type CollectorServiceAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PersistentVolumeSpec) GetCapacity() map[string]int64 { - if m != nil { - return m.Capacity - } - 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"` + 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 (m *PersistentVolumeSpec) GetClaimRef() *ObjectReference { - if m != nil { - return m.ClaimRef +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 } -func (m *PersistentVolumeSpec) GetNodeAffinity() []*NodeSelectorTerm { - if m != nil { - return m.NodeAffinity - } - return nil +func (x *CollectorServiceAccount) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PersistentVolumeSpec) GetPersistentVolumeSource() *PersistentVolumeSource { - if m != nil { - return m.PersistentVolumeSource +func (*CollectorServiceAccount) ProtoMessage() {} + +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) } -// 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"` +// Deprecated: Use CollectorServiceAccount.ProtoReflect.Descriptor instead. +func (*CollectorServiceAccount) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{27} } -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 (m *PersistentVolumeSource) GetGcePersistentDisk() *GCEPersistentDiskVolumeSource { - if m != nil { - return m.GcePersistentDisk +func (x *CollectorServiceAccount) GetClusterName() string { + if x != nil { + return x.ClusterName } - return nil + return "" } -func (m *PersistentVolumeSource) GetAwsElasticBlockStore() *AWSElasticBlockStoreVolumeSource { - if m != nil { - return m.AwsElasticBlockStore +func (x *CollectorServiceAccount) GetClusterId() string { + if x != nil { + return x.ClusterId } - return nil + return "" } -func (m *PersistentVolumeSource) GetAzureFile() *AzureFilePersistentVolumeSource { - if m != nil { - return m.AzureFile +func (x *CollectorServiceAccount) GetGroupId() int32 { + if x != nil { + return x.GroupId } - return nil + return 0 } -func (m *PersistentVolumeSource) GetAzureDisk() *AzureDiskVolumeSource { - if m != nil { - return m.AzureDisk +func (x *CollectorServiceAccount) GetGroupSize() int32 { + if x != nil { + return x.GroupSize } - return nil + return 0 } -func (m *PersistentVolumeSource) GetCsi() *CSIVolumeSource { - if m != nil { - return m.Csi +func (x *CollectorServiceAccount) GetServiceAccounts() []*ServiceAccount { + if x != nil { + return x.ServiceAccounts } return nil } -// 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) GetTags() []string { + if x != nil { + return x.Tags + } + return nil } -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} -} +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#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"` + 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 *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} +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#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"` +func (x *CollectorIngress) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*CollectorIngress) ProtoMessage() {} -// 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) 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 *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} } - -// 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"` +// Deprecated: Use CollectorIngress.ProtoReflect.Descriptor instead. +func (*CollectorIngress) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{28} } -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} } - -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 (m *ClusterRoleBinding) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetState() ProcessState { + if x != nil { + return x.State } - return nil + return ProcessState_U } -func (m *ClusterRoleBinding) GetSubjects() []*Subject { - if m != nil { - return m.Subjects +func (x *Process) GetIoStat() *IOStat { + if x != nil { + return x.IoStat } return nil } -func (m *ClusterRoleBinding) GetRoleRef() *TypedLocalObjectReference { - if m != nil { - return m.RoleRef +func (x *Process) GetContainerId() string { + if x != nil { + return x.ContainerId } - return nil + return "" } -// 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) GetContainerKey() uint32 { + if x != nil { + return x.ContainerKey + } + 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 (m *ServiceAccount) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Process) GetVoluntaryCtxSwitches() uint64 { + if x != nil { + return x.VoluntaryCtxSwitches } - return nil + return 0 } -func (m *ServiceAccount) GetSecrets() []*ObjectReference { - if m != nil { - return m.Secrets +func (x *Process) GetInvoluntaryCtxSwitches() uint64 { + if x != nil { + return x.InvoluntaryCtxSwitches } - return nil + return 0 } -func (m *ServiceAccount) GetImagePullSecrets() []*TypedLocalObjectReference { - if m != nil { - return m.ImagePullSecrets +func (x *Process) GetByteKey() []byte { + if x != nil { + return x.ByteKey } 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"` -} - -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} } - -// 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 (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 (m *IngressBackend) GetService() *IngressServiceBackend { - if m != nil { - return m.Service +func (x *Process) GetContainerByteKey() []byte { + if x != nil { + return x.ContainerByteKey } return nil } -func (m *IngressBackend) GetResource() *TypedLocalObjectReference { - if m != nil { - return m.Resource +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#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"` +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 *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} } +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#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) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*ProcessDiscovery) ProtoMessage() {} -func (m *HTTPIngressPath) GetBackend() *IngressBackend { - if m != nil { - return m.Backend +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) } -// 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"` +// Deprecated: Use ProcessDiscovery.ProtoReflect.Descriptor instead. +func (*ProcessDiscovery) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{32} } -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) GetPid() int32 { + if x != nil { + return x.Pid } - return nil + return 0 } -// 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) GetNsPid() int32 { + if x != nil { + return x.NsPid + } + 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) GetHost() *Host { + if x != nil { + return x.Host } return nil } -func (m *IngressSpec) GetTls() []*IngressTLS { - if m != nil { - return m.Tls +func (x *ProcessDiscovery) GetCommand() *Command { + if x != nil { + return x.Command } return nil } -func (m *IngressSpec) GetRules() []*IngressRule { - if m != nil { - return m.Rules +func (x *ProcessDiscovery) GetUser() *ProcessUser { + if x != nil { + return x.User } 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 *ProcessDiscovery) GetCreateTime() int64 { + if x != nil { + return x.CreateTime + } + return 0 } -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} } - -// 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 *ProcessDiscovery) GetByteKey() []byte { + if x != nil { + return x.ByteKey + } + return nil } -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} } +type Command struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *LoadBalancerIngress) GetPorts() []*PortStatus { - if m != nil { - return m.Ports + 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 (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/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) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*Command) ProtoMessage() {} -func (m *IngressStatus) GetIngress() []*LoadBalancerIngress { - if m != nil { - return m.Ingress +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 nil + return mi.MessageOf(x) } -// 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"` +// Deprecated: Use Command.ProtoReflect.Descriptor instead. +func (*Command) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{33} } -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) GetArgs() []string { + if x != nil { + return x.Args } return nil } -func (m *Ingress) GetSpec() *IngressSpec { - if m != nil { - return m.Spec +func (x *Command) GetCwd() string { + if x != nil { + return x.Cwd } - return nil + return "" } -func (m *Ingress) GetStatus() *IngressStatus { - if m != nil { - return m.Status +func (x *Command) GetRoot() string { + if x != nil { + return x.Root } - 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"` +func (x *Command) GetOnDisk() bool { + if x != nil { + return x.OnDisk + } + return false } -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 *Command) GetPpid() int32 { + if x != nil { + return x.Ppid + } + return 0 +} -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 *Command) GetPgroup() int32 { + if x != nil { + return x.Pgroup + } + return 0 } -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 (x *Command) GetExe() string { + if x != nil { + return x.Exe + } + return "" +} -func (m *KafkaAggregation) GetHeader() *KafkaRequestHeader { - if m != nil { - return m.Header +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 (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) } - return nil } -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"` +func (x *ProcessUser) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*ProcessUser) ProtoMessage() {} -func (m *DataStreamsAggregations) GetKafkaProduceAggregations() *DataStreamsAggregations_KafkaProduceAggregations { - if m != nil { - return m.KafkaProduceAggregations +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) } -func (m *DataStreamsAggregations) GetKafkaFetchAggregations() *DataStreamsAggregations_KafkaFetchAggregations { - if m != nil { - return m.KafkaFetchAggregations +// Deprecated: Use ProcessUser.ProtoReflect.Descriptor instead. +func (*ProcessUser) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{34} +} + +func (x *ProcessUser) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *DataStreamsAggregations) GetKafkaAggregations() []*KafkaAggregation { - if m != nil { - return m.KafkaAggregations +func (x *ProcessUser) GetUid() int32 { + if x != nil { + return x.Uid } - 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) GetGid() int32 { + if x != nil { + return x.Gid + } + 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) GetEuid() int32 { + if x != nil { + return x.Euid + } + return 0 } -type DataStreamsAggregations_KafkaProduceAggregations struct { - Stats []*DataStreamsAggregations_TopicStats `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` +func (x *ProcessUser) GetEgid() int32 { + if x != nil { + return x.Egid + } + return 0 } -func (m *DataStreamsAggregations_KafkaProduceAggregations) Reset() { - *m = DataStreamsAggregations_KafkaProduceAggregations{} +func (x *ProcessUser) GetSuid() int32 { + if x != nil { + return x.Suid + } + return 0 } -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 -func (m *HTTPAggregations) GetEndpointAggregations() []*HTTPStats { - if m != nil { - return m.EndpointAggregations + 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 (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 (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) GetType() string { + if x != nil { + return x.Type + } + return "" +} -func (m *VerticalPodAutoscaler) GetMetadata() *Metadata { - if m != nil { - return m.Metadata +func (x *Container) GetId() string { + if x != nil { + return x.Id } - return nil + return "" } -func (m *VerticalPodAutoscaler) GetSpec() *VerticalPodAutoscalerSpec { - if m != nil { - return m.Spec +func (x *Container) GetName() string { + if x != nil { + return x.Name } - return nil + return "" } -func (m *VerticalPodAutoscaler) GetStatus() *VerticalPodAutoscalerStatus { - if m != nil { - return m.Status +func (x *Container) GetImage() string { + if x != nil { + return x.Image } - return nil + return "" } -func (m *VerticalPodAutoscaler) GetConditions() []*VerticalPodAutoscalerCondition { - if m != nil { - return m.Conditions +func (x *Container) GetCpuLimit() float32 { + if x != nil { + return x.CpuLimit } - 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) GetMemoryLimit() uint64 { + if x != nil { + return x.MemoryLimit + } + return 0 } -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) GetState() ContainerState { + if x != nil { + return x.State + } + return ContainerState_unknown } -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) GetHealth() ContainerHealth { + if x != nil { + return x.Health + } + return ContainerHealth_unknownHealth } -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) GetCreated() int64 { + if x != nil { + return x.Created + } + return 0 } -func (m *VerticalPodAutoscalerSpec) GetTarget() *VerticalPodAutoscalerTarget { - if m != nil { - return m.Target +func (x *Container) GetRbps() float32 { + if x != nil { + return x.Rbps } - return nil + return 0 } -func (m *VerticalPodAutoscalerSpec) GetResourcePolicies() []*ContainerResourcePolicy { - if m != nil { - return m.ResourcePolicies +func (x *Container) GetWbps() float32 { + if x != nil { + return x.Wbps } - 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) GetKey() uint32 { + if x != nil { + return x.Key + } + 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) GetNetRcvdPs() float32 { + if x != nil { + return x.NetRcvdPs + } + 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) GetNetSentPs() float32 { + if x != nil { + return x.NetSentPs + } + 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) GetNetRcvdBps() float32 { + if x != nil { + return x.NetRcvdBps + } + return 0 +} -func (m *ContainerResourcePolicy) GetMinAllowed() *ResourceList { - if m != nil { - return m.MinAllowed +func (x *Container) GetNetSentBps() float32 { + if x != nil { + return x.NetSentBps } - return nil + return 0 } -func (m *ContainerResourcePolicy) GetMaxAllowed() *ResourceList { - if m != nil { - return m.MaxAllowed +func (x *Container) GetUserPct() float32 { + if x != nil { + return x.UserPct } - 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) GetSystemPct() float32 { + if x != nil { + return x.SystemPct + } + 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) GetTotalPct() float32 { + if x != nil { + return x.TotalPct + } + return 0 } -func (m *VerticalPodAutoscalerStatus) GetRecommendations() []*ContainerRecommendation { - if m != nil { - return m.Recommendations +func (x *Container) GetMemRss() uint64 { + if x != nil { + return x.MemRss } - return nil + return 0 } -func (m *VerticalPodAutoscalerStatus) GetConditions() []*VPACondition { - if m != nil { - return m.Conditions +func (x *Container) GetMemCache() uint64 { + if x != nil { + return x.MemCache } - return nil + return 0 } -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) GetHost() *Host { + if x != nil { + return x.Host + } + return nil } -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 (x *Container) GetStarted() int64 { + if x != nil { + return x.Started + } + return 0 +} -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 - } - } - } - 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 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 - } - } +func (x *Container) GetMemUsage() uint64 { + if x != nil { + return x.MemUsage } - 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 - } +func (x *Container) GetCpuUsageNs() float32 { + if x != nil { + return x.CpuUsageNs } - 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 - } - } - 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 +func (x *Container) GetMemAccounted() uint64 { + if x != nil { + return x.MemAccounted } - return data[:n], nil + return 0 } -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 +// 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 + + 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)) +func (x *ProcessStat) GetPid() int32 { + if x != nil { + return x.Pid } - 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 - } - } - 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)) +func (x *ProcessStat) GetContainerByteKey() []byte { + if x != nil { + return x.ContainerByteKey } - 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)) - } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) - } - if len(m.Containers) > 0 { - for _, e := range m.Containers { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - 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 nil } -func (m *CollectorProc_HintMask) Size() (n int) { - var l int - _ = l - n += 1 + sovAgent(uint64(m.HintMask)) - return n +// 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 (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)) - } - } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) + +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) } - return n } -func (m *CollectorRealTime) 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.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 +func (x *ProcStatsWithPerm) String() string { + return protoimpl.X.MessageStringOf(x) } -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)) +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 } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) - } - 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 mi.MessageOf(x) } -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)) - } - 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 +// Deprecated: Use ProcStatsWithPerm.ProtoReflect.Descriptor instead. +func (*ProcStatsWithPerm) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{39} } -func (m *CollectorReqStatus) Size() (n int) { - var l int - _ = l - l = len(m.HostName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ProcStatsWithPerm) GetOpenFDCount() int32 { + if x != nil { + return x.OpenFDCount } - return n + return 0 } -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)) +func (x *ProcStatsWithPerm) GetReadCount() int64 { + if x != nil { + return x.ReadCount } - 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 *ProcStatsWithPerm) GetWriteCount() int64 { + if x != nil { + return x.WriteCount } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *ProcStatsWithPerm) GetReadBytes() int64 { + if x != nil { + return x.ReadBytes } - if len(m.Pods) > 0 { - for _, e := range m.Pods { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ProcStatsWithPerm) GetWriteBytes() int64 { + if x != nil { + return x.WriteBytes } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +// 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 (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 len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *ProcStatsWithPermByPID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +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 *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)) +// Deprecated: Use ProcStatsWithPermByPID.ProtoReflect.Descriptor instead. +func (*ProcStatsWithPermByPID) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{40} +} + +func (x *ProcStatsWithPermByPID) GetStatsByPID() map[int32]*ProcStatsWithPerm { + if x != nil { + return x.StatsByPID } - if len(m.ReplicaSets) > 0 { - for _, e := range m.ReplicaSets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return nil +} + +// 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 (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 len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - 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 *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)) - } +// Deprecated: Use ContainerStat.ProtoReflect.Descriptor instead. +func (*ContainerStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{41} +} + +func (x *ContainerStat) GetId() string { + if x != nil { + return x.Id } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *ContainerStat) GetUserPct() float32 { + if x != nil { + return x.UserPct } - return n + return 0 } -func (m *CollectorService) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetSystemPct() float32 { + if x != nil { + return x.SystemPct } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *ContainerStat) GetTotalPct() float32 { + if x != nil { + return x.TotalPct } - 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.Services) > 0 { - for _, e := range m.Services { - 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 *CollectorNode) 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.Nodes) > 0 { - for _, e := range m.Nodes { - 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 } - 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)) - } + return 0 +} + +func (x *ContainerStat) GetState() ContainerState { + if x != nil { + return x.State } - return n + return ContainerState_unknown } -func (m *CollectorCluster) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetHealth() ContainerHealth { + if x != nil { + return x.Health } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return ContainerHealth_unknownHealth +} + +func (x *ContainerStat) GetKey() uint32 { + if x != nil { + return x.Key } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *ContainerStat) GetStarted() int64 { + if x != nil { + return x.Started } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + return 0 +} + +func (x *ContainerStat) GetByteKey() []byte { + if x != nil { + return x.ByteKey } - if m.Cluster != nil { - l = m.Cluster.Size() - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *ContainerStat) GetThreadCount() uint64 { + if x != nil { + return x.ThreadCount } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ContainerStat) GetThreadLimit() uint64 { + if x != nil { + return x.ThreadLimit } - return n + return 0 } -func (m *CollectorManifest) Size() (n int) { - var l int - _ = l - l = len(m.ClusterName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ContainerStat) GetMemUsage() uint64 { + if x != nil { + return x.MemUsage } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *ContainerStat) GetCpuUsageNs() float32 { + if x != nil { + return x.CpuUsageNs } - if m.GroupId != 0 { - n += 1 + sovAgent(uint64(m.GroupId)) + return 0 +} + +func (x *ContainerStat) GetMemAccounted() uint64 { + if x != nil { + return x.MemAccounted } - if m.GroupSize != 0 { - n += 1 + sovAgent(uint64(m.GroupSize)) + 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.Manifests) > 0 { - for _, e := range m.Manifests { - l = e.Size() - 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) } -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 SystemInfo.ProtoReflect.Descriptor instead. +func (*SystemInfo) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{42} } -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 *SystemInfo) GetUuid() string { + if x != nil { + return x.Uuid } - 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)) +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.Namespaces) > 0 { - for _, e := range m.Namespaces { - 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 *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)) - } +// 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 *CollectorCronJob) 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.CronJobs) > 0 { - for _, e := range m.CronJobs { - 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 + return "" } -func (m *CollectorDaemonSet) 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.DaemonSets) > 0 { - for _, e := range m.DaemonSets { - 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 +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 (m *CollectorStatefulSet) 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.StatefulSets) > 0 { - for _, e := range m.StatefulSets { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +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)) - } - } - return n } -func (m *CollectorPersistentVolume) 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.PersistentVolumes) > 0 { - for _, e := range m.PersistentVolumes { - 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 *IOStat) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CollectorPersistentVolumeClaim) 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.PersistentVolumeClaims) > 0 { - for _, e := range m.PersistentVolumeClaims { - 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 (*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) } -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)) - } - } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - return n +// Deprecated: Use IOStat.ProtoReflect.Descriptor instead. +func (*IOStat) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{44} } -func (m *CollectorRoleBinding) 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.RoleBindings) > 0 { - for _, e := range m.RoleBindings { - 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 *IOStat) GetReadRate() float32 { + if x != nil { + return x.ReadRate } - return n + return 0 } -func (m *CollectorClusterRole) 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 *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)) - } - 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)) +func (x *SingleCPUStat) GetName() string { + if x != nil { + return x.Name } - 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)) +// Deprecated: Use CPUInfo.ProtoReflect.Descriptor instead. +func (*CPUInfo) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{48} +} + +func (x *CPUInfo) GetNumber() int32 { + if x != nil { + return x.Number } - if m.Suid != 0 { - n += 1 + sovAgent(uint64(m.Suid)) + return 0 +} + +func (x *CPUInfo) GetVendor() string { + if x != nil { + return x.Vendor } - if m.Sgid != 0 { - n += 1 + sovAgent(uint64(m.Sgid)) + return "" +} + +func (x *CPUInfo) GetFamily() string { + if x != nil { + return x.Family } - return n + return "" } -func (m *ProcessNetworks) Size() (n int) { - var l int - _ = l - if m.ConnectionRate != 0 { - n += 5 +func (x *CPUInfo) GetModel() string { + if x != nil { + return x.Model } - if m.BytesRate != 0 { - n += 5 + return "" +} + +func (x *CPUInfo) GetPhysicalId() string { + if x != nil { + return x.PhysicalId } - return n + return "" } -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) GetCoreId() string { + if x != nil { + return x.CoreId } - if m.Port != 0 { - n += 1 + sovAgent(uint64(m.Port)) + return "" +} + +func (x *CPUInfo) GetCores() int32 { + if x != nil { + return x.Cores } - if m.Protocol != 0 { - n += 1 + sovAgent(uint64(m.Protocol)) + return 0 +} + +func (x *CPUInfo) GetMhz() int64 { + if x != nil { + return x.Mhz } - return n + return 0 } -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) GetCacheSize() int32 { + if x != nil { + return x.CacheSize } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + 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) } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Image) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.CpuLimit != 0 { - n += 5 - } - if m.MemoryLimit != 0 { - n += 1 + sovAgent(uint64(m.MemoryLimit)) - } - if m.State != 0 { - n += 1 + sovAgent(uint64(m.State)) - } - if m.Health != 0 { - n += 1 + sovAgent(uint64(m.Health)) - } - if m.Created != 0 { - n += 1 + sovAgent(uint64(m.Created)) - } - if m.Rbps != 0 { - n += 5 - } - if m.Wbps != 0 { - n += 5 - } - if m.Key != 0 { - n += 1 + sovAgent(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 + 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)) +} + +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.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 mi.MessageOf(x) } -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)) +// 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 } - l = len(m.ByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Host) GetOrgId() int32 { + if x != nil { + return x.OrgId } - l = len(m.ContainerByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Host) GetName() string { + if x != nil { + return x.Name } - if m.Networks != nil { - l = m.Networks.Size() - n += 2 + l + sovAgent(uint64(l)) + return "" +} + +func (x *Host) GetAllTags() []string { + if x != nil { + return x.AllTags } - return n + return nil } -func (m *ProcStatsWithPerm) Size() (n int) { - var l int - _ = l - if m.OpenFDCount != 0 { - n += 1 + sovAgent(uint64(m.OpenFDCount)) +func (x *Host) GetNumCpus() int32 { + if x != nil { + return x.NumCpus } - if m.ReadCount != 0 { - n += 1 + sovAgent(uint64(m.ReadCount)) + return 0 +} + +func (x *Host) GetTotalMemory() int64 { + if x != nil { + return x.TotalMemory } - if m.WriteCount != 0 { - n += 1 + sovAgent(uint64(m.WriteCount)) + return 0 +} + +func (x *Host) GetTagIndex() int32 { + if x != nil { + return x.TagIndex } - if m.ReadBytes != 0 { - n += 1 + sovAgent(uint64(m.ReadBytes)) + return 0 +} + +func (x *Host) GetTagsModified() int64 { + if x != nil { + return x.TagsModified } - if m.WriteBytes != 0 { - n += 1 + sovAgent(uint64(m.WriteBytes)) + return 0 +} + +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 (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) } - 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 +// Deprecated: Use Cluster.ProtoReflect.Descriptor instead. +func (*Cluster) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{50} +} + +func (x *Cluster) GetNodeCount() int32 { + if x != nil { + return x.NodeCount } - if m.NetSentBps != 0 { - n += 5 + return 0 +} + +func (x *Cluster) GetKubeletVersions() map[string]int32 { + if x != nil { + return x.KubeletVersions } - if m.State != 0 { - n += 1 + sovAgent(uint64(m.State)) + return nil +} + +func (x *Cluster) GetApiServerVersions() map[string]int32 { + if x != nil { + return x.ApiServerVersions } - if m.Health != 0 { - n += 2 + sovAgent(uint64(m.Health)) + return nil +} + +func (x *Cluster) GetPodCapacity() uint32 { + if x != nil { + return x.PodCapacity } - if m.Key != 0 { - n += 2 + sovAgent(uint64(m.Key)) + return 0 +} + +func (x *Cluster) GetPodAllocatable() uint32 { + if x != nil { + return x.PodAllocatable } - if m.Started != 0 { - n += 2 + sovAgent(uint64(m.Started)) + return 0 +} + +func (x *Cluster) GetMemoryAllocatable() uint64 { + if x != nil { + return x.MemoryAllocatable } - l = len(m.ByteKey) - if l > 0 { - n += 2 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *Cluster) GetMemoryCapacity() uint64 { + if x != nil { + return x.MemoryCapacity } - if m.ThreadCount != 0 { - n += 2 + sovAgent(uint64(m.ThreadCount)) + return 0 +} + +func (x *Cluster) GetCpuAllocatable() uint64 { + if x != nil { + return x.CpuAllocatable } - if m.ThreadLimit != 0 { - n += 2 + sovAgent(uint64(m.ThreadLimit)) + return 0 +} + +func (x *Cluster) GetCpuCapacity() uint64 { + if x != nil { + return x.CpuCapacity } - if m.MemUsage != 0 { - n += 2 + sovAgent(uint64(m.MemUsage)) + return 0 +} + +func (x *Cluster) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion } - if m.CpuUsageNs != 0 { - n += 6 + return "" +} + +func (x *Cluster) GetCreationTimestamp() int64 { + if x != nil { + return x.CreationTimestamp } - if m.MemAccounted != 0 { - n += 2 + sovAgent(uint64(m.MemAccounted)) + return 0 +} + +func (x *Cluster) GetTags() []string { + if x != nil { + return x.Tags } - return n + return nil } -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) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - if m.Os != nil { - l = m.Os.Size() - 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.Cpus) > 0 { - for _, e := range m.Cpus { - l = e.Size() - 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.TotalMemory != 0 { - n += 1 + sovAgent(uint64(m.TotalMemory)) - } - return n + return mi.MessageOf(x) } -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)) - } - l = len(m.KernelVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{51} } -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 *Metadata) GetName() string { + if x != nil { + return x.Name } - if m.WriteBytesRate != 0 { - n += 5 - } - return n + return "" } -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)) - } - if m.Shared != 0 { - n += 1 + sovAgent(uint64(m.Shared)) +func (x *Metadata) GetNamespace() string { + if x != nil { + return x.Namespace } - if m.Text != 0 { - n += 1 + sovAgent(uint64(m.Text)) + return "" +} + +func (x *Metadata) GetUid() string { + if x != nil { + return x.Uid } - if m.Lib != 0 { - n += 1 + sovAgent(uint64(m.Lib)) + return "" +} + +func (x *Metadata) GetCreationTimestamp() int64 { + if x != nil { + return x.CreationTimestamp } - if m.Data != 0 { - n += 1 + sovAgent(uint64(m.Data)) + return 0 +} + +func (x *Metadata) GetDeletionTimestamp() int64 { + if x != nil { + return x.DeletionTimestamp } - if m.Dirty != 0 { - n += 1 + sovAgent(uint64(m.Dirty)) + return 0 +} + +func (x *Metadata) GetLabels() []string { + if x != nil { + return x.Labels } - return n + return nil } -func (m *CPUStat) Size() (n int) { - var l int - _ = l - l = len(m.LastCpu) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Metadata) GetAnnotations() []string { + if x != nil { + return x.Annotations } - if m.TotalPct != 0 { - n += 5 + return nil +} + +func (x *Metadata) GetOwnerReferences() []*OwnerReference { + if x != nil { + return x.OwnerReferences } - if m.UserPct != 0 { - n += 5 + return nil +} + +func (x *Metadata) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion } - if m.SystemPct != 0 { - n += 5 + return "" +} + +func (x *Metadata) GetFinalizers() []string { + if x != nil { + return x.Finalizers } - if m.NumThreads != 0 { - n += 1 + sovAgent(uint64(m.NumThreads)) + 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.Cpus) > 0 { - for _, e := range m.Cpus { - l = e.Size() - 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.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 mi.MessageOf(x) } -func (m *SingleCPUStat) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.TotalPct != 0 { - n += 5 - } - return n +// Deprecated: Use OwnerReference.ProtoReflect.Descriptor instead. +func (*OwnerReference) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{52} } -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)) +func (x *OwnerReference) GetName() string { + if x != nil { + return x.Name } - l = len(m.Family) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - 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)) - } - if m.Cores != 0 { - n += 1 + sovAgent(uint64(m.Cores)) - } - if m.Mhz != 0 { - n += 1 + sovAgent(uint64(m.Mhz)) - } - if m.CacheSize != 0 { - n += 1 + sovAgent(uint64(m.CacheSize)) - } - return n + return "" } -func (m *Host) Size() (n int) { - var l int - _ = l - if m.Id != 0 { - n += 1 + sovAgent(uint64(m.Id)) +func (x *OwnerReference) GetUid() string { + if x != nil { + return x.Uid } - if m.OrgId != 0 { - n += 1 + sovAgent(uint64(m.OrgId)) + return "" +} + +func (x *OwnerReference) GetKind() string { + if x != nil { + return x.Kind } - l = len(m.Name) - 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.AllTags) > 0 { - for _, s := range m.AllTags { - 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 } - if m.NumCpus != 0 { - n += 1 + sovAgent(uint64(m.NumCpus)) - } - if m.TotalMemory != 0 { - n += 1 + sovAgent(uint64(m.TotalMemory)) + return mi.MessageOf(x) +} + +// Deprecated: Use ObjectReference.ProtoReflect.Descriptor instead. +func (*ObjectReference) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{53} +} + +func (x *ObjectReference) GetKind() string { + if x != nil { + return x.Kind } - if m.TagIndex != 0 { - n += 1 + sovAgent(uint64(m.TagIndex)) + return "" +} + +func (x *ObjectReference) GetNamespace() string { + if x != nil { + return x.Namespace } - if m.TagsModified != 0 { - n += 1 + sovAgent(uint64(m.TagsModified)) + return "" +} + +func (x *ObjectReference) GetName() string { + if x != nil { + return x.Name } - return n + return "" } -func (m *Cluster) Size() (n int) { - var l int - _ = l - if m.NodeCount != 0 { - n += 1 + sovAgent(uint64(m.NodeCount)) +func (x *ObjectReference) GetUid() string { + if x != nil { + return x.Uid } - 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 *ObjectReference) GetApiVersion() string { + if x != nil { + return x.ApiVersion } - 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)) - } - } - if m.PodCapacity != 0 { - n += 1 + sovAgent(uint64(m.PodCapacity)) - } - if m.PodAllocatable != 0 { - n += 1 + sovAgent(uint64(m.PodAllocatable)) - } - if m.MemoryAllocatable != 0 { - n += 1 + sovAgent(uint64(m.MemoryAllocatable)) - } - if m.MemoryCapacity != 0 { - n += 1 + sovAgent(uint64(m.MemoryCapacity)) - } - if m.CpuAllocatable != 0 { - n += 1 + sovAgent(uint64(m.CpuAllocatable)) - } - if m.CpuCapacity != 0 { - n += 1 + sovAgent(uint64(m.CpuCapacity)) + return "" +} + +func (x *ObjectReference) GetResourceVersion() string { + if x != nil { + return x.ResourceVersion } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *ObjectReference) GetFieldPath() string { + if x != nil { + return x.FieldPath } - if m.CreationTimestamp != 0 { - n += 1 + sovAgent(uint64(m.CreationTimestamp)) + return "" +} + +// 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 (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) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - 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.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)) +// Deprecated: Use ServicePort.ProtoReflect.Descriptor instead. +func (*ServicePort) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{54} +} + +func (x *ServicePort) GetName() string { + if x != nil { + return x.Name } - if m.DeletionTimestamp != 0 { - n += 1 + sovAgent(uint64(m.DeletionTimestamp)) + return "" +} + +func (x *ServicePort) GetProtocol() string { + if x != nil { + return x.Protocol } - if len(m.Labels) > 0 { - for _, s := range m.Labels { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *ServicePort) GetPort() int32 { + if x != nil { + return x.Port } - if len(m.Annotations) > 0 { - for _, s := range m.Annotations { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return 0 +} + +func (x *ServicePort) GetTargetPort() string { + if x != nil { + return x.TargetPort } - if len(m.OwnerReferences) > 0 { - for _, e := range m.OwnerReferences { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *ServicePort) GetNodePort() int32 { + if x != nil { + return x.NodePort } - l = len(m.ResourceVersion) - if l > 0 { - 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#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 (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) } - if len(m.Finalizers) > 0 { - for _, s := range m.Finalizers { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *ServiceSessionAffinityConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +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 *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 ServiceSessionAffinityConfig.ProtoReflect.Descriptor instead. +func (*ServiceSessionAffinityConfig) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{55} } -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)) +func (x *ServiceSessionAffinityConfig) GetClientIPTimeoutSeconds() int32 { + if x != nil { + return x.ClientIPTimeoutSeconds } - 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)) - } - l = len(m.FieldPath) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return 0 } -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)) - } - if m.Port != 0 { - n += 1 + sovAgent(uint64(m.Port)) - } - l = len(m.TargetPort) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.NodePort != 0 { - n += 1 + sovAgent(uint64(m.NodePort)) - } - 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"` + 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,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 *ServiceSessionAffinityConfig) Size() (n int) { - var l int - _ = l - if m.ClientIPTimeoutSeconds != 0 { - n += 1 + sovAgent(uint64(m.ClientIPTimeoutSeconds)) +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) } - return n } -func (m *Node) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) - } - 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)) +func (x *Node) String() string { + return protoimpl.X.MessageStringOf(x) +} + +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 } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) + return mi.MessageOf(x) +} + +// Deprecated: Use Node.ProtoReflect.Descriptor instead. +func (*Node) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{56} +} + +func (x *Node) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Node) GetPodCIDR() string { + if x != nil { + return x.PodCIDR } - if len(m.Roles) > 0 { - for _, s := range m.Roles { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *Node) GetPodCIDRs() []string { + if x != nil { + return x.PodCIDRs } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return nil +} + +func (x *Node) GetUnschedulable() bool { + if x != nil { + return x.Unschedulable } - l = len(m.ProviderID) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return false +} + +func (x *Node) GetTaints() []*Taint { + if x != nil { + return x.Taints } - if m.Host != nil { - l = m.Host.Size() - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Node) GetStatus() *NodeStatus { + if x != nil { + return x.Status } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Node) GetYaml() []byte { + if x != nil { + return x.Yaml } - return n + return nil } -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)) - } +func (x *Node) GetRoles() []string { + if x != nil { + return x.Roles } - 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)) - } + return nil +} + +func (x *Node) GetTags() []string { + if x != nil { + return x.Tags } - 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)) - } + return nil +} + +func (x *Node) GetProviderID() string { + if x != nil { + return x.ProviderID } - l = len(m.Status) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *Node) GetHost() *Host { + if x != nil { + return x.Host } - l = len(m.KubeletVersion) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Node) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return nil +} + +// 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 (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 len(m.Images) > 0 { - for _, e := range m.Images { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +func (x *NodeStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +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 } - 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 + return mi.MessageOf(x) } -func (m *NodeCondition) 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)) +// Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead. +func (*NodeStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{57} +} + +func (x *NodeStatus) GetCapacity() map[string]int64 { + if x != nil { + return x.Capacity } - return n + return nil } -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 *NodeStatus) GetAllocatable() map[string]int64 { + if x != nil { + return x.Allocatable } - if m.SizeBytes != 0 { - n += 1 + sovAgent(uint64(m.SizeBytes)) + return nil +} + +func (x *NodeStatus) GetNodeAddresses() map[string]string { + if x != nil { + return x.NodeAddresses } - return n + return nil } -func (m *Taint) Size() (n int) { - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *NodeStatus) GetStatus() string { + if x != nil { + return x.Status } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *NodeStatus) GetKubeletVersion() string { + if x != nil { + return x.KubeletVersion } - l = len(m.Effect) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *NodeStatus) GetConditions() []*NodeCondition { + if x != nil { + return x.Conditions } - if m.TimeAdded != 0 { - n += 1 + sovAgent(uint64(m.TimeAdded)) + return nil +} + +func (x *NodeStatus) GetImages() []*ContainerImage { + if x != nil { + return x.Images } - return n + return nil } -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)) - } +func (x *NodeStatus) GetKubeProxyVersion() string { + if x != nil { + return x.KubeProxyVersion } - if len(m.Selectors) > 0 { - for _, e := range m.Selectors { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *NodeStatus) GetOperatingSystem() string { + if x != nil { + return x.OperatingSystem } - l = len(m.ClusterIP) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *NodeStatus) GetArchitecture() string { + if x != nil { + return x.Architecture } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *NodeStatus) GetKernelVersion() string { + if x != nil { + return x.KernelVersion } - if len(m.ExternalIPs) > 0 { - for _, s := range m.ExternalIPs { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } + return "" +} + +func (x *NodeStatus) GetOsImage() string { + if x != nil { + return x.OsImage } - l = len(m.SessionAffinity) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *NodeStatus) GetContainerRuntimeVersion() string { + if x != nil { + return x.ContainerRuntimeVersion } - l = len(m.LoadBalancerIP) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +// 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 (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) } - if len(m.LoadBalancerSourceRanges) > 0 { - for _, s := range m.LoadBalancerSourceRanges { - 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 } - l = len(m.ExternalName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - 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 mi.MessageOf(x) +} + +// Deprecated: Use NodeCondition.ProtoReflect.Descriptor instead. +func (*NodeCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{58} +} + +func (x *NodeCondition) GetType() string { + if x != nil { + return x.Type } - 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 *NodeCondition) GetStatus() string { + if x != nil { + return x.Status } - 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)) +func (x *NodeCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovAgent(uint64(l)) + return 0 +} + +func (x *NodeCondition) GetReason() string { + if x != nil { + return x.Reason } - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *NodeCondition) GetMessage() string { + if x != nil { + return x.Message } - l = len(m.Yaml) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +// 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 (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) } - if len(m.Tags) > 0 { - for _, s := range m.Tags { - 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 } - if m.Metrics != nil { - l = m.Metrics.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n + return mi.MessageOf(x) } -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)) - } - if m.LastUpdateTime != 0 { - n += 1 + sovAgent(uint64(m.LastUpdateTime)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - return n +// Deprecated: Use ContainerImage.ProtoReflect.Descriptor instead. +func (*ContainerImage) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{59} } -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)) +func (x *ContainerImage) GetNames() []string { + if x != nil { + return x.Names } - 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)) + return nil +} + +func (x *ContainerImage) GetSizeBytes() int64 { + if x != nil { + return x.SizeBytes } - 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)) - } - 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#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 *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)) - } +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) } - 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)) - } - } - 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 *Taint) 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 (*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 *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 Taint.ProtoReflect.Descriptor instead. +func (*Taint) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{60} } -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)) +func (x *Taint) GetKey() string { + if x != nil { + return x.Key } - 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)) - } - return n + return "" } -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)) +func (x *Taint) GetValue() string { + if x != nil { + return x.Value } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -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)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Taint) GetEffect() string { + if x != nil { + return x.Effect } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return "" } -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)) +func (x *Taint) GetTimeAdded() int64 { + if x != nil { + return x.TimeAdded } - 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 0 } -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)) - } - } - 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 +// 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 (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)) - } +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) } - return n } -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 - } - if len(m.ResourceRequirements) > 0 { - for _, e := range m.ResourceRequirements { - 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) } -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)) - } - return n +// Deprecated: Use ServiceSpec.ProtoReflect.Descriptor instead. +func (*ServiceSpec) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{61} } -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 *ServiceSpec) GetPorts() []*ServicePort { + if x != nil { + return x.Ports } - 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 *ServiceSpec) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors } - 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 nil } -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)) +func (x *ServiceSpec) GetClusterIP() string { + if x != nil { + return x.ClusterIP } - if m.Suspend { - n += 2 - } - 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 "" } -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 *ServiceSpec) GetType() string { + if x != nil { + return x.Type } - if m.LastScheduleTime != 0 { - n += 1 + sovAgent(uint64(m.LastScheduleTime)) - } - return n + return "" } -func (m *CronJob) 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)) +func (x *ServiceSpec) GetExternalIPs() []string { + if x != nil { + return x.ExternalIPs } - 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)) - } - l = len(m.MaxUnavailable) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *ServiceSpec) GetSessionAffinity() string { + if x != nil { + return x.SessionAffinity } - 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 n + return "" } -func (m *DaemonSetStatus) Size() (n int) { - var l int - _ = l - if m.CurrentNumberScheduled != 0 { - n += 1 + sovAgent(uint64(m.CurrentNumberScheduled)) - } - 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)) +func (x *ServiceSpec) GetLoadBalancerIP() string { + if x != nil { + return x.LoadBalancerIP } - 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 *ServiceSpec) GetLoadBalancerSourceRanges() []string { + if x != nil { + return x.LoadBalancerSourceRanges } - 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)) +func (x *ServiceSpec) GetExternalName() string { + if x != nil { + return x.ExternalName } - 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)) - } - } - return n + return "" } -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)) +func (x *ServiceSpec) GetExternalTrafficPolicy() string { + if x != nil { + return x.ExternalTrafficPolicy } - 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 + return "" } -func (m *StatefulSetStatus) Size() (n int) { - var l int - _ = l - if m.Replicas != 0 { - n += 1 + sovAgent(uint64(m.Replicas)) - } - if m.ReadyReplicas != 0 { - n += 1 + sovAgent(uint64(m.ReadyReplicas)) +func (x *ServiceSpec) GetHealthCheckNodePort() int32 { + if x != nil { + return x.HealthCheckNodePort } - if m.CurrentReplicas != 0 { - n += 1 + sovAgent(uint64(m.CurrentReplicas)) - } - if m.UpdatedReplicas != 0 { - n += 1 + sovAgent(uint64(m.UpdatedReplicas)) - } - return n + return 0 } -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)) +func (x *ServiceSpec) GetPublishNotReadyAddresses() bool { + if x != nil { + return x.PublishNotReadyAddresses } - 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 false } -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)) +func (x *ServiceSpec) GetSessionAffinityConfig() *ServiceSessionAffinityConfig { + if x != nil { + return x.SessionAffinityConfig } - 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)) - } - } - return n + return nil } -func (m *PersistentVolume) Size() (n int) { - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *ServiceSpec) GetIpFamily() string { + if x != nil { + return x.IpFamily } - 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 "" } -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)) - } - 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 +// 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 (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)) +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) } - 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)) - } - return n } -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 - } - return n +func (x *ServiceStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -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 (*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 *AzureFilePersistentVolumeSource) Size() (n int) { - var l int - _ = l - l = len(m.SecretName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - 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 +// Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead. +func (*ServiceStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{62} } -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)) +func (x *ServiceStatus) GetLoadBalancerIngress() []string { + if x != nil { + return x.LoadBalancerIngress } - 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)) - } - 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)) - } - 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 +// 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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 (m *SecretReference) Size() (n int) { - var l int - _ = l - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +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) } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n } -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)) - } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n +func (x *Service) String() string { + return protoimpl.X.MessageStringOf(x) } -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)) - } - } - if len(m.MatchFields) > 0 { - for _, e := range m.MatchFields { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +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) } -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)) - } - 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 Service.ProtoReflect.Descriptor instead. +func (*Service) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{63} } -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 *Service) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } - return n + return nil } -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)) - } - 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)) +func (x *Service) GetSpec() *ServiceSpec { + if x != nil { + return x.Spec } - return n + return nil } -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)) +func (x *Service) GetStatus() *ServiceStatus { + if x != nil { + return x.Status } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return nil } -func (m *PersistentVolumeClaimCondition) 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)) +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 n + return nil } -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 *Service) GetTags() []string { + if x != nil { + return x.Tags } - return n + return nil } -func (m *Subject) Size() (n int) { - var l int - _ = l - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Service) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - 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 + return nil } -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)) - } - } - return n +// 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 (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)) - } - 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 *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) } - return n } -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)) - } - 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 +func (x *DeploymentCondition) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClusterRoleBinding) 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)) - } - 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 (*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 n + return mi.MessageOf(x) } -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)) - } - } - 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 +// Deprecated: Use DeploymentCondition.ProtoReflect.Descriptor instead. +func (*DeploymentCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{64} } -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)) +func (x *DeploymentCondition) GetType() string { + if x != nil { + return x.Type } - if m.PortNumber != 0 { - n += 1 + sovAgent(uint64(m.PortNumber)) - } - return n + return "" } -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 *DeploymentCondition) GetStatus() string { + if x != nil { + return x.Status } - return n + return "" } -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)) - } - } - l = len(m.SecretName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *DeploymentCondition) GetLastUpdateTime() int64 { + if x != nil { + return x.LastUpdateTime } - return n + return 0 } -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)) +func (x *DeploymentCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - l = len(m.PathType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - return n + return 0 } -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 *DeploymentCondition) GetReason() string { + if x != nil { + return x.Reason } - return n + return "" } -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 *DeploymentCondition) GetMessage() string { + if x != nil { + return x.Message } - 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 "" } -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/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"` + Yaml []byte `protobuf:"bytes,14,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 (m *LoadBalancerIngress) Size() (n int) { - var l int - _ = l - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Hostname) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +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.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 *Deployment) 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 (*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 } - 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 Deployment.ProtoReflect.Descriptor instead. +func (*Deployment) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{65} } -func (m *KafkaAggregation) Size() (n int) { - var l int - _ = l - if m.Header != nil { - l = m.Header.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Topic) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Deployment) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } - if m.Count != 0 { - n += 1 + sovAgent(uint64(m.Count)) - } - return n + return nil } -func (m *DataStreamsAggregations) Size() (n int) { - var l int - _ = l - if m.KafkaProduceAggregations != nil { - l = m.KafkaProduceAggregations.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.KafkaFetchAggregations != nil { - l = m.KafkaFetchAggregations.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if len(m.KafkaAggregations) > 0 { - for _, e := range m.KafkaAggregations { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } +func (x *Deployment) GetReplicasDesired() int32 { + if x != nil { + return x.ReplicasDesired } - return n + return 0 } -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 *Deployment) GetDeploymentStrategy() string { + if x != nil { + return x.DeploymentStrategy } - if m.Count != 0 { - n += 1 + sovAgent(uint64(m.Count)) - } - return n + return "" } -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 *Deployment) GetMaxUnavailable() string { + if x != nil { + return x.MaxUnavailable } - 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 *Deployment) GetMaxSurge() string { + if x != nil { + return x.MaxSurge } - 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 *Deployment) GetPaused() bool { + if x != nil { + return x.Paused } - return n + return false } -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 *Deployment) GetSelectors() []*LabelSelectorRequirement { + if x != nil { + return x.Selectors } - return n + return nil } -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)) - } - } - 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)) - } +func (x *Deployment) GetReplicas() int32 { + if x != nil { + return x.Replicas } - l = len(m.Path) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Method != 0 { - n += 1 + sovAgent(uint64(m.Method)) - } - if m.FullPath { - n += 2 - } - 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 *Deployment) GetUpdatedReplicas() int32 { + if x != nil { + return x.UpdatedReplicas } - l = len(m.Latencies) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.FirstLatencySample != 0 { - n += 9 - } - return n + return 0 } -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)) - } +func (x *Deployment) GetReadyReplicas() int32 { + if x != nil { + return x.ReadyReplicas } - return n + return 0 } -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 *Deployment) GetAvailableReplicas() int32 { + if x != nil { + return x.AvailableReplicas } - return n + return 0 } -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)) +func (x *Deployment) GetUnavailableReplicas() int32 { + if x != nil { + return x.UnavailableReplicas } - 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 len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return 0 } -func (m *VerticalPodAutoscalerCondition) 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 *Deployment) GetConditionMessage() string { + if x != nil { + return x.ConditionMessage } - 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 "" } -func (m *VerticalPodAutoscalerSpec) Size() (n int) { - var l int - _ = l - if m.Target != nil { - l = m.Target.Size() - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.UpdateMode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) +func (x *Deployment) GetResourceRequirements() []*ResourceRequirements { + if x != nil { + return x.ResourceRequirements } - if len(m.ResourcePolicies) > 0 { - for _, e := range m.ResourcePolicies { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) - } - } - return n + return nil } -func (m *VerticalPodAutoscalerTarget) Size() (n int) { - var l int - _ = 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)) +func (x *Deployment) GetYaml() []byte { + if x != nil { + return x.Yaml } - return n + return nil } -func (m *ContainerResourcePolicy) Size() (n int) { - var l int - _ = l - l = len(m.ContainerName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.Mode) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.MinAllowed != nil { - l = m.MinAllowed.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.MaxAllowed != nil { - l = m.MaxAllowed.Size() - n += 1 + l + sovAgent(uint64(l)) +func (x *Deployment) GetTags() []string { + if x != nil { + return x.Tags } - if len(m.ControlledResource) > 0 { - for _, s := range m.ControlledResource { - l = len(s) - n += 1 + l + sovAgent(uint64(l)) - } - } - l = len(m.ControlledValues) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return nil +} + +func (x *Deployment) GetMetrics() *ResourceMetrics { + if x != nil { + return x.Metrics } - 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) GetConditions() []*DeploymentCondition { + if x != nil { + return x.Conditions } - if len(m.Recommendations) > 0 { - for _, e := range m.Recommendations { - l = e.Size() - 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#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) } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.Size() - n += 1 + l + sovAgent(uint64(l)) +} + +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 n + return mi.MessageOf(x) } -func (m *ContainerRecommendation) Size() (n int) { - var l int - _ = l - l = len(m.ContainerName) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.Target != nil { - l = m.Target.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.LowerBound != nil { - l = m.LowerBound.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.UpperBound != nil { - l = m.UpperBound.Size() - n += 1 + l + sovAgent(uint64(l)) - } - if m.UncappedTarget != nil { - l = m.UncappedTarget.Size() - n += 1 + l + sovAgent(uint64(l)) - } - return n +// Deprecated: Use ReplicaSetCondition.ProtoReflect.Descriptor instead. +func (*ReplicaSetCondition) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{66} } -func (m *VPACondition) Size() (n int) { - var l int - _ = l - l = len(m.ConditionType) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - l = len(m.ConditionStatus) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) - } - if m.LastTransitionTime != 0 { - n += 1 + sovAgent(uint64(m.LastTransitionTime)) +func (x *ReplicaSetCondition) GetType() string { + if x != nil { + return x.Type } - l = len(m.Reason) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *ReplicaSetCondition) GetStatus() string { + if x != nil { + return x.Status } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovAgent(uint64(l)) + return "" +} + +func (x *ReplicaSetCondition) GetLastTransitionTime() int64 { + if x != nil { + return x.LastTransitionTime } - return n + return 0 } -func sovAgent(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } +func (x *ReplicaSetCondition) GetReason() string { + if x != nil { + return x.Reason } - return n + return "" } -func sozAgent(x uint64) (n int) { - return sovAgent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + +func (x *ReplicaSetCondition) GetMessage() string { + if x != nil { + return x.Message + } + return "" } -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 + +// 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"` + Yaml []byte `protobuf:"bytes,8,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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) +} + +// Deprecated: Use ReplicaSet.ProtoReflect.Descriptor instead. +func (*ReplicaSet) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{67} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSet) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } 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 - } + +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 *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 *ReplicaSet) GetReplicas() int32 { + if x != nil { + return x.Replicas } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicaSet) GetFullyLabeledReplicas() int32 { + if x != nil { + return x.FullyLabeledReplicas } - 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 *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 *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) 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 *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) 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 *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 + +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 *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 *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 *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 + +// 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" + Yaml []byte `protobuf:"bytes,10,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 *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 *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 *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 - } + +func (x *Pod) GetNodeName() string { + if x != nil { + return x.NodeName } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetPhase() string { + if x != nil { + return x.Phase } - return nil + return "" } -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) 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 *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 - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetInitContainerStatuses() []*ContainerStatus { + if x != nil { + return x.InitContainerStatuses } 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 - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetConditionMessage() string { + if x != nil { + return x.ConditionMessage } - return nil + return "" } -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 - } + +func (x *Pod) GetStatus() string { + if x != nil { + return x.Status } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Pod) GetYaml() []byte { + if x != nil { + return x.Yaml } 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) GetTags() []string { + if x != nil { + return x.Tags } 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 - } + +func (x *Pod) GetHost() *Host { + if x != nil { + return x.Host } + return nil +} - 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 - } + +func (x *Pod) GetQOSClass() string { + if x != nil { + return x.QOSClass + } + return "" +} + +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 *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) 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 *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 + +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 *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 - } + +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 *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) 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 *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) GetMessage() string { + if x != nil { + return x.Message } + return "" +} + +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"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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 *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 *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 *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) 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 *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) 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 *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) 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 *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 *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 *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) + +// 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) } - 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 + 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} +} + +func (x *NamespaceCondition) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +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 + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 *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 - } + +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 +func (x *Namespace) GetYaml() []byte { + if x != nil { + return x.Yaml } return nil } -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 *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 *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 + +// 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 *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 *ResourceRequirements) GetRequests() map[string]int64 { + if x != nil { + return x.Requests + } + return nil +} + +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 *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 + +// 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} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobSpec) GetParallelism() int32 { + if x != nil { + return x.Parallelism } - return nil + return 0 } -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 - } + +func (x *JobSpec) GetCompletions() int32 { + if x != nil { + return x.Completions } + return 0 +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *JobSpec) GetActiveDeadlineSeconds() int64 { + if x != nil { + return x.ActiveDeadlineSeconds } - return nil + return 0 } -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 *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 *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 - } + +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 *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 + +// 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) } + return ms } + return mi.MessageOf(x) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// 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 nil + return "" } -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 - } + +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 +} + +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 +} + +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 +} + +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) } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Container: wiretype end group for non-group") + 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) } - if fieldNum <= 0 { - return fmt.Errorf("proto: Container: illegal tag %d (wire type %d)", fieldNum, wire) + 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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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) } - 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 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 +} + +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 +} + +func (x *PersistentVolume) GetSpec() *PersistentVolumeSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *PersistentVolume) GetStatus() *PersistentVolumeStatus { + if x != nil { + return x.Status + } + return nil +} + +func (x *PersistentVolume) GetYaml() []byte { + if x != nil { + return x.Yaml + } + return nil +} + +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 *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 *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 *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 *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 "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeSpec) GetMountOptions() []string { + if x != nil { + return x.MountOptions } 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) GetVolumeMode() string { + if x != nil { + return x.VolumeMode } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeSpec) GetNodeAffinity() []*NodeSelectorTerm { + if x != nil { + return x.NodeAffinity } 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) 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} +} + +func (x *PersistentVolumeSource) GetGcePersistentDisk() *GCEPersistentDiskVolumeSource { + if x != nil { + return x.GcePersistentDisk + } + return nil +} + +func (x *PersistentVolumeSource) GetAwsElasticBlockStore() *AWSElasticBlockStoreVolumeSource { + if x != nil { + return x.AwsElasticBlockStore + } + return nil +} + +func (x *PersistentVolumeSource) GetAzureFile() *AzureFilePersistentVolumeSource { + if x != nil { + return x.AzureFile + } + return nil +} + +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 *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 + +// 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 *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 *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 *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 - } + +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 *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 *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) +} + +// Deprecated: Use AWSElasticBlockStoreVolumeSource.ProtoReflect.Descriptor instead. +func (*AWSElasticBlockStoreVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{96} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AWSElasticBlockStoreVolumeSource) GetVolumeID() string { + if x != nil { + return x.VolumeID } - return nil + return "" } -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 *AWSElasticBlockStoreVolumeSource) GetFsType() string { + if x != nil { + return x.FsType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AWSElasticBlockStoreVolumeSource) GetPartition() int32 { + if x != nil { + return x.Partition } - return nil + return 0 } -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) 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"` +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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) } - return nil } -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 *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) +} + +// 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 "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureFilePersistentVolumeSource) GetShareName() string { + if x != nil { + return x.ShareName } - 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) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } + return false +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureFilePersistentVolumeSource) GetSecretNamespace() string { + if x != nil { + return x.SecretNamespace } - return nil + return "" } -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 + +// 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"` +} + +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) + } +} + +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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use AzureDiskVolumeSource.ProtoReflect.Descriptor instead. +func (*AzureDiskVolumeSource) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{98} +} + +func (x *AzureDiskVolumeSource) GetDiskName() string { + if x != nil { + return x.DiskName } - return nil + return "" } -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) 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 *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) GetFsType() string { + if x != nil { + return x.FsType } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *AzureDiskVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } - return nil + return false } -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) 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} +} + +func (x *CSIVolumeSource) GetDriver() string { + if x != nil { + return x.Driver + } + return "" +} + +func (x *CSIVolumeSource) GetVolumeHandle() string { + if x != nil { + return x.VolumeHandle } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *CSIVolumeSource) GetReadOnly() bool { + if x != nil { + return x.ReadOnly } - return nil + return false } -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) 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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 - } + +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} +} + +func (x *PersistentVolumeClaimCondition) GetType() string { + if x != nil { + return x.Type } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *PersistentVolumeClaimCondition) GetStatus() string { + if x != nil { + return x.Status } - 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) 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use PolicyRule.ProtoReflect.Descriptor instead. +func (*PolicyRule) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{108} +} + +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) + +// 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) } - 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 + 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"` + Yaml []byte `protobuf:"bytes,3,opt,name=yaml,proto3" json:"yaml,omitempty"` + Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` +} + +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) + } +} + +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 *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 - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *Role) GetRules() []*PolicyRule { + if x != nil { + return x.Rules } 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) GetYaml() []byte { + if x != nil { + return x.Yaml } 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 - } - } - 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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use RoleBinding.ProtoReflect.Descriptor instead. +func (*RoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{111} +} + +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 - } + +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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} +} + +func (x *ClusterRole) GetMetadata() *Metadata { + if x != nil { + return x.Metadata } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ClusterRole) GetRules() []*PolicyRule { + if x != nil { + return x.Rules } 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) GetAggregationRules() []*LabelSelectorRequirement { + if x != nil { + return x.AggregationRules } 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 - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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) +} + +// Deprecated: Use ClusterRoleBinding.ProtoReflect.Descriptor instead. +func (*ClusterRoleBinding) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{113} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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 - } + +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"` + Yaml []byte `protobuf:"bytes,5,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 +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) +} + +// 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 "" +} + +func (x *LoadBalancerIngress) GetHostname() string { + if x != nil { + return x.Hostname + } + return "" +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *LoadBalancerIngress) GetPorts() []*PortStatus { + if x != nil { + return x.Ports } return nil } -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 + +// 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) +} + +// Deprecated: Use IngressStatus.ProtoReflect.Descriptor instead. +func (*IngressStatus) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{123} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 - } + +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 +} + +func (x *DataStreamsAggregations) GetKafkaFetchAggregations() *DataStreamsAggregations_KafkaFetchAggregations { + if x != nil { + return x.KafkaFetchAggregations } + return nil +} - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *DataStreamsAggregations) GetKafkaAggregations() []*KafkaAggregation { + if x != nil { + return x.KafkaAggregations } 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 + +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) +} + +// Deprecated: Use HTTP2Aggregations.ProtoReflect.Descriptor instead. +func (*HTTP2Aggregations) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{129} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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 +} + +func (x *HTTPStats) GetFullPath() bool { + if x != nil { + return x.FullPath } + return false +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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) +} - if iNdEx > l { - return io.ErrUnexpectedEOF +// Deprecated: Use DNSDatabaseEntry.ProtoReflect.Descriptor instead. +func (*DNSDatabaseEntry) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{131} +} + +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) +} + +// Deprecated: Use ResourceList.ProtoReflect.Descriptor instead. +func (*ResourceList) Descriptor() ([]byte, []int) { + return file_proto_process_agent_proto_rawDescGZIP(), []int{132} +} - if iNdEx > l { - return io.ErrUnexpectedEOF +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"` + Yaml []byte `protobuf:"bytes,4,opt,name=yaml,proto3" json:"yaml,omitempty"` + 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 +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, 0xe1, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 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, 0xa6, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 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, 0xdd, + 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 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, 0xfd, 0x04, 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, 0x12, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 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, 0x95, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0c, 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, + 0xff, 0x01, 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, 0x12, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0x9d, 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, 0x12, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, + 0xe4, 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, 0x12, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xf7, 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, 0x12, + 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xff, + 0x02, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, + 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xff, 0x01, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0x8e, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xa4, + 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, 0x12, 0x0a, + 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 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, 0xfa, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, + 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xca, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 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, + 0x81, 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, 0x12, 0x0a, 0x04, 0x79, + 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xd9, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0c, 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, 0xe4, 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, 0x12, 0x0a, 0x04, 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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, 0xe5, 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, 0x12, 0x0a, 0x04, + 0x79, 0x61, 0x6d, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 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{ - // 9271 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, 0x3d, 0xd4, 0xec, 0xec, 0x6c, 0xad, - 0x56, 0x3b, 0x9e, 0xd5, 0x52, 0xca, 0xac, 0xa4, 0x1d, 0x49, 0xbb, 0x5a, 0x91, 0x4d, 0x8e, 0x44, - 0x0e, 0x1f, 0xed, 0xdb, 0xe4, 0x68, 0x2d, 0xc9, 0xd0, 0x16, 0xab, 0x2e, 0xc9, 0x32, 0xab, 0xab, - 0xda, 0x55, 0xd5, 0x9c, 0xa1, 0x82, 0x7c, 0x38, 0xce, 0x03, 0x06, 0xe2, 0x64, 0x91, 0xc4, 0x70, - 0xfc, 0xe1, 0x8f, 0x24, 0x8e, 0x81, 0x3c, 0xb0, 0xc8, 0x7e, 0x05, 0xf9, 0x0b, 0x0c, 0x04, 0x0e, - 0xd6, 0x40, 0x90, 0xc0, 0xf9, 0x70, 0x82, 0x04, 0x70, 0xb4, 0x71, 0x3e, 0xfc, 0x91, 0xbf, 0xd8, - 0x80, 0x83, 0xec, 0x06, 0xf7, 0x55, 0x75, 0xab, 0xba, 0xaa, 0xbb, 0x49, 0x8e, 0x44, 0x2d, 0xf2, - 0xd5, 0x75, 0xcf, 0xbd, 0xf7, 0xdc, 0xd7, 0x39, 0xe7, 0x9e, 0x73, 0xee, 0xb9, 0xb7, 0xe1, 0x46, - 0x3f, 0xf0, 0x23, 0xff, 0xa5, 0x7e, 0xe0, 0x5b, 0x24, 0x0c, 0x5f, 0x32, 0x8f, 0x88, 0x17, 0x2d, - 0x33, 0x18, 0xba, 0x6e, 0x9b, 0x91, 0x69, 0xfb, 0x47, 0xcb, 0x22, 0xf3, 0x23, 0x96, 0x69, 0xfc, - 0x48, 0x83, 0x69, 0x4c, 0xc2, 0xb6, 0xef, 0xba, 0xc4, 0x8a, 0xfc, 0x00, 0xad, 0x42, 0xed, 0x98, - 0x98, 0x36, 0x09, 0x5a, 0xda, 0x6d, 0xed, 0xce, 0xd4, 0xbd, 0xbb, 0xcb, 0xb9, 0x15, 0x97, 0xd5, - 0x4a, 0xcb, 0xef, 0xb2, 0x1a, 0x58, 0xd4, 0x44, 0x2d, 0xa8, 0xf7, 0x48, 0x18, 0x9a, 0x47, 0xa4, - 0x55, 0xba, 0xad, 0xdd, 0x69, 0x62, 0x99, 0x44, 0x6f, 0x41, 0x2d, 0x8c, 0xcc, 0x68, 0x10, 0xb6, - 0xca, 0x0c, 0xfb, 0x0b, 0x05, 0xd8, 0x63, 0xd4, 0x5d, 0x56, 0x1a, 0x8b, 0x5a, 0x4b, 0x37, 0xa1, - 0xc6, 0xdb, 0x42, 0x08, 0x2a, 0xd1, 0x59, 0x9f, 0xb4, 0x2a, 0xb7, 0xb5, 0x3b, 0x55, 0xcc, 0xbe, - 0x8d, 0xbf, 0x28, 0xc3, 0x4c, 0x5c, 0xb3, 0x13, 0xf8, 0x16, 0x5a, 0x82, 0xc6, 0xb1, 0x1f, 0x46, - 0x3b, 0x66, 0x4f, 0x76, 0x25, 0x4e, 0xa3, 0x6f, 0x41, 0x53, 0x34, 0x4a, 0x68, 0x77, 0xca, 0x77, - 0xa6, 0xee, 0xdd, 0x2a, 0xe8, 0x4e, 0x87, 0xa7, 0x70, 0x52, 0x01, 0xbd, 0x04, 0x15, 0x8a, 0x89, - 0xb5, 0x3f, 0x75, 0xef, 0xb9, 0x82, 0x8a, 0xef, 0xfa, 0x61, 0x84, 0x59, 0x41, 0xf4, 0x2a, 0x54, - 0x1c, 0xef, 0xd0, 0x6f, 0x55, 0x59, 0x85, 0x2f, 0x15, 0x54, 0xe8, 0x9e, 0x85, 0x11, 0xe9, 0x6d, - 0x78, 0x87, 0x3e, 0x66, 0xc5, 0xe9, 0x5c, 0x1e, 0x05, 0xfe, 0xa0, 0xbf, 0x61, 0xb7, 0x6a, 0x6c, - 0xa8, 0x32, 0x89, 0x6e, 0x42, 0x93, 0x7d, 0x76, 0x9d, 0x8f, 0x49, 0xab, 0xce, 0xf2, 0x12, 0x00, - 0x7a, 0x1b, 0xc0, 0xf2, 0xbd, 0xc8, 0x74, 0x3c, 0x12, 0x84, 0x2d, 0x60, 0xc3, 0xbb, 0x5d, 0x38, - 0xdb, 0xa2, 0x20, 0x56, 0xea, 0x50, 0xfc, 0x1e, 0x89, 0x1e, 0xfb, 0xc1, 0xc9, 0x86, 0xdd, 0x9a, - 0x62, 0x93, 0x97, 0x00, 0xd0, 0x23, 0x98, 0x8f, 0xcb, 0xd2, 0x51, 0xee, 0xd1, 0xc5, 0x98, 0xbe, - 0xad, 0xdd, 0x99, 0xbd, 0x77, 0x67, 0x5c, 0x33, 0xb2, 0x3c, 0x1e, 0x46, 0x81, 0x6e, 0x42, 0xe3, - 0xd8, 0xf1, 0xa2, 0x6d, 0x33, 0x3c, 0x69, 0xcd, 0xd2, 0x41, 0xbd, 0xfb, 0x0c, 0x8e, 0x21, 0xab, - 0x75, 0xa8, 0xd2, 0xef, 0x70, 0xb3, 0xd2, 0x98, 0xd1, 0x67, 0x37, 0x2b, 0x8d, 0x86, 0xde, 0xdc, - 0xac, 0x34, 0x9a, 0x3a, 0x18, 0x7f, 0xa6, 0xc1, 0x62, 0x6a, 0xf1, 0xd7, 0x9c, 0xd0, 0xf2, 0x4f, - 0x49, 0x70, 0x96, 0xa2, 0x02, 0x2d, 0x43, 0x05, 0xca, 0xfc, 0x96, 0x46, 0xcc, 0x6f, 0x39, 0x3b, - 0xbf, 0xef, 0x01, 0x12, 0xa3, 0x93, 0xed, 0x38, 0x24, 0x6c, 0x55, 0xd8, 0x3c, 0x7f, 0x75, 0x34, - 0x19, 0xc5, 0x1d, 0xc3, 0x39, 0x28, 0x62, 0xc2, 0xaa, 0x4e, 0x48, 0x58, 0xc6, 0x0f, 0xcb, 0x30, - 0x1f, 0x0f, 0x1c, 0x13, 0xd3, 0xdd, 0x73, 0x7a, 0x64, 0x24, 0xe5, 0xdf, 0x87, 0x2a, 0xe5, 0x27, - 0x49, 0xf5, 0xc6, 0xe8, 0xee, 0x52, 0x16, 0xc4, 0xbc, 0x02, 0x5a, 0x84, 0x1a, 0xc5, 0xb2, 0x61, - 0x33, 0xba, 0x2f, 0x63, 0x91, 0x42, 0x0b, 0x50, 0xf5, 0x83, 0xa3, 0x0d, 0x9b, 0xf5, 0xba, 0x8a, - 0x79, 0xe2, 0xc2, 0xb4, 0xdb, 0x82, 0xba, 0x37, 0xe8, 0xb5, 0xfb, 0x83, 0xb0, 0xd5, 0xe0, 0xf5, - 0x44, 0x12, 0xdd, 0x86, 0xa9, 0xc8, 0x8f, 0x4c, 0x77, 0x9b, 0xf4, 0xfc, 0xe0, 0xac, 0xd5, 0x64, - 0x9d, 0x50, 0x41, 0x68, 0x0b, 0x66, 0x63, 0xa2, 0xea, 0xb2, 0x41, 0x72, 0xda, 0x7f, 0x7e, 0x1c, - 0x51, 0xb2, 0x61, 0x66, 0xea, 0xe6, 0x53, 0xf9, 0xd4, 0xa5, 0xa9, 0xdc, 0xf8, 0xfb, 0x65, 0x40, - 0xf1, 0x9a, 0xc5, 0x35, 0x46, 0x12, 0xaa, 0x94, 0x1f, 0xa5, 0xf3, 0xc9, 0x8f, 0xb4, 0x1c, 0x28, - 0x5f, 0x40, 0x0e, 0x28, 0xab, 0x58, 0x19, 0xb1, 0x8a, 0xd5, 0xec, 0x2a, 0x4a, 0x42, 0x6e, 0x4c, - 0x2a, 0x21, 0x73, 0x27, 0xbb, 0xf9, 0x34, 0x44, 0xca, 0x08, 0x41, 0xb6, 0x59, 0x69, 0xd4, 0xf4, - 0xfa, 0x66, 0xa5, 0x51, 0xd7, 0x1b, 0xc6, 0x1f, 0x95, 0x60, 0x69, 0x78, 0x59, 0x72, 0x79, 0x2a, - 0xbb, 0x3c, 0x6f, 0x48, 0x9e, 0x2a, 0x9d, 0x83, 0xdc, 0x04, 0x57, 0x29, 0xf4, 0x5e, 0x1e, 0x49, - 0xef, 0x95, 0x61, 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, 0x94, 0x94, 0x32, 0x7e, - 0xb3, 0x04, 0xd3, 0x89, 0x40, 0xf7, 0xed, 0x91, 0xd3, 0x7f, 0x1b, 0xa6, 0x2c, 0x77, 0x10, 0x46, - 0x24, 0x50, 0x70, 0xa9, 0x20, 0x3a, 0x6c, 0x91, 0xdc, 0xb0, 0xd9, 0x34, 0x37, 0x71, 0x02, 0xb8, - 0x30, 0x91, 0x2f, 0x43, 0xa5, 0xef, 0xdb, 0x61, 0xab, 0xc6, 0x56, 0x7d, 0xa9, 0x48, 0x92, 0xfa, - 0x36, 0x66, 0xe5, 0x62, 0xa6, 0xa8, 0x4f, 0xca, 0x14, 0x54, 0xcf, 0x31, 0x8f, 0xa8, 0x20, 0x2c, - 0xdf, 0x69, 0x62, 0xf6, 0x6d, 0xfc, 0x4f, 0x0d, 0xae, 0x29, 0x93, 0xd9, 0x77, 0x1d, 0xcb, 0xec, - 0x92, 0x28, 0x3b, 0x09, 0xda, 0x98, 0x49, 0x28, 0x8d, 0x98, 0x84, 0xf2, 0x88, 0x49, 0xa8, 0x64, - 0x27, 0xa1, 0x0d, 0x53, 0x41, 0xdc, 0x8b, 0xb0, 0x55, 0x65, 0x73, 0xf1, 0xa5, 0x42, 0xc5, 0x51, - 0x96, 0xc4, 0x6a, 0xad, 0x78, 0xa0, 0xb5, 0xa2, 0x81, 0xae, 0x91, 0xbe, 0xeb, 0x9f, 0xf5, 0x88, - 0x77, 0xa5, 0x03, 0xb5, 0xe3, 0x5e, 0x8c, 0x1b, 0x68, 0xd2, 0x5f, 0xac, 0xd6, 0xca, 0x1d, 0xe8, - 0x7f, 0xd1, 0x40, 0x4f, 0x74, 0x5e, 0x12, 0x9c, 0x3a, 0x16, 0xb9, 0xb2, 0x51, 0xbe, 0x01, 0x8d, - 0x90, 0x77, 0x41, 0x0e, 0xb1, 0x48, 0x2f, 0x16, 0x3d, 0xc5, 0x71, 0xf9, 0xdc, 0xc1, 0xfd, 0x03, - 0x55, 0x2d, 0xdf, 0xf1, 0xed, 0xab, 0x1b, 0xd9, 0x5f, 0x82, 0xaa, 0xe7, 0xdb, 0xf1, 0xb0, 0x8a, - 0xd8, 0x8f, 0xf6, 0x11, 0xf3, 0x92, 0x79, 0x03, 0x42, 0x87, 0xa0, 0x53, 0xde, 0x5c, 0x71, 0x1d, - 0x33, 0xdc, 0x36, 0xfb, 0x7d, 0xc7, 0x3b, 0x6a, 0xd5, 0x19, 0xc6, 0x37, 0xc6, 0xd9, 0x33, 0x14, - 0x35, 0x63, 0x6f, 0xb5, 0xf2, 0xba, 0x17, 0x05, 0x67, 0x78, 0x08, 0xe7, 0xd2, 0xf7, 0xe0, 0x7a, - 0x6e, 0x51, 0xa4, 0x43, 0xf9, 0x84, 0x9c, 0x89, 0x79, 0xa3, 0x9f, 0x74, 0x64, 0xa7, 0xa6, 0x3b, - 0x20, 0x42, 0x3d, 0x18, 0x29, 0x58, 0x78, 0xc9, 0x37, 0x4a, 0xf7, 0x35, 0xe3, 0x8f, 0x54, 0xba, - 0x6b, 0xf3, 0xf9, 0xbd, 0xb2, 0xd5, 0xb9, 0x0f, 0x75, 0x81, 0x44, 0x28, 0xbf, 0x45, 0x64, 0x27, - 0x3a, 0x8a, 0x65, 0xf1, 0x5c, 0xaa, 0xfb, 0x91, 0xa6, 0xa8, 0xc5, 0xdb, 0xa6, 0xe7, 0x1c, 0x92, - 0xf0, 0xea, 0x24, 0xc7, 0xb7, 0xa1, 0xd9, 0x13, 0x7d, 0x90, 0xd4, 0xf7, 0xc5, 0x82, 0xd1, 0xc9, - 0xbe, 0xe2, 0xa4, 0x86, 0xf1, 0x21, 0x2c, 0x0c, 0x8d, 0xa5, 0x8d, 0xd7, 0xd0, 0x1a, 0x34, 0x64, - 0x21, 0x61, 0xaf, 0xdf, 0x19, 0x47, 0x81, 0x31, 0xfa, 0xb8, 0xa6, 0xf1, 0x81, 0x22, 0x65, 0x13, - 0xec, 0x4f, 0x09, 0xf9, 0x27, 0x9a, 0xb2, 0xf3, 0xd3, 0x19, 0x0e, 0xfb, 0xe6, 0x15, 0x0a, 0xb7, - 0xb7, 0x01, 0x3c, 0xd9, 0x09, 0xb9, 0x12, 0x45, 0xfa, 0x70, 0xdc, 0x5b, 0xac, 0xd4, 0x29, 0x22, - 0xb6, 0x44, 0x57, 0xd9, 0xf4, 0x0f, 0xae, 0x6c, 0x78, 0xcb, 0x50, 0xf9, 0x25, 0xff, 0x40, 0x0e, - 0xac, 0x48, 0x1f, 0xd9, 0xf4, 0x0f, 0x30, 0x2b, 0x37, 0x7e, 0x33, 0x6a, 0x07, 0xbe, 0x77, 0x95, - 0x03, 0x7a, 0x03, 0x1a, 0x16, 0xef, 0xc2, 0xb8, 0xcd, 0x48, 0xf4, 0x14, 0xc7, 0xe5, 0x73, 0x07, - 0x97, 0x22, 0xc7, 0x35, 0x93, 0xf4, 0x7c, 0xef, 0x2a, 0x55, 0xa7, 0xb7, 0x01, 0x6c, 0xd9, 0x89, - 0x71, 0xe4, 0x18, 0xf7, 0x16, 0x2b, 0x75, 0x72, 0x07, 0xf9, 0xa7, 0x9a, 0x22, 0x2f, 0xa8, 0xaa, - 0x4d, 0x0e, 0x07, 0xee, 0x55, 0x0e, 0xf3, 0x01, 0x4c, 0x87, 0x49, 0x37, 0xe4, 0x40, 0x8b, 0x1c, - 0x0f, 0x4a, 0x8f, 0x71, 0xaa, 0x5e, 0xee, 0x60, 0x7f, 0xa2, 0xc1, 0x8d, 0xc4, 0x4e, 0x20, 0x41, - 0xe8, 0x84, 0x11, 0xf1, 0xa2, 0x47, 0xbe, 0x3b, 0xe8, 0x5d, 0x9d, 0x9c, 0xd9, 0x87, 0xf9, 0x7e, - 0xa6, 0x2f, 0x72, 0xd8, 0x85, 0xee, 0xa1, 0x4c, 0x79, 0x3c, 0x8c, 0x21, 0x77, 0x02, 0xfe, 0x6e, - 0x09, 0x6e, 0x15, 0x4e, 0x40, 0xdb, 0x35, 0x9d, 0xde, 0x95, 0xcd, 0x82, 0x0d, 0x8b, 0xfd, 0xbc, - 0x0e, 0xc9, 0xa9, 0x78, 0x71, 0xc2, 0xa9, 0x60, 0x95, 0x70, 0x01, 0xae, 0xdc, 0x49, 0xf9, 0xf7, - 0x9a, 0xa2, 0x74, 0x62, 0xdf, 0xbd, 0x52, 0xa5, 0x33, 0xf0, 0xdd, 0xb1, 0x4a, 0x27, 0xed, 0x23, - 0xe6, 0x25, 0xc7, 0xf3, 0x34, 0x2d, 0xbc, 0xea, 0x78, 0xb6, 0xe3, 0x1d, 0x5d, 0x25, 0x4f, 0x07, - 0x49, 0x37, 0xc6, 0xf1, 0xb4, 0xd2, 0x63, 0x9c, 0xaa, 0x37, 0x7e, 0xb0, 0x52, 0xdd, 0xbb, 0xca, - 0x45, 0x7c, 0x00, 0xd3, 0x56, 0xd2, 0x8d, 0x71, 0x83, 0x55, 0x7a, 0x8c, 0x53, 0xf5, 0x72, 0x07, - 0xfb, 0x37, 0x4a, 0xf0, 0x5c, 0xde, 0x60, 0xaf, 0x7a, 0x81, 0x3f, 0x80, 0x6b, 0xd6, 0x50, 0x6f, - 0xe4, 0xd0, 0x7f, 0x6e, 0xfc, 0xd0, 0xe5, 0x72, 0xe7, 0x61, 0xc9, 0x9d, 0x88, 0x3f, 0xd3, 0xe0, - 0xd9, 0xac, 0x15, 0xbc, 0x62, 0x59, 0xfe, 0xe0, 0x0a, 0x4d, 0xfe, 0x5d, 0x98, 0x0b, 0x53, 0x3d, - 0x91, 0x13, 0xf0, 0x95, 0xd1, 0x36, 0xb1, 0x28, 0x8d, 0xb3, 0xb5, 0x73, 0x07, 0xfe, 0x5f, 0x55, - 0x8d, 0x6b, 0xc3, 0x3b, 0x0a, 0x48, 0x18, 0x5e, 0xd9, 0x88, 0xbf, 0x05, 0x4d, 0x87, 0x77, 0x61, - 0xac, 0xfd, 0x2f, 0xba, 0x8a, 0x93, 0x0a, 0xe3, 0x37, 0xa8, 0x47, 0x24, 0x88, 0x1c, 0xcb, 0x74, - 0x3b, 0xbe, 0xbd, 0x32, 0x88, 0xfc, 0xd0, 0x32, 0xdd, 0x2b, 0xb4, 0x39, 0x6d, 0x58, 0x3c, 0xcd, - 0xeb, 0xd0, 0xb8, 0x0d, 0x2a, 0x77, 0x14, 0xb8, 0x00, 0x57, 0xee, 0xa4, 0x74, 0x61, 0x2e, 0x73, - 0xca, 0x89, 0x9e, 0x87, 0x19, 0xd3, 0x8a, 0x9c, 0x53, 0xd2, 0x76, 0x1d, 0xe6, 0x60, 0xd2, 0x58, - 0x77, 0xd3, 0x40, 0xb4, 0x04, 0x0d, 0xc7, 0x8b, 0x48, 0x70, 0x6a, 0xba, 0xe2, 0xc8, 0x2a, 0x4e, - 0x1b, 0xbf, 0x56, 0x87, 0xba, 0x38, 0xb6, 0x51, 0x9d, 0x04, 0x33, 0xdc, 0x49, 0xa0, 0x43, 0xb9, - 0xef, 0xc8, 0x73, 0x2e, 0xfa, 0x19, 0xbb, 0x23, 0xcb, 0x93, 0xba, 0x23, 0xa9, 0x8d, 0xee, 0xf7, - 0x7a, 0xa6, 0x67, 0x8b, 0x93, 0xcf, 0x42, 0x6d, 0x9c, 0x97, 0xc2, 0xb2, 0x38, 0x7a, 0x0d, 0x2a, - 0x83, 0x30, 0x36, 0xed, 0xc7, 0x9c, 0x39, 0xed, 0x87, 0x24, 0xc0, 0xac, 0x3c, 0x7a, 0x1d, 0x6a, - 0x3d, 0xee, 0xfd, 0xae, 0x8f, 0x3c, 0xf9, 0xe0, 0xfe, 0x70, 0xe6, 0x56, 0x17, 0x15, 0xd0, 0xcb, - 0x50, 0xb6, 0xfa, 0x03, 0x71, 0x00, 0x51, 0xd8, 0xd1, 0xce, 0x3e, 0xab, 0x44, 0x8b, 0xa2, 0x5b, - 0x00, 0x56, 0x40, 0xcc, 0x88, 0xec, 0x39, 0x3d, 0x22, 0x8e, 0x97, 0x14, 0x08, 0x7a, 0x0b, 0x9a, - 0xb1, 0x6b, 0xbb, 0x05, 0x0c, 0xef, 0xf8, 0xc3, 0x94, 0xa4, 0x0a, 0x25, 0x73, 0xbf, 0x4f, 0xbc, - 0x07, 0x76, 0x9b, 0x0a, 0x03, 0x76, 0x18, 0x51, 0xc5, 0x2a, 0x08, 0xbd, 0xce, 0xcf, 0x11, 0xe4, - 0x59, 0xea, 0x97, 0xc7, 0x9f, 0xcd, 0x11, 0x7e, 0x8c, 0x40, 0xd0, 0xab, 0x50, 0x73, 0x7c, 0x0a, - 0x69, 0xcd, 0xb0, 0x9e, 0x7d, 0xa1, 0x88, 0x6b, 0x77, 0xf9, 0x2c, 0xf1, 0xc2, 0x8c, 0xf5, 0x64, - 0x07, 0x37, 0x6c, 0x76, 0xe8, 0x4a, 0x59, 0x2f, 0x01, 0x21, 0x03, 0xa6, 0xe3, 0xe4, 0x43, 0x72, - 0xd6, 0x9a, 0x63, 0x24, 0x95, 0x82, 0xa1, 0x7b, 0xb0, 0x70, 0xea, 0xbb, 0x03, 0x2f, 0x32, 0x83, - 0xb3, 0x76, 0xf4, 0xa4, 0xfb, 0xd8, 0x89, 0xac, 0x63, 0x12, 0xb6, 0xf4, 0xdb, 0xda, 0x9d, 0x0a, - 0xce, 0xcd, 0x43, 0xaf, 0xc1, 0xa2, 0xe3, 0xe5, 0xd6, 0x9a, 0x67, 0xb5, 0x0a, 0x72, 0x29, 0xb3, - 0x1f, 0x9c, 0x45, 0x84, 0x76, 0x05, 0xdd, 0xd6, 0xee, 0x4c, 0x63, 0x99, 0x44, 0x77, 0x41, 0x8f, - 0x7b, 0xb5, 0x2a, 0x8a, 0x5c, 0x63, 0x45, 0x86, 0xe0, 0x68, 0x01, 0xaa, 0x5e, 0xd8, 0x71, 0xec, - 0xd6, 0x02, 0x3f, 0xb3, 0x64, 0x09, 0xb4, 0x0a, 0x0d, 0x71, 0x36, 0x14, 0xb6, 0xae, 0x8f, 0x8c, - 0x51, 0x10, 0x4b, 0xb0, 0x23, 0x4a, 0xe3, 0xb8, 0x1e, 0x3f, 0x52, 0x32, 0x7e, 0xb3, 0x04, 0x7a, - 0xf6, 0xc4, 0x57, 0xb2, 0xa0, 0x96, 0xb0, 0x60, 0xdc, 0x8d, 0x92, 0xda, 0x8d, 0x9f, 0x01, 0xc6, - 0x4c, 0xf3, 0x4a, 0x6d, 0x88, 0x57, 0x94, 0x55, 0xaa, 0xa7, 0x56, 0xc9, 0xf8, 0x2d, 0x0d, 0xea, - 0xa2, 0x1b, 0x54, 0x34, 0x9a, 0xc1, 0x11, 0x15, 0x75, 0x4c, 0x34, 0xd2, 0x6f, 0x3a, 0x49, 0xd6, - 0x63, 0x79, 0x48, 0x43, 0x3f, 0x69, 0xa9, 0xc0, 0xf7, 0x79, 0xb4, 0x45, 0x13, 0xb3, 0x6f, 0xb4, - 0x08, 0x35, 0xdf, 0x5b, 0x73, 0xc2, 0x13, 0xd6, 0xf3, 0x06, 0x16, 0x29, 0x5a, 0xb6, 0x4f, 0xe7, - 0x98, 0x1f, 0x7b, 0xb1, 0x6f, 0x5a, 0xb6, 0xcf, 0x84, 0xbe, 0x38, 0xf0, 0x12, 0x29, 0xda, 0x12, - 0x79, 0xc2, 0xcf, 0xb7, 0x9a, 0x98, 0x7e, 0x1a, 0xbf, 0xa1, 0xc1, 0x94, 0x32, 0x56, 0x8a, 0xcd, - 0x4b, 0x76, 0x24, 0xf6, 0x4d, 0x6b, 0x0d, 0x12, 0x39, 0x3a, 0x70, 0x6c, 0x0a, 0x39, 0x72, 0xe4, - 0xd6, 0x43, 0x3f, 0x69, 0x3d, 0x42, 0x0b, 0x89, 0xf8, 0x14, 0xfa, 0xcd, 0x60, 0xb4, 0x58, 0x55, - 0xc0, 0x44, 0xb9, 0x70, 0x90, 0xf4, 0x36, 0x14, 0xe5, 0x42, 0x5a, 0xae, 0x2e, 0x60, 0x47, 0x8e, - 0x6d, 0xbc, 0x07, 0x73, 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, 0xc5, 0xb6, 0x03, 0x34, 0x0b, 0x25, - 0xa7, 0x2f, 0xc6, 0x5b, 0x72, 0xfa, 0x6c, 0x3e, 0xfd, 0x20, 0x12, 0xc3, 0x65, 0xdf, 0x68, 0x05, - 0x1a, 0x2c, 0xac, 0xc8, 0xf2, 0x5d, 0x36, 0xe8, 0xd9, 0x42, 0x75, 0xa8, 0x1d, 0xf7, 0x85, 0x9d, - 0x0c, 0xc6, 0xd5, 0x8c, 0x3f, 0xac, 0x43, 0x33, 0x39, 0xf9, 0x96, 0xe1, 0x3c, 0x62, 0x9a, 0xe9, - 0x37, 0xeb, 0x88, 0xdc, 0xea, 0x4b, 0x7c, 0x5a, 0xd8, 0x52, 0x94, 0x95, 0xa5, 0x58, 0x80, 0xaa, - 0xd3, 0x33, 0x8f, 0x88, 0xa0, 0x0c, 0x9e, 0xa0, 0x5b, 0xa4, 0xd5, 0x1f, 0x6c, 0x39, 0x3d, 0x87, - 0xc7, 0x51, 0x94, 0x70, 0x9c, 0xa6, 0xe2, 0x8e, 0x6f, 0x0f, 0x3c, 0xbb, 0xc6, 0x24, 0x8d, 0x0a, - 0x42, 0x6f, 0x4a, 0x11, 0xdc, 0x18, 0x37, 0xb2, 0xe4, 0x28, 0x37, 0x16, 0xc2, 0x6f, 0xb1, 0xf8, - 0x29, 0x37, 0x3a, 0x16, 0x27, 0xd7, 0x2f, 0x8c, 0x3d, 0x34, 0x65, 0xa5, 0xb1, 0xa8, 0x45, 0xb9, - 0x86, 0xf3, 0x90, 0xcd, 0xf6, 0x97, 0x32, 0x96, 0x49, 0xc6, 0x03, 0x07, 0xfd, 0x90, 0x6d, 0x1a, - 0x25, 0xcc, 0xbe, 0x29, 0xec, 0x31, 0x85, 0x4d, 0x73, 0x18, 0xfd, 0x96, 0xfb, 0xfe, 0x4c, 0xb2, - 0xef, 0xf3, 0x03, 0x70, 0x6c, 0x9d, 0xda, 0x9d, 0x90, 0xc9, 0xf7, 0x12, 0x4e, 0x00, 0x22, 0xb7, - 0x4b, 0xbc, 0xa8, 0x13, 0x32, 0xd1, 0xce, 0x73, 0x39, 0x80, 0x72, 0xb9, 0x28, 0xba, 0xda, 0xe7, - 0xd2, 0xbc, 0x84, 0x15, 0x88, 0xc8, 0xa7, 0x85, 0x69, 0xfe, 0x7c, 0x9c, 0x2f, 0x20, 0x74, 0x3c, - 0x54, 0x5a, 0x74, 0xac, 0x88, 0xc9, 0xea, 0x12, 0x96, 0x49, 0xda, 0x6e, 0xc8, 0xa2, 0x15, 0x68, - 0xde, 0x35, 0xde, 0x6e, 0x0c, 0xa0, 0x4b, 0xc8, 0x8e, 0xb9, 0x69, 0xe6, 0x02, 0x5f, 0x42, 0x99, - 0xa6, 0xdc, 0xdc, 0x23, 0x3d, 0x1c, 0x72, 0x09, 0x5d, 0xc1, 0x22, 0x45, 0xeb, 0xf4, 0x48, 0xaf, - 0x6d, 0x5a, 0xc7, 0xa4, 0xb5, 0xc8, 0x72, 0xe2, 0x74, 0x2c, 0x50, 0x9f, 0x9d, 0x54, 0xa0, 0xb6, - 0xa0, 0x1e, 0x46, 0x66, 0x40, 0x17, 0xa2, 0xc5, 0x17, 0x42, 0x24, 0x55, 0xc1, 0x76, 0x23, 0xbd, - 0xfd, 0x48, 0x3d, 0x6f, 0x49, 0x39, 0x2c, 0x5a, 0x85, 0xa6, 0x69, 0xdb, 0x42, 0x9d, 0x7e, 0x6e, - 0xb2, 0xe0, 0x00, 0xca, 0x87, 0x38, 0xa9, 0xc6, 0xc2, 0x00, 0x8e, 0x03, 0x62, 0x0a, 0xb5, 0xe1, - 0x26, 0xa7, 0x59, 0x05, 0x94, 0x94, 0xe0, 0x54, 0xfd, 0x05, 0xb5, 0x04, 0xa7, 0x6a, 0x3e, 0x39, - 0xfb, 0x2c, 0x2a, 0xef, 0x56, 0x3c, 0x39, 0x2c, 0xcd, 0x44, 0x79, 0x7f, 0xc0, 0xbe, 0x77, 0xc2, - 0xd6, 0x17, 0xf9, 0x22, 0x26, 0x10, 0xaa, 0x00, 0xf4, 0x48, 0x4f, 0x98, 0x30, 0xc4, 0x6e, 0xdd, - 0x66, 0xf5, 0x53, 0x30, 0x11, 0x41, 0xf1, 0x7f, 0x1a, 0xb1, 0xf8, 0x64, 0xca, 0xc5, 0xf0, 0x7e, - 0x97, 0xde, 0x36, 0x4a, 0x43, 0xdb, 0x46, 0xa2, 0xef, 0x95, 0x2f, 0xa8, 0xef, 0x55, 0x26, 0xd7, - 0xf7, 0xa8, 0x48, 0x71, 0x2c, 0x79, 0xae, 0xcf, 0xbe, 0xe9, 0xf2, 0xf2, 0x79, 0x0b, 0x85, 0x00, - 0x96, 0xc9, 0xac, 0xf6, 0xd6, 0x18, 0xd6, 0xde, 0x04, 0xef, 0x35, 0x13, 0xde, 0xcb, 0x68, 0x57, - 0x30, 0xac, 0x5d, 0x6d, 0x67, 0x22, 0x96, 0x64, 0x80, 0xd1, 0x84, 0x72, 0x27, 0x53, 0x19, 0xbd, - 0x03, 0xd3, 0x7d, 0x45, 0x39, 0x3c, 0x8f, 0x1e, 0x99, 0xaa, 0x88, 0x3a, 0x30, 0x67, 0xa5, 0x85, - 0x14, 0x93, 0x0e, 0x93, 0x8b, 0xb4, 0x6c, 0x75, 0x6a, 0xdf, 0xc4, 0x20, 0x7c, 0x10, 0x8b, 0x93, - 0x34, 0x30, 0x55, 0xea, 0xbd, 0x83, 0x58, 0xa8, 0xa4, 0x81, 0x43, 0x3a, 0x29, 0xca, 0xd1, 0x49, - 0x13, 0x85, 0xf8, 0xda, 0x79, 0x14, 0xe2, 0x65, 0x40, 0x31, 0x9a, 0x9d, 0x58, 0x6e, 0x72, 0x21, - 0x94, 0x93, 0x93, 0x2d, 0x2f, 0x24, 0xe9, 0xf5, 0xe1, 0xf2, 0x42, 0xa4, 0xbe, 0x0c, 0xd7, 0xb2, - 0x58, 0xa8, 0xec, 0x5c, 0x64, 0x15, 0xf2, 0xb2, 0xb2, 0x35, 0xa4, 0xb4, 0x7d, 0x76, 0xb8, 0x86, - 0x14, 0xbb, 0x45, 0xea, 0x78, 0xeb, 0x42, 0xea, 0xf8, 0x8d, 0x49, 0xd5, 0xf1, 0xa5, 0xf1, 0xea, - 0xf8, 0x73, 0x05, 0xea, 0xb8, 0xaa, 0x78, 0xdf, 0xbc, 0x98, 0xe2, 0x6d, 0xfc, 0x50, 0x83, 0x79, - 0x9a, 0xcb, 0x82, 0xf7, 0xde, 0x73, 0xa2, 0xe3, 0x0e, 0x09, 0x7a, 0x31, 0xdb, 0xae, 0x71, 0xb6, - 0xd5, 0x14, 0xb6, 0xe5, 0x20, 0xba, 0x15, 0x25, 0xd2, 0x95, 0x8b, 0xa4, 0x04, 0x40, 0x25, 0xd6, - 0xe3, 0xc0, 0x89, 0x08, 0xcf, 0x2e, 0x73, 0x89, 0x95, 0x40, 0x64, 0x6d, 0x3a, 0x90, 0x50, 0x84, - 0x68, 0x25, 0x80, 0xb8, 0x36, 0xcf, 0xae, 0x2a, 0xb5, 0x19, 0xc4, 0xf8, 0x63, 0x0d, 0x16, 0x87, - 0xfa, 0xbc, 0x7a, 0xd6, 0xd9, 0x58, 0x43, 0xbf, 0x08, 0xc0, 0x02, 0xc4, 0x58, 0x8a, 0x69, 0xc8, - 0x53, 0xf7, 0xbe, 0x3d, 0x62, 0x52, 0x86, 0x51, 0xb0, 0xa3, 0x14, 0x5e, 0x9f, 0x07, 0x19, 0x28, - 0x08, 0x97, 0x8e, 0x60, 0x2e, 0x93, 0xad, 0xfa, 0x0c, 0xaa, 0x5c, 0x7e, 0xbd, 0x95, 0x0e, 0x2c, - 0xb8, 0x33, 0x69, 0xf3, 0x6a, 0x94, 0xc1, 0x9f, 0x56, 0x15, 0x1d, 0x93, 0xb1, 0x18, 0x57, 0xed, - 0xb4, 0x58, 0xb5, 0x53, 0xb4, 0x84, 0xd2, 0x08, 0x2d, 0xa1, 0x3c, 0x4a, 0x4b, 0xa8, 0x64, 0xb4, - 0x84, 0x51, 0x4a, 0x60, 0xa2, 0x41, 0xd4, 0x0a, 0x35, 0x88, 0x7a, 0x46, 0x83, 0xe0, 0x79, 0x1c, - 0x5f, 0x23, 0xce, 0xe3, 0xf8, 0xa4, 0x6e, 0xd6, 0xcc, 0xd1, 0xcd, 0x40, 0xd1, 0xcd, 0x52, 0x9a, - 0xd8, 0xd4, 0x48, 0x4d, 0x6c, 0x7a, 0xb4, 0x26, 0x36, 0x33, 0x46, 0x13, 0x9b, 0x1d, 0xd2, 0xc4, - 0x62, 0xb5, 0x76, 0xee, 0x52, 0x6a, 0xad, 0x7e, 0x21, 0xb5, 0x56, 0x10, 0xd6, 0x7c, 0xb2, 0x31, - 0x2a, 0xfa, 0x15, 0x2a, 0xd4, 0xaf, 0xae, 0xa5, 0xe5, 0x49, 0x46, 0x0f, 0x5a, 0x18, 0xab, 0x07, - 0x5d, 0x1f, 0xad, 0x07, 0x2d, 0x8e, 0xd4, 0x83, 0x9e, 0x1d, 0xab, 0x07, 0xb5, 0x86, 0xf5, 0x20, - 0xe3, 0x9f, 0x6b, 0x00, 0x49, 0x14, 0x2e, 0xa5, 0x82, 0xc1, 0x20, 0xa6, 0x75, 0xf6, 0x8d, 0xbe, - 0x0e, 0x25, 0x3f, 0x14, 0x0c, 0x55, 0xb4, 0x27, 0xed, 0x76, 0x59, 0x10, 0x6f, 0xc9, 0xa7, 0xb2, - 0xbc, 0x62, 0xf1, 0xd8, 0xd0, 0xf2, 0x68, 0xbd, 0x86, 0x87, 0xfd, 0x5a, 0x39, 0x81, 0xa3, 0xd5, - 0xa1, 0xc0, 0xd1, 0xcd, 0x4a, 0xa3, 0xa2, 0x57, 0x8d, 0xef, 0x6b, 0x50, 0xe3, 0x4d, 0xe5, 0x5a, - 0xba, 0x4b, 0xd0, 0xe8, 0xbb, 0x66, 0x74, 0xe8, 0x07, 0x3d, 0x19, 0x9f, 0x29, 0xd3, 0x94, 0x87, - 0x0e, 0xcd, 0x9e, 0xe3, 0x9e, 0x09, 0x83, 0x4c, 0xa4, 0xe8, 0xf2, 0x9d, 0x92, 0x20, 0x74, 0x7c, - 0x4f, 0x18, 0x65, 0x32, 0x49, 0x77, 0xf6, 0x13, 0x12, 0x78, 0xc4, 0x7d, 0x24, 0xf2, 0xab, 0x2c, - 0x3f, 0x0d, 0x64, 0x5d, 0xe2, 0x3b, 0x32, 0x6d, 0x9e, 0x2e, 0x9c, 0x62, 0xdb, 0xc6, 0x69, 0xca, - 0x2c, 0x4c, 0x8a, 0xaa, 0x56, 0x6d, 0x0c, 0xa0, 0x4d, 0xc5, 0x22, 0x98, 0x95, 0xe0, 0xa2, 0x23, - 0x0d, 0xa4, 0x16, 0x74, 0x22, 0x89, 0x59, 0x31, 0x2e, 0x44, 0x32, 0x50, 0xe3, 0x5f, 0x68, 0x00, - 0x89, 0xbe, 0x49, 0x89, 0x39, 0x08, 0xb9, 0x77, 0xb6, 0x82, 0xe9, 0x27, 0x85, 0x9c, 0xf6, 0xf8, - 0x92, 0x56, 0x30, 0xfd, 0x64, 0x36, 0xfc, 0x63, 0xb3, 0xcf, 0xda, 0xad, 0x60, 0xf6, 0x4d, 0x67, - 0x2c, 0x3c, 0x36, 0x03, 0xc2, 0xbd, 0x02, 0x15, 0x2c, 0x52, 0xcc, 0x6c, 0x20, 0x4f, 0xb8, 0x94, - 0xaa, 0x60, 0xf6, 0x4d, 0x31, 0xba, 0xce, 0x81, 0x10, 0x4f, 0xf4, 0x93, 0x96, 0xa2, 0x2b, 0x2f, - 0xe4, 0x12, 0xfb, 0xa6, 0xe6, 0xaf, 0xed, 0x04, 0xd1, 0x99, 0x10, 0x48, 0x3c, 0x61, 0xfc, 0xc3, - 0x12, 0xd4, 0x85, 0x9a, 0x4b, 0x57, 0xc3, 0x35, 0xc3, 0xa8, 0xdd, 0x1f, 0x88, 0x85, 0x95, 0xc9, - 0x94, 0xec, 0x2c, 0x65, 0x64, 0xa7, 0x22, 0x8f, 0xcb, 0x23, 0xe4, 0x71, 0x25, 0x2b, 0x8f, 0xa9, - 0x0c, 0x1a, 0xf4, 0xf6, 0x84, 0xfa, 0xcc, 0xb5, 0x6a, 0x05, 0x82, 0xee, 0x0b, 0x52, 0xae, 0x8d, - 0xb4, 0x83, 0xba, 0x8e, 0x77, 0xe4, 0x12, 0xa9, 0xa8, 0x73, 0x82, 0x96, 0x9a, 0x7a, 0x5d, 0xd1, - 0xd4, 0x97, 0xa0, 0x41, 0xbb, 0xc5, 0x0c, 0x89, 0x06, 0xa3, 0xf0, 0x38, 0x4d, 0x7b, 0xc2, 0xbb, - 0xa5, 0x7a, 0x72, 0x13, 0x88, 0xf1, 0x1d, 0x98, 0x49, 0x35, 0x53, 0x44, 0xfe, 0x45, 0x53, 0x64, - 0xfc, 0x89, 0xc6, 0x26, 0x99, 0xb1, 0xce, 0x22, 0xd4, 0xbc, 0x41, 0xef, 0x40, 0x5c, 0x9a, 0xaa, - 0x62, 0x91, 0xa2, 0xf0, 0x53, 0xe2, 0xd9, 0x7e, 0x20, 0x98, 0x47, 0xa4, 0x0a, 0x59, 0x67, 0x01, - 0xaa, 0x3d, 0xdf, 0x26, 0xae, 0xf4, 0x66, 0xb0, 0x04, 0x1d, 0x4a, 0xff, 0xf8, 0x2c, 0x74, 0x2c, - 0xd3, 0x15, 0x61, 0xde, 0x4d, 0xac, 0x40, 0x28, 0x36, 0xcb, 0x0f, 0x88, 0x88, 0xf4, 0x6e, 0x62, - 0x91, 0xa2, 0xd8, 0xe8, 0x97, 0x34, 0x63, 0x78, 0x82, 0x12, 0x56, 0xef, 0xf8, 0x63, 0x31, 0x5f, - 0xf4, 0x93, 0x9d, 0xac, 0xd0, 0x1d, 0x8e, 0x9d, 0x90, 0x34, 0xf9, 0x09, 0x49, 0x0c, 0x30, 0x3e, - 0xd1, 0xa0, 0x42, 0xcd, 0x62, 0x65, 0xcf, 0x2e, 0xb3, 0x3d, 0x3b, 0xbe, 0xf3, 0x51, 0x52, 0xef, - 0x7c, 0xe4, 0x39, 0x69, 0x5a, 0x50, 0x37, 0x5d, 0x77, 0x2f, 0x39, 0x01, 0x91, 0x49, 0x35, 0xf2, - 0xbd, 0x3e, 0x32, 0xf2, 0xbd, 0x31, 0x1c, 0xf9, 0x4e, 0x17, 0xc7, 0x3c, 0xda, 0xf0, 0x6c, 0xf2, - 0x44, 0xf4, 0x3a, 0x4e, 0x53, 0x41, 0x4d, 0x8d, 0xef, 0x6d, 0xdf, 0x76, 0x0e, 0x9d, 0xd8, 0x95, - 0x92, 0x82, 0x71, 0x01, 0xb8, 0x59, 0x69, 0x54, 0xf5, 0x9a, 0xf1, 0xeb, 0x35, 0xa8, 0xcb, 0xf0, - 0x47, 0xba, 0x0b, 0xfb, 0x36, 0x51, 0x95, 0xc5, 0x04, 0x80, 0x7e, 0x11, 0xe6, 0x4e, 0x06, 0x07, - 0xc4, 0x25, 0x91, 0x90, 0x57, 0x32, 0xe2, 0xff, 0x1b, 0xa3, 0x0f, 0x44, 0x97, 0x1f, 0xa6, 0x6b, - 0x71, 0x75, 0x2c, 0x8b, 0x0b, 0x59, 0x30, 0x6f, 0xf6, 0x9d, 0x2e, 0x09, 0x4e, 0x49, 0x10, 0x37, - 0xc0, 0x05, 0xff, 0xab, 0x63, 0x1a, 0x58, 0xc9, 0xd6, 0xe3, 0x4d, 0x0c, 0xe3, 0xa3, 0x73, 0xdb, - 0xf7, 0xed, 0xb6, 0xd9, 0x37, 0x2d, 0x27, 0xe2, 0xb7, 0x0a, 0x66, 0xb0, 0x0a, 0xa2, 0x82, 0xb1, - 0xef, 0xdb, 0x2b, 0xae, 0xeb, 0x5b, 0x66, 0x64, 0x1e, 0xb8, 0xdc, 0x42, 0x9e, 0xc1, 0x19, 0x28, - 0x7a, 0x11, 0xe6, 0xb9, 0xed, 0xad, 0x16, 0xe5, 0x32, 0x6b, 0x38, 0x83, 0x62, 0xe5, 0xc0, 0xb8, - 0x69, 0x2e, 0xcb, 0x32, 0x50, 0xe6, 0xd8, 0xec, 0x0f, 0x54, 0x94, 0x5c, 0xbc, 0x65, 0xa0, 0xcc, - 0xb6, 0xee, 0x0f, 0x62, 0x64, 0x4d, 0xbe, 0xd9, 0x2b, 0x20, 0x74, 0x07, 0xe6, 0x02, 0x12, 0xfa, - 0x83, 0xc0, 0x22, 0x72, 0xcf, 0xe1, 0x16, 0x78, 0x16, 0x4c, 0x47, 0xc2, 0x9c, 0x10, 0x8e, 0xef, - 0x51, 0xf9, 0x10, 0x46, 0x66, 0xaf, 0xcf, 0x34, 0xb4, 0x32, 0x1e, 0xce, 0x88, 0x1d, 0x3d, 0xd3, - 0x8a, 0xa3, 0xe7, 0x6d, 0xa8, 0xf7, 0x48, 0x14, 0x38, 0x56, 0x28, 0xce, 0x5f, 0x5e, 0x28, 0xbe, - 0x3a, 0xc9, 0x9a, 0xde, 0xe6, 0xa5, 0xb1, 0xac, 0xb6, 0xb4, 0x0a, 0x0b, 0x79, 0x54, 0x92, 0x13, - 0xee, 0xbb, 0xa0, 0x6a, 0xe5, 0x55, 0x45, 0xd7, 0x5e, 0x5a, 0x83, 0xc5, 0x7c, 0x42, 0x38, 0x0f, - 0x16, 0xe3, 0xa7, 0x25, 0x68, 0x6c, 0x93, 0xc8, 0x64, 0x9b, 0x4c, 0x9e, 0x64, 0xa4, 0x4c, 0x22, - 0x43, 0x22, 0xe5, 0x69, 0x6c, 0x0c, 0x90, 0x0e, 0x72, 0xe1, 0xc0, 0xa7, 0x2a, 0x4f, 0xee, 0xf4, - 0x56, 0x8a, 0xa6, 0xf7, 0x45, 0x98, 0xb7, 0xe9, 0x34, 0xa4, 0x4a, 0x73, 0x1d, 0x66, 0x38, 0x83, - 0xca, 0x3f, 0xd7, 0x3c, 0x20, 0xae, 0x94, 0x2e, 0x22, 0x45, 0xc9, 0xc3, 0xf4, 0x3c, 0x3f, 0x62, - 0xc8, 0x43, 0x16, 0xa1, 0xdd, 0xc4, 0x2a, 0x08, 0xed, 0xc2, 0x9c, 0xff, 0x98, 0xdd, 0xf0, 0x39, - 0x24, 0x01, 0xf1, 0x2c, 0xc2, 0xef, 0x59, 0x14, 0x1f, 0xee, 0xef, 0xa6, 0x4a, 0xe3, 0x6c, 0xed, - 0x3c, 0x7a, 0x6b, 0xe6, 0xd3, 0xdb, 0x2d, 0x80, 0x43, 0xc7, 0x33, 0x5d, 0xe7, 0x63, 0x79, 0x3f, - 0xb3, 0x89, 0x15, 0x88, 0xb1, 0x09, 0xb3, 0xe9, 0xc6, 0xc6, 0x9d, 0x44, 0x88, 0x89, 0x46, 0x50, - 0x39, 0x71, 0x3c, 0x39, 0xf7, 0xec, 0xdb, 0xf8, 0x8f, 0x1a, 0xcc, 0xed, 0x1e, 0xfc, 0x12, 0xb1, - 0xa2, 0x14, 0x36, 0x56, 0x4e, 0x4b, 0xca, 0x8d, 0x59, 0xd4, 0x3c, 0xc9, 0x2e, 0xda, 0xaf, 0x24, - 0xed, 0xdf, 0x02, 0x30, 0xfb, 0x4e, 0x5a, 0xc1, 0x53, 0x20, 0x79, 0x33, 0x54, 0xcb, 0x9f, 0xa1, - 0x9b, 0xd0, 0x3c, 0x74, 0x88, 0x6b, 0x77, 0xcc, 0xe8, 0x98, 0x09, 0x8a, 0x26, 0x4e, 0x00, 0xc6, - 0xaf, 0x6b, 0x30, 0x25, 0x42, 0x2d, 0x3a, 0x7e, 0x50, 0xb8, 0x7d, 0xc7, 0xa7, 0x14, 0x52, 0x7b, - 0x15, 0xe9, 0xf8, 0x54, 0xa3, 0xac, 0x9c, 0x6a, 0xdc, 0x02, 0x88, 0xcc, 0xe0, 0x88, 0x44, 0x14, - 0xa3, 0x18, 0x94, 0x02, 0xa1, 0xf8, 0xe8, 0x46, 0xc0, 0x72, 0xb9, 0x6e, 0x13, 0xa7, 0x8d, 0x47, - 0x70, 0x53, 0x74, 0xa7, 0x4b, 0x42, 0xda, 0xff, 0x95, 0xc3, 0x43, 0xc7, 0x73, 0xa2, 0xb3, 0xb6, - 0xef, 0x1d, 0x3a, 0x47, 0xe8, 0x35, 0x58, 0xb4, 0xd8, 0x01, 0xfe, 0x46, 0x87, 0x52, 0xae, 0x3f, - 0x88, 0xba, 0xc4, 0xf2, 0x3d, 0x5b, 0x1e, 0xf2, 0x17, 0xe4, 0x1a, 0xff, 0xbd, 0x0c, 0x15, 0x76, - 0x67, 0xe2, 0x4d, 0x6a, 0xb7, 0x70, 0x8e, 0x14, 0xd1, 0xd8, 0x85, 0x01, 0xe4, 0xa2, 0x18, 0x8e, - 0x2b, 0xd0, 0x7d, 0x96, 0x8a, 0xf7, 0x8d, 0x35, 0x2c, 0x6f, 0x64, 0x8b, 0x24, 0x9b, 0x23, 0xfe, - 0xc9, 0xf7, 0x19, 0x3a, 0x47, 0x22, 0x4d, 0x95, 0xe8, 0x81, 0x17, 0x5a, 0xc7, 0xc4, 0x1e, 0xb8, - 0x4c, 0x0c, 0x57, 0xd8, 0x41, 0x5b, 0x1a, 0x88, 0x5e, 0x81, 0x1a, 0x35, 0xf9, 0xe2, 0xc0, 0x98, - 0x9b, 0x05, 0xdd, 0xda, 0xa3, 0x85, 0xb0, 0x28, 0x8b, 0x5e, 0x8f, 0x6f, 0x82, 0xd7, 0x46, 0xba, - 0x79, 0xe9, 0xd8, 0xd3, 0x97, 0xc0, 0xe9, 0xd2, 0x9d, 0x99, 0x3d, 0x57, 0x9c, 0x2a, 0xb2, 0x6f, - 0x2a, 0xca, 0x78, 0x90, 0x1d, 0xbf, 0x27, 0x95, 0x89, 0xa3, 0x6b, 0x2a, 0x62, 0x9a, 0x6a, 0x53, - 0x81, 0x7f, 0xea, 0xd8, 0x24, 0xd8, 0x58, 0x13, 0xbb, 0x81, 0x02, 0x89, 0x0f, 0x0a, 0xa6, 0x26, - 0x3d, 0x28, 0x50, 0xe4, 0xfe, 0xf4, 0x85, 0xe4, 0xbe, 0xf1, 0xab, 0x75, 0x80, 0x64, 0x9c, 0xe8, - 0x21, 0x34, 0x2c, 0xb9, 0xa7, 0x71, 0xa7, 0xcf, 0x4b, 0x63, 0x27, 0x67, 0x59, 0x6e, 0x79, 0x7c, - 0xd3, 0x8f, 0x11, 0xa0, 0x3d, 0x98, 0x32, 0x95, 0x8d, 0x94, 0xeb, 0x2a, 0xf7, 0xc6, 0xe3, 0x53, - 0xf6, 0x59, 0x8e, 0x52, 0x45, 0x83, 0xde, 0x87, 0x19, 0x4a, 0xf9, 0x2b, 0xf1, 0xc1, 0x06, 0x57, - 0x51, 0x5e, 0x19, 0x8f, 0x77, 0x47, 0xad, 0xc6, 0x31, 0xa7, 0x51, 0x31, 0x2b, 0x89, 0x53, 0x06, - 0xe7, 0x40, 0xb9, 0xec, 0x2f, 0xc0, 0x6c, 0x5a, 0x5b, 0x12, 0xd2, 0x25, 0x03, 0x45, 0x6b, 0xec, - 0xc6, 0xab, 0xed, 0x70, 0xa9, 0x3f, 0xda, 0xd2, 0xd8, 0x61, 0x7a, 0x9d, 0x28, 0x8c, 0x95, 0x7a, - 0xe8, 0xdb, 0x50, 0x63, 0x67, 0x89, 0xa1, 0xb8, 0xd9, 0x33, 0xd6, 0x5d, 0xb2, 0x41, 0x4b, 0x63, - 0x51, 0x09, 0xdd, 0x05, 0x9d, 0x76, 0xab, 0x13, 0xf8, 0x4f, 0xce, 0x64, 0x77, 0xf9, 0x29, 0xf3, - 0x10, 0x9c, 0x8a, 0x44, 0xbf, 0x4f, 0x02, 0x33, 0x72, 0xbc, 0x23, 0xee, 0x39, 0x90, 0x9b, 0x46, - 0x06, 0x4c, 0xd5, 0x5a, 0x33, 0xb0, 0x8e, 0x9d, 0x88, 0x58, 0xd1, 0x20, 0x20, 0x82, 0x7a, 0x53, - 0xb0, 0x61, 0x23, 0x7b, 0x2a, 0xc7, 0xc8, 0xa6, 0x02, 0xc1, 0x0f, 0x59, 0x97, 0x19, 0xd1, 0x36, - 0xb1, 0x4c, 0xa2, 0xfb, 0xf0, 0x6c, 0xe2, 0x8f, 0x1f, 0x78, 0x91, 0xd3, 0x8b, 0x05, 0xf5, 0x0c, - 0x2b, 0x59, 0x94, 0xbd, 0xf4, 0x26, 0xcc, 0xa4, 0xa8, 0x70, 0x9c, 0xc6, 0x51, 0x56, 0xf5, 0x96, - 0xb7, 0x40, 0xcf, 0x92, 0xdc, 0xb9, 0xea, 0xbf, 0x0d, 0x68, 0x98, 0xb4, 0xc6, 0x61, 0x68, 0xaa, - 0x3a, 0xcf, 0x6f, 0x6b, 0x30, 0x93, 0xa2, 0x87, 0xdc, 0x43, 0xe9, 0x84, 0x3a, 0x4b, 0x29, 0xea, - 0x5c, 0x06, 0x44, 0x0d, 0xeb, 0xbd, 0xc0, 0xf4, 0x42, 0x47, 0xea, 0x27, 0xc2, 0x59, 0x9c, 0x93, - 0x43, 0xf1, 0x04, 0xc4, 0x0c, 0x63, 0x27, 0x89, 0x48, 0xa9, 0x6f, 0x67, 0x54, 0x53, 0x6f, 0x67, - 0x18, 0x6b, 0x30, 0x9b, 0x26, 0x36, 0x16, 0x3a, 0x42, 0xb7, 0x67, 0x11, 0x3c, 0xc1, 0x13, 0xcc, - 0x42, 0x77, 0x3e, 0x16, 0xfe, 0x66, 0xe1, 0xcc, 0x8e, 0x01, 0x06, 0x81, 0x2a, 0x13, 0xc4, 0x93, - 0x4e, 0x0d, 0xed, 0x28, 0x39, 0x3c, 0x24, 0xc2, 0x13, 0xd0, 0xc4, 0x22, 0x45, 0x9b, 0xa1, 0x8b, - 0xbf, 0x62, 0xdb, 0x44, 0xbe, 0x06, 0x90, 0x00, 0x8c, 0xdf, 0xaf, 0xc6, 0xdb, 0x73, 0xb7, 0x4f, - 0x2c, 0x74, 0x1f, 0xaa, 0x74, 0x8b, 0x0d, 0x85, 0x40, 0x33, 0x46, 0x07, 0x4f, 0xd2, 0x1d, 0x15, - 0xf3, 0x0a, 0x68, 0x1b, 0x9a, 0x21, 0xe1, 0x61, 0x72, 0xd2, 0xd4, 0x2a, 0x12, 0x87, 0x5b, 0x54, - 0xef, 0xeb, 0x92, 0xf8, 0x92, 0xf1, 0xc0, 0x09, 0x08, 0xbb, 0x7f, 0x99, 0x60, 0x50, 0xc3, 0x08, - 0x3b, 0xd9, 0x6b, 0xc0, 0x9d, 0xd4, 0xab, 0x22, 0x72, 0xc5, 0x6f, 0xc3, 0x14, 0x79, 0x12, 0x91, - 0xc0, 0x33, 0xdd, 0x8d, 0x0e, 0xdf, 0xe4, 0x9a, 0x58, 0x05, 0x51, 0x06, 0x0e, 0xd3, 0x9b, 0xbe, - 0xd4, 0x69, 0x32, 0x60, 0x2a, 0xc3, 0x5c, 0xdf, 0xb4, 0x57, 0x4d, 0xd7, 0xf4, 0x2c, 0xd6, 0x05, - 0xae, 0xd8, 0x64, 0xa0, 0xe8, 0x0d, 0x68, 0xa9, 0x90, 0x2e, 0xdb, 0x37, 0xb0, 0xe9, 0x1d, 0xc5, - 0x3b, 0x5c, 0x61, 0x3e, 0x15, 0x12, 0xb2, 0x73, 0x2c, 0x96, 0x92, 0xcb, 0x92, 0x14, 0x0c, 0xbd, - 0x02, 0xd7, 0x65, 0x7a, 0x2f, 0x30, 0x0f, 0x0f, 0x1d, 0xab, 0xe3, 0xbb, 0x8e, 0x75, 0x26, 0x24, - 0x4a, 0x7e, 0x26, 0x7a, 0x19, 0xae, 0x71, 0x77, 0x6e, 0xfb, 0x98, 0x58, 0x27, 0x3b, 0x52, 0x15, - 0xe2, 0x51, 0x6c, 0x79, 0x59, 0x74, 0x1c, 0xfd, 0xc1, 0x81, 0xeb, 0x84, 0xc7, 0x3b, 0x7e, 0x84, - 0x89, 0x69, 0x9f, 0x25, 0x5b, 0xc6, 0x34, 0x53, 0x26, 0x0a, 0xf3, 0x91, 0x03, 0xd7, 0xc3, 0x3c, - 0x55, 0x4a, 0x58, 0x57, 0xdf, 0x18, 0x4d, 0x42, 0xb9, 0x5a, 0x18, 0xce, 0xc7, 0xc8, 0x42, 0x2a, - 0xfb, 0x0f, 0xb8, 0x47, 0x86, 0xc7, 0xbf, 0xc5, 0x69, 0x63, 0x05, 0x66, 0x24, 0x4a, 0xce, 0xe9, - 0x2f, 0xc3, 0xb5, 0xd4, 0x6a, 0xf1, 0xd0, 0xd7, 0xd6, 0x3c, 0x5b, 0x96, 0xbc, 0x2c, 0xe3, 0x77, - 0x4b, 0x50, 0x97, 0x97, 0x7a, 0x2f, 0xa5, 0xc6, 0xbd, 0x06, 0x95, 0xb0, 0x4f, 0x2c, 0xe1, 0x3a, - 0x1e, 0xc3, 0x44, 0x94, 0xef, 0x30, 0x2b, 0x8f, 0xbe, 0x95, 0x79, 0x76, 0xe7, 0xf9, 0x31, 0x35, - 0xf3, 0xf5, 0xad, 0x8a, 0xa2, 0x6f, 0x49, 0xcd, 0xaa, 0x9a, 0x6f, 0x00, 0xd7, 0x2e, 0xa6, 0x08, - 0xfd, 0x81, 0x06, 0xd7, 0x92, 0x6b, 0xd3, 0x17, 0x13, 0xc4, 0xe7, 0x16, 0xac, 0x8c, 0x29, 0xcd, - 0x30, 0xda, 0xef, 0xdb, 0xe9, 0x60, 0xb6, 0x0c, 0xb4, 0x40, 0xc4, 0xd7, 0x8b, 0x44, 0xbc, 0xf1, - 0xdf, 0x6a, 0x00, 0xca, 0xa5, 0xf5, 0x4b, 0xad, 0x3c, 0x33, 0x9b, 0xd8, 0x65, 0xf9, 0x70, 0x8d, - 0x84, 0x4e, 0x40, 0xa4, 0xdb, 0x2d, 0x0b, 0xa6, 0xbd, 0x4c, 0x6e, 0x9b, 0x77, 0xa3, 0xc0, 0x8c, - 0xc8, 0x91, 0xf4, 0x33, 0xe6, 0xe4, 0x30, 0xa7, 0x8c, 0xf9, 0x64, 0xdf, 0x33, 0x4f, 0x4d, 0x27, - 0xd1, 0xf2, 0x9b, 0x38, 0x03, 0x65, 0xe7, 0x26, 0xe6, 0x93, 0xee, 0x20, 0x88, 0x27, 0x30, 0x4e, - 0xb3, 0xf0, 0x3a, 0x73, 0x10, 0x12, 0xee, 0x81, 0x6c, 0x60, 0x91, 0x4a, 0xcb, 0xee, 0xfa, 0xa5, - 0x65, 0x37, 0x3b, 0x0e, 0xe0, 0xa3, 0x15, 0xc1, 0x17, 0x71, 0x9a, 0x4e, 0xd0, 0x80, 0x2d, 0x95, - 0x8d, 0x65, 0x11, 0xee, 0x14, 0xcc, 0x82, 0xe5, 0xd1, 0xc0, 0x59, 0x5c, 0x0e, 0x78, 0x94, 0x75, - 0x0a, 0x88, 0x5e, 0x84, 0xf9, 0x78, 0xec, 0x71, 0x49, 0x2e, 0xe9, 0x86, 0x33, 0xa8, 0x4c, 0x18, - 0x78, 0xc3, 0xe5, 0xa7, 0xb9, 0x64, 0xcc, 0xc9, 0x12, 0x47, 0xe3, 0x9c, 0xbe, 0xb7, 0x05, 0x5d, - 0x72, 0xfd, 0x6a, 0x08, 0x1e, 0x33, 0xe0, 0x6c, 0x0e, 0x03, 0xce, 0x29, 0x0c, 0xf8, 0x11, 0x2c, - 0x48, 0x23, 0x5a, 0x99, 0xc1, 0xb0, 0xa5, 0xb3, 0x99, 0xff, 0xda, 0x18, 0x6e, 0x54, 0xab, 0xe0, - 0x5c, 0x44, 0x2a, 0x87, 0xcf, 0x5f, 0x88, 0xc3, 0xd1, 0x66, 0x4a, 0x39, 0x47, 0xac, 0x63, 0x77, - 0xc7, 0x3e, 0xa0, 0x90, 0xab, 0xa2, 0x1b, 0xff, 0x58, 0x83, 0x6b, 0xc9, 0x6b, 0x12, 0x9f, 0x57, - 0xb5, 0xed, 0xff, 0x56, 0x00, 0x94, 0x37, 0x3a, 0x3e, 0x23, 0x29, 0x90, 0xe2, 0xbc, 0xf2, 0x53, - 0xe5, 0xbc, 0x4a, 0x86, 0xf3, 0xee, 0xc1, 0xc2, 0xe1, 0xc0, 0x75, 0xcf, 0x18, 0x1e, 0x85, 0xfd, - 0xb8, 0x87, 0x24, 0x37, 0x6f, 0x98, 0x07, 0x6b, 0x13, 0xf3, 0x60, 0xbd, 0x88, 0x07, 0x25, 0x97, - 0x34, 0x72, 0xb8, 0xa4, 0x39, 0x01, 0x97, 0xc0, 0xa7, 0xc0, 0x25, 0x53, 0x4f, 0x83, 0x4b, 0xa6, - 0x47, 0x72, 0x49, 0x0e, 0x07, 0xa4, 0xb8, 0xe4, 0x7b, 0xd0, 0x2a, 0x5a, 0xe1, 0x1c, 0x1b, 0x60, - 0x09, 0x1a, 0xdc, 0xe8, 0x8c, 0xcf, 0xac, 0xe2, 0x34, 0x3b, 0xcd, 0xa2, 0x26, 0x81, 0x74, 0x14, - 0x89, 0x94, 0xf1, 0x1b, 0x75, 0x28, 0x77, 0x7c, 0xfb, 0x72, 0xa4, 0x3d, 0x0b, 0xa5, 0x8d, 0x8e, - 0x0c, 0xf6, 0xdd, 0xe8, 0xd0, 0xb5, 0xf7, 0xfc, 0x9e, 0xe3, 0x51, 0xd1, 0x4d, 0xd5, 0xc9, 0x9d, - 0xc4, 0xf5, 0x38, 0x9c, 0x21, 0x3d, 0x73, 0xac, 0x10, 0x67, 0xcc, 0x38, 0x4d, 0xcd, 0x9a, 0xfe, - 0xb1, 0x19, 0x4a, 0xc6, 0xe4, 0x09, 0xaa, 0x25, 0x07, 0x84, 0x45, 0x1c, 0xf0, 0x83, 0x1e, 0x4e, - 0x80, 0x29, 0x18, 0xda, 0x53, 0xde, 0x42, 0xe2, 0x3a, 0x51, 0xec, 0x0e, 0x78, 0x61, 0x92, 0xe8, - 0x89, 0x41, 0x88, 0x87, 0x11, 0xe4, 0x4a, 0xfe, 0x46, 0x81, 0xe4, 0x4f, 0xc4, 0x56, 0x33, 0x25, - 0xb6, 0x24, 0xad, 0x43, 0x0e, 0xad, 0x4f, 0x29, 0xb4, 0x2e, 0x9d, 0x59, 0xd3, 0x93, 0x3a, 0xb3, - 0x8a, 0x98, 0x63, 0xe6, 0x69, 0x31, 0xc7, 0x87, 0x70, 0x9d, 0x6a, 0xde, 0xed, 0xa1, 0x79, 0x9d, - 0x3d, 0xd7, 0xbc, 0xe6, 0x23, 0xa1, 0x74, 0xf0, 0xf3, 0xbb, 0xdd, 0xb6, 0x6b, 0x86, 0x3c, 0x94, - 0xb9, 0x89, 0xe3, 0x34, 0x95, 0x39, 0xfd, 0xc0, 0xf1, 0x03, 0xaa, 0xf6, 0xb3, 0x02, 0x3a, 0x77, - 0x8c, 0xa4, 0x80, 0x4f, 0x61, 0x8b, 0xa3, 0xf6, 0x37, 0xa5, 0x21, 0xb6, 0x93, 0x20, 0x61, 0x7f, - 0x4b, 0x00, 0xed, 0x85, 0x70, 0x9e, 0x12, 0x9b, 0x95, 0xb8, 0xc6, 0x4a, 0xa4, 0x81, 0xa8, 0x9d, - 0x12, 0x00, 0x0b, 0x6c, 0x6a, 0xbe, 0x5c, 0xfc, 0xb8, 0x54, 0x3e, 0xe7, 0xff, 0x9e, 0x06, 0xd3, - 0x6a, 0xe6, 0xb9, 0x36, 0xc6, 0xe7, 0x61, 0x86, 0x6e, 0x7f, 0x9d, 0xc0, 0x3f, 0x20, 0xca, 0x9e, - 0x98, 0x06, 0x16, 0x6c, 0x9f, 0x95, 0x09, 0xb6, 0xcf, 0x6a, 0xd1, 0xf6, 0x59, 0x4b, 0x6f, 0x9f, - 0x3f, 0xd4, 0x60, 0x2e, 0xb3, 0xce, 0xb9, 0xbe, 0xfe, 0x54, 0x9c, 0xed, 0x5a, 0xfc, 0x00, 0x58, - 0x02, 0x62, 0x2e, 0x62, 0xba, 0xbd, 0xb0, 0x91, 0x34, 0x30, 0x4f, 0x0c, 0xc9, 0x81, 0x4a, 0x8e, - 0x1c, 0x58, 0x90, 0x91, 0x53, 0x42, 0x82, 0xf0, 0x90, 0xa8, 0xe2, 0x3e, 0xff, 0x4b, 0x0d, 0x1a, - 0xf1, 0x8b, 0x33, 0xea, 0xa4, 0x8b, 0x87, 0x4a, 0xf3, 0x0e, 0x41, 0x4a, 0xf9, 0x87, 0x20, 0xc3, - 0x27, 0x69, 0x2d, 0xa8, 0xd3, 0x51, 0x11, 0xd1, 0xd7, 0x69, 0x2c, 0x93, 0x72, 0x0a, 0x88, 0xc7, - 0x1f, 0x6d, 0xab, 0x26, 0x53, 0x20, 0x40, 0x6a, 0x68, 0x4e, 0x2d, 0x15, 0x9a, 0x63, 0xfc, 0x23, - 0x0d, 0x50, 0xfc, 0xdc, 0xc9, 0xe7, 0x55, 0x95, 0xfa, 0xa9, 0x06, 0xcd, 0xe4, 0x05, 0x99, 0x4b, - 0x6d, 0x37, 0x45, 0x83, 0xc8, 0x13, 0xce, 0xe5, 0x31, 0x6a, 0xf9, 0x38, 0xbb, 0x78, 0x23, 0xc7, - 0x21, 0xfd, 0x73, 0xe3, 0x9e, 0x9c, 0xc9, 0x67, 0xe9, 0xbf, 0x53, 0x86, 0x85, 0x3c, 0x61, 0x8b, - 0x76, 0xa1, 0xe6, 0x3a, 0x3d, 0x27, 0x76, 0xb0, 0x7d, 0xf3, 0x1c, 0x92, 0x7a, 0x99, 0x05, 0xc6, - 0x09, 0x67, 0xbc, 0x40, 0x83, 0xf6, 0xa9, 0xc6, 0xf7, 0xcb, 0x03, 0xf6, 0x5e, 0x11, 0xf7, 0xba, - 0xbd, 0x7e, 0x1e, 0x94, 0x58, 0xd4, 0x15, 0xc7, 0x11, 0x12, 0x55, 0xee, 0x21, 0x62, 0x5b, 0x71, - 0xba, 0xcd, 0x16, 0xaa, 0xa9, 0x79, 0xcd, 0xb0, 0x2b, 0x45, 0xac, 0xf2, 0xd2, 0xeb, 0x30, 0xa5, - 0x0c, 0xe3, 0x5c, 0xae, 0xe3, 0x37, 0x61, 0x26, 0xd5, 0xdd, 0xf3, 0x54, 0xa6, 0xbc, 0x3e, 0x97, - 0xd9, 0x0a, 0xd0, 0x87, 0x30, 0xcd, 0x37, 0x83, 0x47, 0x5c, 0x5d, 0xe2, 0x4b, 0x72, 0x7f, 0xb2, - 0x8d, 0x64, 0x79, 0x5b, 0xa9, 0xca, 0xa7, 0x2f, 0x85, 0x6d, 0xe9, 0x3b, 0x30, 0x3f, 0x54, 0x64, - 0x5c, 0x97, 0xb5, 0xcc, 0xe1, 0x7e, 0x7d, 0xd3, 0x3f, 0x60, 0x7e, 0xd9, 0xdb, 0x30, 0xd5, 0x37, - 0x03, 0xd3, 0x75, 0x89, 0xeb, 0x84, 0x3d, 0x19, 0x1b, 0xad, 0x80, 0xb8, 0x54, 0xe9, 0xf5, 0xf9, - 0xa1, 0x7b, 0x28, 0xec, 0x0d, 0x15, 0x84, 0x5e, 0x81, 0xeb, 0xfc, 0x86, 0xf2, 0x1a, 0x31, 0x6d, - 0xd7, 0xf1, 0x88, 0x3c, 0xd9, 0xe4, 0xbc, 0x9f, 0x9f, 0x49, 0x05, 0xef, 0x81, 0x69, 0x9d, 0xf8, - 0x87, 0x87, 0x3c, 0x54, 0x53, 0x08, 0x5e, 0x15, 0x96, 0xb6, 0x62, 0xaa, 0x97, 0xb6, 0x62, 0x98, - 0xab, 0xc3, 0x1b, 0x98, 0x71, 0x39, 0xe1, 0xae, 0xc8, 0x40, 0x0b, 0x95, 0xa0, 0xfa, 0x53, 0x52, - 0x82, 0x8c, 0x3f, 0xd0, 0xa0, 0x49, 0x57, 0xa0, 0x58, 0xe6, 0x68, 0x05, 0x32, 0x27, 0xa5, 0x5c, - 0x94, 0xb2, 0xca, 0x05, 0xbb, 0x11, 0x28, 0x17, 0x46, 0x11, 0xbf, 0x19, 0x28, 0x95, 0x7e, 0x7c, - 0x51, 0xc4, 0xac, 0x8b, 0x14, 0xc3, 0x3e, 0xb0, 0x2c, 0x42, 0x6c, 0x22, 0x6f, 0x29, 0x26, 0x00, - 0x1e, 0xb5, 0xe6, 0xb8, 0x44, 0x5e, 0x56, 0x14, 0x29, 0xa6, 0x67, 0x6c, 0xfa, 0x07, 0x3f, 0xdb, - 0x7a, 0xc6, 0x6f, 0x97, 0xa0, 0xbc, 0xe9, 0x1f, 0x5c, 0x6e, 0x57, 0xb9, 0x97, 0xf2, 0xcf, 0xde, - 0x2a, 0x7e, 0x7d, 0x4b, 0xf1, 0xcd, 0xde, 0xcf, 0xf8, 0x66, 0x6f, 0x8f, 0xa8, 0x75, 0x31, 0xbf, - 0x6c, 0x3b, 0x67, 0xff, 0xf9, 0x72, 0x71, 0x2b, 0xf9, 0x3b, 0xcf, 0x5f, 0x2b, 0xc3, 0x94, 0x78, - 0x61, 0x8b, 0x09, 0x8e, 0x25, 0x68, 0x48, 0x95, 0x55, 0x3e, 0xc6, 0x2a, 0xd3, 0xe8, 0x3e, 0x3c, - 0xcb, 0x68, 0xd2, 0xf1, 0x8e, 0xb2, 0x22, 0x81, 0x93, 0x6c, 0x51, 0x36, 0x0b, 0x13, 0xf2, 0x3d, - 0x6b, 0x10, 0x04, 0xc4, 0xb3, 0xce, 0xc4, 0x99, 0x84, 0xb0, 0xfa, 0x86, 0x32, 0x58, 0x08, 0xf9, - 0x20, 0xec, 0x13, 0x71, 0xe7, 0xb9, 0x81, 0x65, 0x12, 0xbd, 0x05, 0x4b, 0x8c, 0x6e, 0xc3, 0xf0, - 0x70, 0xe0, 0x6e, 0xfa, 0x07, 0xe1, 0xbb, 0x4e, 0x18, 0xc5, 0x77, 0x3e, 0x39, 0x65, 0x8f, 0x28, - 0x81, 0x5e, 0x83, 0x45, 0x4e, 0xdc, 0x43, 0x75, 0x39, 0xe9, 0x17, 0xe4, 0x7e, 0xfa, 0x92, 0xe3, - 0x2f, 0xc3, 0x8c, 0x5c, 0x05, 0x4e, 0x04, 0x6f, 0xc5, 0xac, 0xac, 0x8d, 0x34, 0xa0, 0x32, 0xf1, - 0x3f, 0x31, 0xcb, 0xdf, 0x05, 0x9d, 0xf2, 0x4f, 0x57, 0xac, 0x9d, 0x22, 0x57, 0x86, 0xe0, 0xc6, - 0xff, 0xd0, 0xa0, 0x2e, 0xdf, 0x83, 0xfb, 0x0c, 0xce, 0x31, 0x14, 0x72, 0x3b, 0xe7, 0x39, 0x46, - 0x6a, 0x8a, 0xce, 0xcb, 0x2f, 0xc6, 0xff, 0x2e, 0xc1, 0x4c, 0xfc, 0xd6, 0x1a, 0x23, 0xf6, 0xd4, - 0x3e, 0xa4, 0x5d, 0x7a, 0x1f, 0xca, 0x77, 0xd1, 0x97, 0xce, 0xe1, 0xa2, 0x2f, 0xe7, 0xba, 0xe8, - 0xef, 0xc0, 0x5c, 0xcf, 0xf1, 0xd8, 0x31, 0x9a, 0xe4, 0x37, 0x2e, 0xdf, 0xb3, 0x60, 0x74, 0x8f, - 0xd2, 0xe9, 0xa9, 0x43, 0x55, 0xff, 0x1c, 0xce, 0xc8, 0xcd, 0x2b, 0xa4, 0xed, 0xda, 0xd3, 0xa2, - 0xed, 0x1f, 0x97, 0x60, 0x2e, 0x99, 0x77, 0xbe, 0x66, 0xaf, 0xc1, 0x22, 0x67, 0xfa, 0x68, 0x87, - 0x85, 0x54, 0x4b, 0x7a, 0xb4, 0xe3, 0xb0, 0xa9, 0xdc, 0x5c, 0x3a, 0xc5, 0x3c, 0x06, 0x7b, 0xdb, - 0x09, 0x63, 0xd3, 0x5a, 0x28, 0x2f, 0x39, 0x39, 0xb4, 0x1d, 0x9b, 0xbb, 0x4e, 0xb3, 0xed, 0xf0, - 0x00, 0xb1, 0x82, 0x5c, 0xaa, 0x1d, 0x71, 0x6c, 0x6c, 0x7a, 0xc5, 0x74, 0xab, 0x20, 0x8a, 0x59, - 0x9c, 0x40, 0x64, 0x31, 0x0b, 0x51, 0x92, 0x9f, 0x4b, 0x17, 0x93, 0xa3, 0x59, 0x89, 0x57, 0x9d, - 0xbb, 0x3e, 0xb3, 0x60, 0xe6, 0x2a, 0x63, 0x20, 0x95, 0x42, 0xf8, 0xf9, 0xc8, 0x70, 0x06, 0xb3, - 0xf4, 0xe2, 0x59, 0xfe, 0xbc, 0x5a, 0x7a, 0x7f, 0x5e, 0x82, 0x66, 0xf2, 0x38, 0xe3, 0xa5, 0x64, - 0xcd, 0xfd, 0x94, 0xac, 0x79, 0x7e, 0xdc, 0xdb, 0x8a, 0x8a, 0xb4, 0x99, 0xf4, 0xcf, 0x4a, 0x32, - 0x34, 0xfb, 0xd9, 0x9f, 0x9b, 0x66, 0x2c, 0xcc, 0xfa, 0x48, 0x0b, 0x73, 0x78, 0xed, 0x53, 0xfb, - 0xfc, 0x5f, 0x2f, 0xf3, 0x5b, 0x81, 0xe2, 0xc9, 0x45, 0x26, 0xfe, 0xee, 0xc0, 0x9c, 0x20, 0xff, - 0xd8, 0x0b, 0xcf, 0xb9, 0x2f, 0x0b, 0x7e, 0xda, 0xc1, 0x1a, 0xb7, 0x61, 0x4a, 0x3c, 0x9f, 0xa5, - 0xb8, 0x7f, 0x55, 0x10, 0x7a, 0x19, 0xae, 0xf5, 0x7d, 0x7b, 0xdb, 0xf4, 0xcc, 0x23, 0x56, 0x5b, - 0xa8, 0x0c, 0x9c, 0xce, 0xf2, 0xb2, 0xa8, 0x30, 0xe5, 0x1c, 0x17, 0x0b, 0x5e, 0x11, 0x46, 0x96, - 0x86, 0x52, 0x5d, 0xb8, 0x4f, 0x95, 0x94, 0x48, 0x7a, 0x4b, 0xaa, 0x38, 0x01, 0x7c, 0xfa, 0x1b, - 0xfd, 0x3f, 0xd5, 0x60, 0x5e, 0x5d, 0x87, 0xf8, 0xbd, 0xfc, 0x20, 0xbd, 0x04, 0xc9, 0x39, 0xcc, - 0xd0, 0x99, 0x4a, 0x29, 0xef, 0x4c, 0xe5, 0x0e, 0xcc, 0x09, 0x91, 0x19, 0x97, 0xe3, 0x12, 0x2e, - 0x0b, 0xce, 0x3b, 0x51, 0xad, 0xe4, 0x9e, 0xa8, 0x1a, 0xbf, 0xa3, 0xc1, 0x82, 0xd2, 0xd7, 0xcf, - 0xad, 0xfb, 0xa8, 0x04, 0x53, 0xea, 0x63, 0xa8, 0x97, 0x12, 0x2b, 0x6f, 0xa4, 0xc4, 0xca, 0x0b, - 0xe3, 0x5f, 0x32, 0x55, 0x04, 0xcb, 0xdb, 0x19, 0xc1, 0x72, 0x67, 0x82, 0xda, 0x57, 0x25, 0x5a, - 0x1e, 0xe6, 0x88, 0x96, 0xaf, 0x8d, 0xef, 0x6f, 0xbe, 0x70, 0xf9, 0xa9, 0x06, 0xfa, 0xd0, 0x0b, - 0xad, 0x97, 0x5a, 0x86, 0xef, 0xa4, 0x96, 0xe1, 0x6b, 0x13, 0x3e, 0x27, 0xaa, 0xac, 0xc5, 0x7a, - 0x66, 0x2d, 0xbe, 0x3e, 0x29, 0x8a, 0x8b, 0xe9, 0x96, 0x3f, 0xa8, 0xc2, 0x42, 0x5e, 0x6f, 0xd0, - 0xfe, 0x50, 0xd0, 0xef, 0xeb, 0xe7, 0x18, 0x4c, 0x61, 0xf8, 0xef, 0x3d, 0x58, 0xc8, 0x3e, 0x9a, - 0xca, 0x9c, 0xc3, 0x9c, 0xf7, 0x72, 0xf3, 0xd8, 0xbd, 0x09, 0x66, 0x19, 0x6d, 0xb3, 0xb7, 0xf2, - 0xcb, 0xe2, 0xde, 0x44, 0x02, 0x42, 0xab, 0xd0, 0xb0, 0xd8, 0x8b, 0xac, 0xe4, 0x50, 0xbc, 0xb6, - 0x31, 0xa9, 0xd9, 0x11, 0xd7, 0x43, 0x6b, 0xf0, 0x85, 0x6c, 0xeb, 0x98, 0xb0, 0x5c, 0x21, 0xc3, - 0x39, 0xf7, 0x8e, 0x2e, 0x44, 0xcd, 0x17, 0xaa, 0xa2, 0x9a, 0x47, 0x84, 0x1d, 0xdf, 0xb0, 0x6d, - 0x82, 0x5b, 0xf6, 0x43, 0x70, 0x76, 0x7b, 0xd7, 0x1f, 0x78, 0xd1, 0x6e, 0x5f, 0xbd, 0x10, 0x92, - 0x82, 0xa1, 0x5b, 0x00, 0xa7, 0xac, 0x19, 0x3a, 0x50, 0x71, 0x2c, 0xa7, 0x40, 0xd0, 0x43, 0x98, - 0x66, 0xd1, 0xca, 0x32, 0xce, 0xaf, 0x39, 0xf2, 0x45, 0x5f, 0x16, 0xf7, 0x2c, 0x76, 0xb3, 0x3d, - 0x12, 0xf4, 0x70, 0xaa, 0x32, 0x22, 0xc3, 0xaf, 0xe3, 0xf2, 0x48, 0x3e, 0xf1, 0xb4, 0xdc, 0xc4, - 0xb4, 0xc8, 0xb7, 0x8f, 0x02, 0x64, 0x97, 0x8a, 0xcb, 0x35, 0xfe, 0x6d, 0x19, 0x16, 0xf3, 0xdb, - 0x43, 0x07, 0x30, 0x7f, 0x64, 0x91, 0x24, 0x93, 0xbd, 0xc5, 0xc5, 0x39, 0xb8, 0x28, 0x10, 0xfc, - 0x9d, 0xf6, 0x7a, 0xba, 0x7c, 0x6a, 0x00, 0xc3, 0xe8, 0xd0, 0x09, 0x2c, 0x98, 0x8f, 0xc3, 0x75, - 0x2a, 0xff, 0x1d, 0x6b, 0xd5, 0xf5, 0xad, 0x93, 0x6e, 0xe4, 0x07, 0xf2, 0x35, 0x82, 0x22, 0x2f, - 0xf7, 0xca, 0x7b, 0xdd, 0xa1, 0x2a, 0xa9, 0x96, 0x72, 0x91, 0xa2, 0x3d, 0x68, 0x9a, 0x1f, 0x0f, - 0x02, 0xf2, 0xc0, 0x11, 0x26, 0xd6, 0xd4, 0xbd, 0xd7, 0x8a, 0x5a, 0x90, 0xe5, 0x0a, 0xd6, 0x22, - 0x41, 0x84, 0x36, 0x05, 0x56, 0x36, 0x3d, 0x9c, 0x5b, 0x5e, 0x1c, 0x85, 0x75, 0x68, 0x5a, 0x92, - 0xea, 0xe8, 0x3e, 0x94, 0xad, 0xd0, 0x11, 0x4f, 0xb5, 0x15, 0x9e, 0x95, 0x76, 0x37, 0x52, 0xf5, - 0x69, 0x15, 0xe3, 0xd7, 0x34, 0xf8, 0xc2, 0xc8, 0xd9, 0x67, 0x41, 0x5c, 0xb6, 0xf2, 0xfa, 0xa6, - 0x48, 0x31, 0xb7, 0x5f, 0xa8, 0x08, 0x0d, 0x91, 0x4a, 0x2b, 0x48, 0xe5, 0xac, 0x82, 0x24, 0xae, - 0x6e, 0xef, 0x7a, 0xee, 0x99, 0x70, 0xce, 0xc4, 0x69, 0xe3, 0xfb, 0x1a, 0xdc, 0x1e, 0xb7, 0x44, - 0x14, 0x01, 0xe7, 0x3b, 0xf6, 0xf4, 0x05, 0x73, 0x30, 0xc9, 0xf4, 0xa7, 0xd0, 0xa5, 0x7f, 0xa2, - 0xc1, 0x17, 0xc7, 0xac, 0x29, 0xbb, 0x52, 0x4c, 0xac, 0x80, 0xa8, 0xff, 0x40, 0xa4, 0x40, 0x98, - 0xf7, 0xf4, 0xd8, 0x0c, 0x88, 0xf2, 0x0f, 0x44, 0x09, 0x20, 0xd5, 0x7a, 0x39, 0xdd, 0x3a, 0x0f, - 0x20, 0x96, 0x78, 0xf8, 0xf5, 0xab, 0x8a, 0x0c, 0x20, 0x4e, 0x81, 0x8d, 0x7f, 0xa5, 0xc1, 0xf5, - 0x5c, 0x2a, 0xa1, 0xf8, 0x6d, 0x27, 0x3c, 0x51, 0xff, 0x1d, 0x49, 0xa6, 0xa9, 0x4e, 0x44, 0xbf, - 0xf7, 0xf1, 0x86, 0xbc, 0xfe, 0x23, 0x92, 0xcc, 0xbb, 0x6f, 0x5a, 0xc7, 0x8e, 0x77, 0xc4, 0x04, - 0x9e, 0xd0, 0xb0, 0x15, 0x90, 0x32, 0xd7, 0x95, 0xd4, 0x5c, 0xab, 0xe3, 0xa9, 0x66, 0xc6, 0x23, - 0x2f, 0x97, 0xd5, 0x94, 0x4b, 0x68, 0x7f, 0xab, 0x06, 0x73, 0x19, 0xca, 0xa4, 0xb8, 0xed, 0xc0, - 0x39, 0x15, 0xf7, 0xa6, 0x9b, 0x58, 0xa4, 0xa8, 0xa4, 0xe6, 0x6b, 0xfd, 0xae, 0xe9, 0xd9, 0xae, - 0x9c, 0xcc, 0x14, 0x6c, 0xe4, 0x7c, 0x16, 0xf5, 0xf9, 0x18, 0x74, 0x8e, 0x63, 0x25, 0x8a, 0x02, - 0xe7, 0x60, 0x10, 0xc5, 0x2f, 0xdc, 0x7e, 0x6b, 0x32, 0x5e, 0x5a, 0x7e, 0x94, 0xa9, 0x2e, 0xfe, - 0xba, 0x25, 0x8b, 0x15, 0x1d, 0xc2, 0x92, 0xe5, 0x7b, 0x51, 0xe0, 0xbb, 0x2e, 0x09, 0x3a, 0x3c, - 0xc4, 0xb9, 0xcb, 0xd6, 0x92, 0xee, 0x99, 0xa3, 0x75, 0xb1, 0xb8, 0x9c, 0xd8, 0x33, 0x47, 0x60, - 0x42, 0x8f, 0x00, 0x79, 0xfc, 0x72, 0xcd, 0x11, 0x49, 0xf0, 0xd7, 0xcf, 0x85, 0x3f, 0x07, 0x03, - 0x7a, 0x1f, 0x16, 0xd8, 0xd5, 0xb6, 0x6c, 0xcf, 0x1b, 0xe7, 0xc2, 0x9c, 0x8b, 0x03, 0xd9, 0x70, - 0x23, 0x19, 0xd1, 0xfa, 0x93, 0xbe, 0xe9, 0xd9, 0x49, 0x03, 0xcd, 0x73, 0x35, 0x50, 0x8c, 0x08, - 0x7d, 0x17, 0xae, 0xd1, 0xd6, 0xb3, 0xf8, 0xe1, 0x5c, 0xf8, 0xf3, 0x50, 0x2c, 0xb5, 0xe1, 0x7a, - 0x2e, 0x19, 0x9c, 0xeb, 0xb6, 0x49, 0x1b, 0xe6, 0x32, 0x8d, 0x9d, 0xff, 0x9e, 0xad, 0xf1, 0xbd, - 0x9c, 0xbd, 0x99, 0xeb, 0xa3, 0x71, 0xd0, 0x93, 0xa6, 0x06, 0x3d, 0x15, 0xff, 0x31, 0x6b, 0x62, - 0x4d, 0x95, 0x55, 0x6b, 0xca, 0xf8, 0x3d, 0x0d, 0xf4, 0xac, 0x16, 0x83, 0x3e, 0x00, 0xbd, 0x67, - 0x46, 0xd6, 0xf1, 0xfa, 0x93, 0x7e, 0xc0, 0xe3, 0xe9, 0x2f, 0xec, 0x15, 0x1d, 0x42, 0x84, 0x7e, - 0x1e, 0xa6, 0x18, 0xec, 0x81, 0x43, 0x5c, 0xfb, 0xc2, 0x4e, 0x04, 0x15, 0x87, 0xf1, 0xb7, 0x4b, - 0x70, 0x3d, 0xff, 0x7f, 0x11, 0x2e, 0x65, 0x7b, 0xac, 0xa5, 0x6c, 0x8f, 0x97, 0xcf, 0xf3, 0x57, - 0x06, 0x8a, 0x01, 0xb2, 0x99, 0x31, 0x40, 0xee, 0x9d, 0x0b, 0xcf, 0xc5, 0xac, 0x90, 0xdf, 0x2f, - 0xc1, 0x73, 0x23, 0xf0, 0x15, 0x50, 0x4f, 0xc6, 0x2e, 0x28, 0x0d, 0xdb, 0x05, 0x1f, 0x2a, 0x46, - 0x0c, 0x0f, 0x3a, 0x7d, 0xfb, 0xfc, 0xa3, 0x29, 0xb4, 0x65, 0xf6, 0x53, 0xa6, 0x68, 0x65, 0xe4, - 0xa3, 0x08, 0xb9, 0xf8, 0x73, 0x8d, 0xd2, 0xcb, 0xa9, 0xc7, 0x7f, 0xaf, 0x0c, 0x37, 0x0a, 0x57, - 0x38, 0x3b, 0x63, 0xda, 0xf0, 0x8c, 0x6d, 0x40, 0x53, 0xba, 0x7f, 0xc2, 0x31, 0x46, 0x6c, 0xae, - 0xf3, 0x28, 0xa9, 0x9d, 0x98, 0x2e, 0x8a, 0xaf, 0x4c, 0x81, 0xa0, 0x87, 0xd0, 0x90, 0x9e, 0x35, - 0x31, 0x79, 0xe7, 0xe6, 0xaa, 0x18, 0x41, 0xae, 0xdd, 0x55, 0x2d, 0xb0, 0xbb, 0xd2, 0x36, 0x55, - 0x6d, 0xc8, 0xa6, 0xea, 0x00, 0xd0, 0x7e, 0x08, 0xd3, 0xa7, 0x3e, 0x92, 0x9b, 0xe8, 0x36, 0x6e, - 0x6f, 0xf9, 0x96, 0xe9, 0x66, 0x2d, 0x4b, 0x05, 0x87, 0xf1, 0x11, 0xdc, 0x28, 0x2c, 0x48, 0x15, - 0x07, 0xb3, 0xef, 0xbc, 0xc3, 0x5e, 0x03, 0x16, 0x8a, 0x92, 0x4c, 0xc7, 0x8a, 0x4b, 0x49, 0xb9, - 0x15, 0x9f, 0x13, 0xb2, 0x62, 0xfc, 0x27, 0x0d, 0x6e, 0x8d, 0x26, 0xb1, 0x9f, 0xc9, 0x43, 0xf0, - 0x1f, 0x68, 0x00, 0xdc, 0xb0, 0xc6, 0x03, 0x97, 0x45, 0xce, 0x9e, 0x92, 0xe0, 0x20, 0xbe, 0x5f, - 0xc8, 0x12, 0x74, 0x4b, 0x92, 0xf3, 0x25, 0x85, 0x40, 0x02, 0xe0, 0x8f, 0xe1, 0x49, 0x82, 0xe6, - 0xae, 0x03, 0x85, 0x46, 0x99, 0x8f, 0x92, 0x27, 0x98, 0x4e, 0xcb, 0x08, 0xb1, 0x89, 0xd3, 0x40, - 0x76, 0xf4, 0xe1, 0x7b, 0x92, 0xde, 0xf7, 0xf1, 0x96, 0x94, 0x5e, 0x59, 0xb0, 0x71, 0x02, 0xf5, - 0xee, 0x80, 0xad, 0x6f, 0xee, 0x83, 0x06, 0xea, 0x52, 0x97, 0x86, 0x97, 0x7a, 0x28, 0x12, 0x29, - 0xb5, 0xdb, 0x56, 0xb2, 0xbb, 0xed, 0xef, 0x68, 0x50, 0x61, 0x7f, 0x42, 0x72, 0xa9, 0x5d, 0xe3, - 0x9b, 0x50, 0x0d, 0x06, 0x2e, 0x91, 0x3b, 0xdb, 0x97, 0x0a, 0xa3, 0x3a, 0xe5, 0x32, 0x60, 0x5e, - 0x3e, 0x16, 0xee, 0xe5, 0x1c, 0xe1, 0x5e, 0x51, 0x84, 0xfb, 0x5f, 0x68, 0x30, 0xa5, 0xfe, 0x7d, - 0xc8, 0x25, 0xdd, 0x9c, 0x8d, 0x90, 0x4f, 0xb0, 0xec, 0x70, 0xe1, 0x7f, 0x41, 0xf2, 0x62, 0x38, - 0x2e, 0x8f, 0x36, 0xa1, 0x1e, 0xf8, 0x2e, 0xa1, 0x5a, 0x57, 0xf9, 0x82, 0x4c, 0x2d, 0x11, 0x4c, - 0xbc, 0xb3, 0xfd, 0xa8, 0x04, 0x53, 0xea, 0xff, 0xc5, 0x5c, 0xcd, 0x52, 0x7d, 0x00, 0xba, 0x79, - 0x74, 0x14, 0x90, 0x23, 0xf6, 0xce, 0x08, 0x66, 0x38, 0x2e, 0x78, 0x09, 0x63, 0x08, 0xd1, 0x67, - 0x78, 0x1d, 0xef, 0x57, 0x4a, 0x80, 0x72, 0xfe, 0x8f, 0xe6, 0xff, 0x2b, 0x82, 0xfa, 0xcf, 0x25, - 0x98, 0xcd, 0xfc, 0x15, 0xcd, 0xa5, 0xc6, 0xff, 0x36, 0xd4, 0xb9, 0x4d, 0x2f, 0x87, 0x3f, 0xa9, - 0xe7, 0x54, 0x56, 0x43, 0x1f, 0x82, 0xce, 0x1e, 0x19, 0xe8, 0x0c, 0x5c, 0xb7, 0x2b, 0x50, 0x71, - 0xe2, 0x3a, 0xff, 0x74, 0x0c, 0x61, 0x42, 0xab, 0x70, 0xd3, 0x1c, 0x44, 0x3e, 0x73, 0x8a, 0xa6, - 0xc7, 0xbd, 0xe7, 0x9f, 0x10, 0x4f, 0x38, 0x4e, 0x46, 0x96, 0x89, 0xe7, 0xb6, 0x9a, 0x33, 0xb7, - 0xea, 0x5f, 0xa0, 0x0c, 0xe0, 0xba, 0xb8, 0x22, 0x2b, 0xb0, 0xac, 0x9a, 0xd6, 0x09, 0xf1, 0xec, - 0xec, 0xb9, 0x9f, 0x36, 0x7c, 0xee, 0xc7, 0x9e, 0x2d, 0x09, 0x52, 0x7f, 0x1c, 0x2d, 0xd3, 0xec, - 0x85, 0x0f, 0xfa, 0xcd, 0x5f, 0x64, 0xe3, 0x6e, 0x20, 0x05, 0x62, 0xfc, 0xae, 0x06, 0xb3, 0xa2, - 0x5d, 0xd9, 0xe0, 0x03, 0xba, 0x2a, 0x0c, 0xbb, 0x58, 0xd1, 0x17, 0x47, 0xff, 0xe3, 0x4d, 0xba, - 0xbf, 0x58, 0x56, 0x46, 0x5b, 0xd0, 0x90, 0x5b, 0xd9, 0x18, 0xb3, 0xa0, 0x78, 0x4d, 0x62, 0x0c, - 0xc6, 0x2a, 0x80, 0x68, 0x6f, 0x6f, 0xab, 0x4b, 0x77, 0xe3, 0x63, 0x3f, 0x8c, 0xe2, 0xdd, 0x98, - 0x25, 0x32, 0x4e, 0xa9, 0x52, 0xd6, 0x29, 0x65, 0xfc, 0x55, 0x0d, 0xe6, 0xde, 0xdd, 0xdb, 0xeb, - 0x08, 0x44, 0x1d, 0x33, 0x3a, 0x66, 0x6f, 0xdf, 0x98, 0xd1, 0xb1, 0xdc, 0x2a, 0xe9, 0x37, 0xfa, - 0x0e, 0xd4, 0x0f, 0xf8, 0x68, 0x44, 0xc7, 0xbf, 0x32, 0x7a, 0x06, 0xe2, 0xa1, 0x8b, 0x5a, 0x6c, - 0x45, 0xcc, 0xe8, 0x98, 0x79, 0x5d, 0xca, 0x62, 0x45, 0x44, 0xda, 0x38, 0x82, 0x29, 0xf9, 0x57, - 0x41, 0x54, 0xaf, 0x40, 0xe2, 0x56, 0x8a, 0x68, 0x9f, 0x5d, 0x3c, 0x59, 0x83, 0xe6, 0x71, 0x14, - 0xf5, 0x69, 0xff, 0xc6, 0x71, 0x46, 0x66, 0x38, 0x38, 0xa9, 0x68, 0xfc, 0xb9, 0x16, 0xb7, 0x24, - 0x02, 0x77, 0x66, 0x6d, 0x72, 0x68, 0x0e, 0xdc, 0x48, 0xf4, 0x57, 0x2c, 0xef, 0x84, 0x83, 0xcb, - 0x54, 0x46, 0xdf, 0x80, 0x72, 0xe4, 0x8e, 0xdb, 0x0e, 0x92, 0x25, 0xc3, 0xb4, 0x34, 0xba, 0x2f, - 0x77, 0x91, 0xf2, 0xc8, 0xa7, 0x0f, 0x94, 0x09, 0x92, 0xdb, 0xc8, 0x5d, 0xd0, 0xc5, 0x1f, 0x2b, - 0x25, 0x4a, 0x36, 0xd7, 0x4a, 0x86, 0xe0, 0x06, 0xa6, 0x9a, 0x5b, 0x10, 0x25, 0x37, 0x24, 0xd8, - 0xeb, 0x46, 0x9a, 0xf2, 0xba, 0xd1, 0xa8, 0xd7, 0x90, 0x16, 0xa0, 0x4a, 0x82, 0xc0, 0x0f, 0xc4, - 0xca, 0xf1, 0x84, 0xf1, 0x31, 0x5c, 0xdb, 0x1a, 0xbe, 0xce, 0x3e, 0xf4, 0x07, 0x11, 0xe2, 0x7f, - 0xd9, 0xbd, 0xcc, 0x9f, 0xb8, 0x33, 0x8d, 0xea, 0x9b, 0xf2, 0xdd, 0x87, 0xca, 0x98, 0x2d, 0x54, - 0x76, 0x5d, 0x3c, 0xfb, 0x60, 0xec, 0xc3, 0x8c, 0x5c, 0x48, 0x3e, 0xa4, 0x35, 0xa8, 0x8b, 0x41, - 0x0b, 0x5f, 0x43, 0xd1, 0x85, 0xb8, 0x9c, 0x2e, 0x63, 0x59, 0x95, 0x85, 0xb0, 0xc9, 0x71, 0x7c, - 0x06, 0x21, 0x6c, 0x0a, 0x2d, 0x9e, 0x33, 0x84, 0x2d, 0x35, 0xf8, 0x73, 0x1b, 0xf8, 0xdf, 0x03, - 0xf4, 0xd0, 0x3c, 0x3c, 0x31, 0x45, 0x5c, 0xfb, 0xbb, 0xc4, 0xb4, 0x49, 0x80, 0xbe, 0x04, 0xd3, - 0x22, 0x10, 0xff, 0xa3, 0xd8, 0x34, 0x99, 0xc1, 0x53, 0x02, 0xc6, 0x3c, 0xa4, 0x5f, 0x85, 0x39, - 0x59, 0xe4, 0x54, 0xb9, 0x99, 0x32, 0x83, 0x67, 0x05, 0x58, 0xbe, 0xd2, 0xfa, 0x2b, 0x1a, 0xe8, - 0xac, 0x89, 0x95, 0x44, 0x3f, 0x41, 0x2b, 0xec, 0x95, 0x60, 0x5b, 0xf8, 0x73, 0x8b, 0x63, 0x50, - 0x86, 0xfb, 0x86, 0x45, 0x45, 0x4a, 0x89, 0x91, 0xdf, 0x77, 0x2c, 0xe9, 0x31, 0x63, 0x09, 0xfe, - 0x94, 0xa5, 0x7c, 0x7d, 0x7b, 0x06, 0xf3, 0x84, 0xf1, 0x37, 0xab, 0xf0, 0xec, 0x1a, 0xb5, 0xfa, - 0xa2, 0x80, 0x98, 0xbd, 0x50, 0xe9, 0x49, 0x88, 0x7e, 0x55, 0x83, 0xd6, 0x09, 0x6d, 0xa6, 0x13, - 0xf8, 0xf6, 0xc0, 0x22, 0x6a, 0xa6, 0xe8, 0xdd, 0x3b, 0x85, 0x11, 0x32, 0xb9, 0x28, 0x79, 0xaf, - 0x73, 0xd0, 0xe1, 0xc2, 0x86, 0xd0, 0x5f, 0x81, 0x45, 0x96, 0xf7, 0x80, 0x44, 0xd6, 0x71, 0xaa, - 0x0b, 0x9c, 0x6e, 0xd6, 0x2f, 0xd2, 0x85, 0x21, 0x64, 0xb8, 0xa0, 0x11, 0xb4, 0x0f, 0xf3, 0x27, - 0x99, 0x35, 0x92, 0x62, 0xe8, 0xab, 0xa3, 0x96, 0x46, 0x29, 0x8f, 0x87, 0x31, 0x2c, 0xdd, 0x07, - 0xd8, 0xa3, 0xcb, 0xc2, 0x1e, 0xfc, 0x4e, 0x56, 0x4c, 0xcb, 0x5d, 0xb1, 0x92, 0xb2, 0x62, 0x4b, - 0x27, 0xd0, 0x2a, 0x9a, 0x45, 0xb4, 0xcb, 0x6f, 0x59, 0x85, 0x63, 0x8e, 0xbf, 0x8b, 0xa6, 0x26, - 0xe9, 0x11, 0xbf, 0xa0, 0x15, 0x2e, 0x39, 0xb0, 0x98, 0x3f, 0x5f, 0x4f, 0xbd, 0x29, 0xc3, 0x03, - 0x9d, 0xee, 0x4a, 0xa9, 0x46, 0xf6, 0x60, 0x81, 0x78, 0x76, 0xdf, 0x77, 0xbc, 0x28, 0xb3, 0xf2, - 0xa3, 0xfe, 0xe4, 0x97, 0xa2, 0xe1, 0xa8, 0x73, 0x6b, 0x6f, 0x56, 0x1a, 0x9a, 0x5e, 0x32, 0x1c, - 0x98, 0xa7, 0x05, 0xef, 0x4d, 0xd4, 0xa0, 0x76, 0x99, 0x06, 0x8d, 0xdf, 0xaa, 0x40, 0x33, 0x2e, - 0x83, 0x3e, 0x80, 0xeb, 0xe2, 0x05, 0x79, 0x4c, 0xc2, 0xbe, 0xef, 0x85, 0xc2, 0xe1, 0x2c, 0x1a, - 0xf9, 0xca, 0xb8, 0x46, 0xd8, 0x9c, 0xe2, 0x7c, 0x1c, 0x88, 0xc0, 0xbc, 0xc8, 0xe0, 0x80, 0xb6, - 0x6f, 0xcb, 0x17, 0xcb, 0xbe, 0x39, 0x16, 0x71, 0x37, 0x5b, 0x53, 0x3c, 0x7f, 0x3a, 0x84, 0x31, - 0x56, 0x7f, 0x2a, 0x8a, 0xfa, 0xc3, 0xfe, 0x75, 0x24, 0x3a, 0xf6, 0xf9, 0xb5, 0x87, 0xd9, 0xc2, - 0x8d, 0x8a, 0xb6, 0xb7, 0xcd, 0x0a, 0x62, 0x51, 0x81, 0x6e, 0x7f, 0x87, 0x03, 0xd7, 0x65, 0xcf, - 0x14, 0xf2, 0xfb, 0x24, 0x71, 0x7a, 0xe9, 0x04, 0x16, 0xf3, 0xfb, 0x95, 0xf3, 0xd2, 0xfe, 0x9b, - 0xe9, 0x97, 0xf6, 0x27, 0x9c, 0x4a, 0xe5, 0x1e, 0x53, 0x1f, 0x2a, 0x6b, 0xe2, 0x51, 0x68, 0x2b, - 0x7e, 0xbc, 0x56, 0xb2, 0x1e, 0xba, 0x09, 0x4d, 0xd7, 0x8c, 0x88, 0x67, 0x39, 0xc2, 0xd3, 0x38, - 0x8d, 0x13, 0x00, 0x5a, 0x06, 0x74, 0xe8, 0x04, 0x61, 0xb4, 0xc5, 0x20, 0x67, 0x5d, 0xb3, 0xd7, - 0x17, 0x2f, 0x81, 0x68, 0x38, 0x27, 0x67, 0xb3, 0xd2, 0x28, 0xeb, 0x15, 0xe3, 0x15, 0xd0, 0xd7, - 0x76, 0xba, 0xb4, 0xd1, 0x03, 0x33, 0x14, 0x03, 0xbb, 0x0d, 0x53, 0x74, 0xe7, 0xdf, 0x3d, 0x3c, - 0x0c, 0x89, 0xe0, 0xb0, 0x2a, 0x56, 0x41, 0xc6, 0x3f, 0xd3, 0x60, 0x5a, 0xda, 0x9c, 0x5b, 0x4e, - 0x18, 0xa1, 0x5f, 0xc8, 0xbd, 0x2f, 0xf5, 0xea, 0x18, 0x73, 0x95, 0x56, 0xfd, 0xf4, 0x2f, 0x4b, - 0xfd, 0x49, 0x09, 0xae, 0xe7, 0xff, 0x65, 0xe5, 0x67, 0x70, 0x76, 0x90, 0xdb, 0xf0, 0x05, 0xce, - 0x0e, 0xf2, 0xf1, 0x5c, 0x2c, 0xa4, 0x6c, 0x3f, 0xe7, 0x36, 0xc9, 0xab, 0xe7, 0x69, 0x37, 0x3f, - 0x34, 0xec, 0x07, 0x1a, 0xdc, 0x1a, 0x5d, 0xfc, 0x73, 0x16, 0x4d, 0xf8, 0x63, 0x0d, 0x6e, 0x14, - 0xae, 0x0f, 0x5d, 0x19, 0xfe, 0x70, 0xa8, 0x20, 0x8d, 0x73, 0xad, 0xcc, 0x1e, 0xab, 0x89, 0x05, - 0x06, 0x6a, 0xe2, 0xf1, 0x88, 0xcb, 0x6d, 0x2e, 0x0f, 0x99, 0x89, 0x97, 0x40, 0xd0, 0xfb, 0xa0, - 0x4b, 0x93, 0x91, 0xb9, 0xa2, 0x9c, 0xd8, 0xd6, 0x58, 0x1e, 0xfb, 0xdf, 0x94, 0x6a, 0xbd, 0x33, - 0x3c, 0x84, 0xc7, 0x58, 0x87, 0xe7, 0x46, 0x74, 0x31, 0xd7, 0xe9, 0x2a, 0x1d, 0xab, 0x25, 0xc5, - 0x5f, 0xfe, 0xaf, 0x4b, 0xf0, 0x6c, 0x41, 0xa3, 0xa9, 0xff, 0xfb, 0x51, 0xcc, 0xfd, 0x34, 0x90, - 0x62, 0xed, 0x25, 0xc3, 0x67, 0xdf, 0xa8, 0x0d, 0xd0, 0x73, 0xbc, 0x15, 0xd7, 0xf5, 0x1f, 0x8b, - 0x40, 0xfd, 0xe2, 0x8b, 0x4d, 0xaa, 0xd4, 0xc0, 0x4a, 0x35, 0x86, 0xc4, 0x7c, 0x22, 0x91, 0x54, - 0xce, 0x83, 0x24, 0xae, 0x26, 0xff, 0x02, 0x88, 0x9d, 0x44, 0xdb, 0xb2, 0x94, 0x60, 0x9b, 0x9c, - 0x1c, 0xf9, 0xc7, 0x38, 0x1c, 0x2a, 0xa4, 0x5e, 0x2d, 0xbe, 0xf2, 0x97, 0x82, 0x1b, 0xff, 0x4b, - 0x2b, 0x58, 0x83, 0xe4, 0x3d, 0xb2, 0x2d, 0x33, 0x8c, 0x30, 0xb1, 0xfc, 0x5e, 0x8f, 0x78, 0x36, - 0xb1, 0xd7, 0xe4, 0xff, 0x25, 0x94, 0x71, 0x5e, 0x16, 0xfa, 0x2e, 0x55, 0xf2, 0x05, 0x28, 0xa5, - 0x94, 0x4c, 0x40, 0x2f, 0x6a, 0x35, 0x9c, 0x45, 0x93, 0xb9, 0x6a, 0x56, 0x1e, 0x79, 0xd5, 0xec, - 0x51, 0x67, 0x25, 0x5f, 0x14, 0xfc, 0x61, 0x9a, 0x58, 0xd4, 0x16, 0x26, 0x24, 0x96, 0x37, 0x63, - 0xee, 0x2b, 0x4d, 0xbe, 0x9e, 0x92, 0xdd, 0xda, 0x00, 0x74, 0x51, 0x83, 0x55, 0x7f, 0xe0, 0x9d, - 0x8f, 0xaa, 0x92, 0x6a, 0x14, 0xc9, 0xa0, 0xdf, 0x97, 0x48, 0xce, 0x43, 0x55, 0x49, 0x35, 0xf4, - 0x10, 0x66, 0x07, 0x9e, 0x65, 0xf6, 0xfb, 0xc4, 0xe6, 0xfc, 0x26, 0x02, 0xbf, 0x26, 0x42, 0x94, - 0xa9, 0x6a, 0xfc, 0x1b, 0x0d, 0xa6, 0xd5, 0x29, 0xa7, 0x53, 0x19, 0x27, 0xf6, 0x12, 0xb9, 0x9a, - 0x06, 0xa2, 0x3b, 0xec, 0xf9, 0x05, 0x0e, 0xe8, 0xaa, 0x92, 0x36, 0x0b, 0xa6, 0x3c, 0xb0, 0x55, - 0x28, 0x72, 0xb7, 0x72, 0x45, 0x2e, 0x4e, 0x89, 0x5c, 0x1c, 0x8b, 0xdc, 0xed, 0xb4, 0xc8, 0x15, - 0xc9, 0xbb, 0xeb, 0x30, 0x9f, 0xfc, 0xbf, 0x8c, 0x2f, 0x2c, 0x56, 0x1d, 0xa6, 0x3d, 0x9f, 0x45, - 0x57, 0xb3, 0x67, 0xfd, 0xf5, 0x67, 0xd0, 0x2c, 0xc0, 0xa1, 0x19, 0x1c, 0x99, 0x11, 0x59, 0x6f, - 0x77, 0x75, 0x4d, 0x4d, 0x3f, 0xec, 0xea, 0xa5, 0xbb, 0x8e, 0xf2, 0x90, 0x26, 0xff, 0xab, 0xb3, - 0x29, 0xa8, 0x0f, 0xbc, 0x13, 0xcf, 0x7f, 0xec, 0xe9, 0xcf, 0xd0, 0x84, 0xf8, 0xcb, 0x45, 0x5e, - 0x57, 0x3c, 0x05, 0xe1, 0x78, 0x47, 0x7a, 0x89, 0x66, 0x06, 0x03, 0xcf, 0xa3, 0x89, 0x32, 0x02, - 0xf9, 0xec, 0x99, 0x5e, 0xa1, 0xdf, 0xe4, 0x89, 0x43, 0x2b, 0x55, 0x51, 0x03, 0x2a, 0x36, 0x31, - 0x6d, 0xbd, 0x76, 0x77, 0x47, 0x79, 0xbc, 0x42, 0xfc, 0x09, 0xda, 0x3c, 0xcc, 0x88, 0xb6, 0x38, - 0x40, 0x7f, 0x06, 0x4d, 0x43, 0x23, 0x6e, 0x42, 0xa3, 0x4d, 0xf0, 0xa7, 0x14, 0xcf, 0xf4, 0x12, - 0x9a, 0x81, 0xe6, 0xc0, 0x93, 0xc9, 0xf2, 0xdd, 0x07, 0x30, 0xad, 0xfe, 0x63, 0x1b, 0xaa, 0x82, - 0xb6, 0xaf, 0x3f, 0x43, 0x7f, 0xd6, 0x74, 0x8d, 0xfe, 0x60, 0xbd, 0x44, 0x7f, 0xba, 0x7a, 0x99, - 0xfe, 0xec, 0xe9, 0x15, 0xfa, 0xf3, 0x9e, 0x5e, 0xa5, 0x3f, 0xdf, 0xd5, 0x6b, 0xf4, 0xe7, 0x7d, - 0xbd, 0x7e, 0xd7, 0x60, 0x53, 0xa0, 0xfc, 0x31, 0x27, 0xaa, 0x43, 0x39, 0xb2, 0xfa, 0xfa, 0x33, - 0xf4, 0x63, 0x60, 0xf7, 0x75, 0xed, 0xee, 0x4f, 0x4a, 0x30, 0xf5, 0xf0, 0x7e, 0x18, 0xcb, 0xac, - 0xe7, 0xe0, 0xd9, 0x87, 0xf7, 0xbb, 0x78, 0xbd, 0xbb, 0xbb, 0x8f, 0xdb, 0xeb, 0x1f, 0xed, 0xef, - 0x74, 0x3b, 0xeb, 0xed, 0x8d, 0x07, 0x1b, 0xeb, 0x6b, 0xbc, 0x56, 0x67, 0x77, 0x8d, 0x4f, 0x18, - 0x5e, 0xef, 0x6c, 0x6d, 0xb4, 0x57, 0xba, 0xeb, 0x7b, 0x7c, 0xc2, 0xba, 0xeb, 0xf8, 0xd1, 0x46, - 0x7b, 0x5d, 0x2f, 0xd3, 0x89, 0xd9, 0xd9, 0x5d, 0x5b, 0xd7, 0x2b, 0x14, 0xdc, 0xde, 0xda, 0xef, - 0xee, 0xad, 0x63, 0xbd, 0x4a, 0x2b, 0x6f, 0xee, 0xae, 0xea, 0x35, 0x06, 0xc5, 0xbb, 0x3b, 0x34, - 0x51, 0xa7, 0x43, 0x5f, 0x5b, 0x59, 0xdf, 0xde, 0xdd, 0xa1, 0x88, 0x1a, 0x68, 0x0e, 0xa6, 0xba, - 0x7b, 0x2b, 0x7b, 0xeb, 0x0f, 0xf6, 0xb7, 0x28, 0xa0, 0x89, 0x16, 0x40, 0xef, 0xac, 0xe3, 0xee, - 0x46, 0x77, 0x6f, 0x7d, 0x67, 0xef, 0xd1, 0xee, 0xd6, 0xfe, 0xf6, 0xba, 0x0e, 0xe8, 0x06, 0x5c, - 0xcf, 0x42, 0xdb, 0x5b, 0x2b, 0x1b, 0xdb, 0xfa, 0x14, 0x6d, 0x1d, 0xef, 0x6e, 0xad, 0xeb, 0xd3, - 0x14, 0x17, 0xfd, 0x5a, 0xdd, 0xd8, 0x59, 0xdb, 0xd8, 0x79, 0x47, 0x9f, 0xa1, 0x00, 0xd1, 0x1d, - 0x56, 0x62, 0x16, 0x2d, 0x02, 0x52, 0x00, 0xb2, 0xe0, 0x1c, 0x42, 0x30, 0x2b, 0x86, 0xb3, 0xd2, - 0x6e, 0xef, 0xee, 0xef, 0xec, 0xe9, 0x3a, 0xed, 0xf5, 0xc6, 0xce, 0x3b, 0x78, 0xbd, 0xdb, 0xd5, - 0xe7, 0xe9, 0xf8, 0xd7, 0xd6, 0x3b, 0x5b, 0xbb, 0xbf, 0xb0, 0xbd, 0xbe, 0xb3, 0xa7, 0x23, 0x3a, - 0x8a, 0x9d, 0x95, 0xed, 0xf5, 0x6e, 0x67, 0xa5, 0xbd, 0xae, 0x5f, 0xa3, 0x43, 0x6d, 0xe3, 0x35, - 0x7d, 0x01, 0xd5, 0xa0, 0xd4, 0xc6, 0xfa, 0x75, 0xda, 0xdf, 0x47, 0xeb, 0x78, 0x6f, 0xa3, 0xbd, - 0xb2, 0xd5, 0xd9, 0x5d, 0x5b, 0xd9, 0xdf, 0xdb, 0xed, 0xb6, 0x57, 0xb6, 0xd6, 0xb1, 0xbe, 0x78, - 0x97, 0x40, 0xab, 0xe8, 0xd1, 0x03, 0xda, 0x61, 0x41, 0x45, 0x34, 0xa9, 0x3f, 0x43, 0xdb, 0x89, - 0x65, 0xa0, 0xae, 0x51, 0x2a, 0x4b, 0xbd, 0x90, 0xa3, 0x97, 0xe8, 0x90, 0x48, 0xff, 0x98, 0xf4, - 0x48, 0x60, 0xba, 0x09, 0xbc, 0x7c, 0xf7, 0x3d, 0x40, 0xd4, 0xa6, 0xc8, 0xd8, 0x62, 0x0d, 0xa8, - 0x6c, 0x78, 0x87, 0x3e, 0xe7, 0x87, 0x2e, 0xbf, 0x29, 0xab, 0x6b, 0x94, 0x54, 0x31, 0xb1, 0x9d, - 0x80, 0x58, 0x11, 0xa7, 0x4e, 0xfe, 0xaf, 0xe4, 0xeb, 0x41, 0xa0, 0x97, 0x69, 0x92, 0xff, 0xf1, - 0x00, 0x4d, 0x56, 0xee, 0x5a, 0x00, 0x89, 0xb9, 0x44, 0xd1, 0xec, 0xc7, 0x3c, 0x56, 0x87, 0xf2, - 0x3b, 0x24, 0xd2, 0x35, 0xda, 0x4c, 0xc7, 0x0f, 0x29, 0x2e, 0x4a, 0x41, 0x83, 0x88, 0x73, 0xd5, - 0x1a, 0x71, 0x49, 0x44, 0xf4, 0x0a, 0xcd, 0x7e, 0x97, 0x72, 0x52, 0x95, 0x56, 0x17, 0x31, 0xda, - 0x7a, 0x0d, 0x35, 0xa1, 0xda, 0x31, 0x23, 0xeb, 0x58, 0xaf, 0xaf, 0x7e, 0xfb, 0xdf, 0x7d, 0x72, - 0x4b, 0xfb, 0x0f, 0x9f, 0xdc, 0xd2, 0xfe, 0xf8, 0x93, 0x5b, 0xda, 0xf7, 0x7f, 0x7c, 0xeb, 0x99, - 0xf7, 0xbf, 0x76, 0xe4, 0x44, 0xc7, 0x83, 0x83, 0x65, 0xcb, 0xef, 0xbd, 0x44, 0x4d, 0x93, 0x35, - 0xff, 0xe8, 0x25, 0x26, 0x1f, 0xbf, 0xde, 0x37, 0xcf, 0x5c, 0xdf, 0xb4, 0x5f, 0x3a, 0x7d, 0xf5, - 0x25, 0x21, 0x38, 0x0f, 0x6a, 0xcc, 0x05, 0xfa, 0x8d, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x2b, - 0xea, 0x36, 0xf8, 0x3a, 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..6f2d6971 --- /dev/null +++ b/process/agent_vtproto.pb.go @@ -0,0 +1,48734 @@ +// 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" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + math "math" + bits "math/bits" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +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 +} + +var vtprotoPool_Host = sync.Pool{ + New: func() interface{} { + return &Host{} + }, +} + +func (m *Host) ResetVT() { + f0 := m.AllTags[:0] + m.Reset() + m.AllTags = f0 +} +func (m *Host) ReturnToVTPool() { + if m != nil { + m.ResetVT() + vtprotoPool_Host.Put(m) + } +} +func HostFromVTPool() *Host { + return vtprotoPool_Host.Get().(*Host) +} +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_vtproto.pb.go b/process/connections_vtproto.pb.go index 0fa0cf05..cfed9d2a 100644 --- a/process/connections_vtproto.pb.go +++ b/process/connections_vtproto.pb.go @@ -1812,37 +1812,29 @@ func encodeVarint(dAtA []byte, offset int, v uint64) int { return base } -var vtprotoPool_CollectorConnections = sync.Pool{ +var vtprotoPool_Connections = sync.Pool{ New: func() interface{} { - return &CollectorConnections{} + return &Connections{} }, } -func (m *CollectorConnections) ResetVT() { - f0 := m.EncodedTags[:0] - f1 := m.EncodedDNS[:0] - f2 := m.Domains[:0] - f3 := m.EncodedDomainDatabase[:0] - f4 := m.EncodedDnsLookups[:0] - f5 := m.EncodedConnectionsTags[:0] - f6 := m.PrebuiltEBPFAssets[:0] +func (m *Connections) ResetVT() { + f0 := m.Domains[:0] + f1 := m.Tags[:0] + f2 := m.PrebuiltEBPFAssets[:0] m.Reset() - m.EncodedTags = f0 - m.EncodedDNS = f1 - m.Domains = f2 - m.EncodedDomainDatabase = f3 - m.EncodedDnsLookups = f4 - m.EncodedConnectionsTags = f5 - m.PrebuiltEBPFAssets = f6 + m.Domains = f0 + m.Tags = f1 + m.PrebuiltEBPFAssets = f2 } -func (m *CollectorConnections) ReturnToVTPool() { +func (m *Connections) ReturnToVTPool() { if m != nil { m.ResetVT() - vtprotoPool_CollectorConnections.Put(m) + vtprotoPool_Connections.Put(m) } } -func CollectorConnectionsFromVTPool() *CollectorConnections { - return vtprotoPool_CollectorConnections.Get().(*CollectorConnections) +func ConnectionsFromVTPool() *Connections { + return vtprotoPool_Connections.Get().(*Connections) } func (m *CollectorConnections) SizeVT() (n int) { if m == nil { @@ -2720,14 +2712,7 @@ func (m *CollectorConnections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if len(m.Connections) == cap(m.Connections) { - m.Connections = append(m.Connections, &Connection{}) - } else { - m.Connections = m.Connections[:len(m.Connections)+1] - if m.Connections[len(m.Connections)-1] == nil { - m.Connections[len(m.Connections)-1] = &Connection{} - } - } + m.Connections = append(m.Connections, &Connection{}) if err := m.Connections[len(m.Connections)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3485,14 +3470,7 @@ func (m *CollectorConnections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if len(m.Routes) == cap(m.Routes) { - m.Routes = append(m.Routes, &Route{}) - } else { - m.Routes = m.Routes[:len(m.Routes)+1] - if m.Routes[len(m.Routes)-1] == nil { - m.Routes[len(m.Routes)-1] = &Route{} - } - } + m.Routes = append(m.Routes, &Route{}) if err := m.Routes[len(m.Routes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3526,14 +3504,7 @@ func (m *CollectorConnections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if len(m.RouteMetadata) == cap(m.RouteMetadata) { - m.RouteMetadata = append(m.RouteMetadata, &RouteMetadata{}) - } else { - m.RouteMetadata = m.RouteMetadata[:len(m.RouteMetadata)+1] - if m.RouteMetadata[len(m.RouteMetadata)-1] == nil { - m.RouteMetadata[len(m.RouteMetadata)-1] = &RouteMetadata{} - } - } + m.RouteMetadata = append(m.RouteMetadata, &RouteMetadata{}) if err := m.RouteMetadata[len(m.RouteMetadata)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -4162,7 +4133,14 @@ func (m *Connections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Conns = append(m.Conns, &Connection{}) + if len(m.Conns) == cap(m.Conns) { + m.Conns = append(m.Conns, &Connection{}) + } else { + m.Conns = m.Conns[:len(m.Conns)+1] + if m.Conns[len(m.Conns)-1] == nil { + m.Conns[len(m.Conns)-1] = &Connection{} + } + } if err := m.Conns[len(m.Conns)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -4393,7 +4371,14 @@ func (m *Connections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Routes = append(m.Routes, &Route{}) + if len(m.Routes) == cap(m.Routes) { + m.Routes = append(m.Routes, &Route{}) + } else { + m.Routes = m.Routes[:len(m.Routes)+1] + if m.Routes[len(m.Routes)-1] == nil { + m.Routes[len(m.Routes)-1] = &Route{} + } + } if err := m.Routes[len(m.Routes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } From d9f0df33aab5b2b8794c479ca6ffbbedc36e1969 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Fri, 7 Jul 2023 16:05:07 -0400 Subject: [PATCH 4/6] remove duplicate generated function declarations --- process/connections_vtproto.pb.go | 104 ------------------------------ 1 file changed, 104 deletions(-) diff --git a/process/connections_vtproto.pb.go b/process/connections_vtproto.pb.go index cfed9d2a..0319d5af 100644 --- a/process/connections_vtproto.pb.go +++ b/process/connections_vtproto.pb.go @@ -8,7 +8,6 @@ import ( fmt "fmt" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" - bits "math/bits" sync "sync" ) @@ -1800,18 +1799,6 @@ func (m *DNSStatsByQueryType) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 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 -} - var vtprotoPool_Connections = sync.Pool{ New: func() interface{} { return &Connections{} @@ -2616,12 +2603,6 @@ func (m *DNSStatsByQueryType) SizeVT() (n int) { 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 *CollectorConnections) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8406,88 +8387,3 @@ func (m *DNSStatsByQueryType) UnmarshalVT(dAtA []byte) error { } 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") -) From 116be282904ad1fc2d4004a3797c5187ec9fdd41 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Mon, 10 Jul 2023 12:38:08 -0400 Subject: [PATCH 5/6] something compiles now --- Rakefile | 12 +- process/events.pb.go | 1838 +++++++++------------------------- process/events_vtproto.pb.go | 1209 ++++++++++++++++++++++ process/message.go | 1 - 4 files changed, 1690 insertions(+), 1370 deletions(-) create mode 100644 process/events_vtproto.pb.go diff --git a/Rakefile b/Rakefile index 9ccd5693..a80a521e 100644 --- a/Rakefile +++ b/Rakefile @@ -88,7 +88,7 @@ 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 + # 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 @@ -126,15 +126,7 @@ BASH --go-vtproto_opt=features=pool+marshal+unmarshal+size \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Connections \ --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Host \ - proto/process/connections.proto - - echo "Generating Agent Shared VTProto" - PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ - --go_out=$GOPATH/src \ - --go-vtproto_out=$GOPATH/src \ - --go-vtproto_opt=features=pool+marshal+unmarshal+size \ - --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Host \ - proto/process/agent.proto + proto/process/*.proto cp -r v5/* . rm -rf v5 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..bb9e7c2b --- /dev/null +++ b/process/events_vtproto.pb.go @@ -0,0 +1,1209 @@ +// 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" + 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 (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 From be1bb54f34a5b31356e2a59f2e6f889162529e88 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Tue, 11 Jul 2023 11:26:42 -0400 Subject: [PATCH 6/6] remove memory pooling and add equal feature --- Rakefile | 4 +- process/agent_vtproto.pb.go | 6650 ++++++++++++++++++++++++++++- process/connections_vtproto.pb.go | 1067 ++++- process/events_vtproto.pb.go | 195 + 4 files changed, 7850 insertions(+), 66 deletions(-) diff --git a/Rakefile b/Rakefile index a80a521e..108020e2 100644 --- a/Rakefile +++ b/Rakefile @@ -123,9 +123,7 @@ BASH PATH=#{protoc_gen_go_dir}/bin #{protoc_binary_2} --proto_path=$GOPATH/src:. \ --go_out=$GOPATH/src \ --go-vtproto_out=$GOPATH/src \ - --go-vtproto_opt=features=pool+marshal+unmarshal+size \ - --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Connections \ - --go-vtproto_opt=pool=github.com/DataDog/agent-payload/v5/process.Host \ + --go-vtproto_opt=features=pool+marshal+unmarshal+size+equal \ proto/process/*.proto cp -r v5/* . diff --git a/process/agent_vtproto.pb.go b/process/agent_vtproto.pb.go index 6f2d6971..e000895f 100644 --- a/process/agent_vtproto.pb.go +++ b/process/agent_vtproto.pb.go @@ -7,11 +7,11 @@ 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" - sync "sync" ) const ( @@ -21,6 +21,6633 @@ const ( _ = 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 @@ -11451,27 +18078,6 @@ func encodeVarint(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } - -var vtprotoPool_Host = sync.Pool{ - New: func() interface{} { - return &Host{} - }, -} - -func (m *Host) ResetVT() { - f0 := m.AllTags[:0] - m.Reset() - m.AllTags = f0 -} -func (m *Host) ReturnToVTPool() { - if m != nil { - m.ResetVT() - vtprotoPool_Host.Put(m) - } -} -func HostFromVTPool() *Host { - return vtprotoPool_Host.Get().(*Host) -} func (m *ResCollector_Header) SizeVT() (n int) { if m == nil { return 0 diff --git a/process/connections_vtproto.pb.go b/process/connections_vtproto.pb.go index 0319d5af..9f1c6f0c 100644 --- a/process/connections_vtproto.pb.go +++ b/process/connections_vtproto.pb.go @@ -6,9 +6,9 @@ package process import ( fmt "fmt" + proto "google.golang.org/protobuf/proto" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" - sync "sync" ) const ( @@ -18,6 +18,1029 @@ const ( _ = 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 @@ -1799,30 +2822,6 @@ func (m *DNSStatsByQueryType) MarshalToSizedBufferVT(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -var vtprotoPool_Connections = sync.Pool{ - New: func() interface{} { - return &Connections{} - }, -} - -func (m *Connections) ResetVT() { - f0 := m.Domains[:0] - f1 := m.Tags[:0] - f2 := m.PrebuiltEBPFAssets[:0] - m.Reset() - m.Domains = f0 - m.Tags = f1 - m.PrebuiltEBPFAssets = f2 -} -func (m *Connections) ReturnToVTPool() { - if m != nil { - m.ResetVT() - vtprotoPool_Connections.Put(m) - } -} -func ConnectionsFromVTPool() *Connections { - return vtprotoPool_Connections.Get().(*Connections) -} func (m *CollectorConnections) SizeVT() (n int) { if m == nil { return 0 @@ -4114,14 +5113,7 @@ func (m *Connections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if len(m.Conns) == cap(m.Conns) { - m.Conns = append(m.Conns, &Connection{}) - } else { - m.Conns = m.Conns[:len(m.Conns)+1] - if m.Conns[len(m.Conns)-1] == nil { - m.Conns[len(m.Conns)-1] = &Connection{} - } - } + m.Conns = append(m.Conns, &Connection{}) if err := m.Conns[len(m.Conns)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -4352,14 +5344,7 @@ func (m *Connections) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if len(m.Routes) == cap(m.Routes) { - m.Routes = append(m.Routes, &Route{}) - } else { - m.Routes = m.Routes[:len(m.Routes)+1] - if m.Routes[len(m.Routes)-1] == nil { - m.Routes[len(m.Routes)-1] = &Route{} - } - } + m.Routes = append(m.Routes, &Route{}) if err := m.Routes[len(m.Routes)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/process/events_vtproto.pb.go b/process/events_vtproto.pb.go index bb9e7c2b..1ac536cb 100644 --- a/process/events_vtproto.pb.go +++ b/process/events_vtproto.pb.go @@ -6,6 +6,7 @@ package process import ( fmt "fmt" + proto "google.golang.org/protobuf/proto" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" ) @@ -17,6 +18,200 @@ const ( _ = 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