From 3157606d177925fd7c3ee4e00d6df474890c3704 Mon Sep 17 00:00:00 2001 From: Adam Karpowich Date: Fri, 30 Jun 2023 11:27:47 -0400 Subject: [PATCH] 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) -}