From 3bf5f2a3c68e74ab959c1399d0e5f4de148abaac Mon Sep 17 00:00:00 2001 From: "Freddy R. Laffita Almaguer" Date: Mon, 26 Aug 2024 17:45:38 +0300 Subject: [PATCH 1/6] Updating protobuf classes with new changes. Upgrading POM to version 1.2.11 --- pom.xml | 2 +- src/main/java/agent/CollectorOuterClass.java | 12519 +++++++--------- src/main/java/agent/CollectorServiceGrpc.java | 24 +- src/main/java/agent/Common.java | 574 +- src/main/java/plugins/Plugins.java | 30 +- src/main/proto/collector.proto | 68 +- src/main/proto/common.proto | 4 + src/main/proto/plugins.proto | 2 +- 8 files changed, 6458 insertions(+), 6765 deletions(-) diff --git a/pom.xml b/pom.xml index f3c3101..caa45d0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.utmstack.grpc.jclient collector-client-4j - 1.2.10 + 1.2.11 jar UTMStack Agent Collector Client for Java projects diff --git a/src/main/java/agent/CollectorOuterClass.java b/src/main/java/agent/CollectorOuterClass.java index c167a07..2322aac 100644 --- a/src/main/java/agent/CollectorOuterClass.java +++ b/src/main/java/agent/CollectorOuterClass.java @@ -113,200 +113,256 @@ private CollectorModule(int value) { // @@protoc_insertion_point(enum_scope:agent.CollectorModule) } - public interface CollectorMessagesOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorMessages) + public interface RegisterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.RegisterRequest) com.google.protobuf.MessageOrBuilder { /** - * .agent.CollectorConfig config = 1; - * @return Whether the config field is set. + * string ip = 1; + * @return The ip. */ - boolean hasConfig(); + java.lang.String getIp(); /** - * .agent.CollectorConfig config = 1; - * @return The config. + * string ip = 1; + * @return The bytes for ip. */ - agent.CollectorOuterClass.CollectorConfig getConfig(); + com.google.protobuf.ByteString + getIpBytes(); + /** - * .agent.CollectorConfig config = 1; + * string hostname = 2; + * @return The hostname. */ - agent.CollectorOuterClass.CollectorConfigOrBuilder getConfigOrBuilder(); - + java.lang.String getHostname(); /** - * .agent.ConfigKnowledge result = 2; - * @return Whether the result field is set. + * string hostname = 2; + * @return The bytes for hostname. */ - boolean hasResult(); + com.google.protobuf.ByteString + getHostnameBytes(); + /** - * .agent.ConfigKnowledge result = 2; - * @return The result. + * string version = 3; + * @return The version. */ - agent.CollectorOuterClass.ConfigKnowledge getResult(); + java.lang.String getVersion(); /** - * .agent.ConfigKnowledge result = 2; + * string version = 3; + * @return The bytes for version. */ - agent.CollectorOuterClass.ConfigKnowledgeOrBuilder getResultOrBuilder(); + com.google.protobuf.ByteString + getVersionBytes(); - agent.CollectorOuterClass.CollectorMessages.StreamMessageCase getStreamMessageCase(); + /** + * .agent.CollectorModule collector = 4; + * @return The enum numeric value on the wire for collector. + */ + int getCollectorValue(); + /** + * .agent.CollectorModule collector = 4; + * @return The collector. + */ + agent.CollectorOuterClass.CollectorModule getCollector(); } /** - * Protobuf type {@code agent.CollectorMessages} + * Protobuf type {@code agent.RegisterRequest} */ - public static final class CollectorMessages extends + public static final class RegisterRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorMessages) - CollectorMessagesOrBuilder { + // @@protoc_insertion_point(message_implements:agent.RegisterRequest) + RegisterRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use CollectorMessages.newBuilder() to construct. - private CollectorMessages(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use RegisterRequest.newBuilder() to construct. + private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CollectorMessages() { + private RegisterRequest() { + ip_ = ""; + hostname_ = ""; + version_ = ""; + collector_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CollectorMessages(); + return new RegisterRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_descriptor; + return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorMessages.class, agent.CollectorOuterClass.CollectorMessages.Builder.class); + agent.CollectorOuterClass.RegisterRequest.class, agent.CollectorOuterClass.RegisterRequest.Builder.class); } - private int streamMessageCase_ = 0; + public static final int IP_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.lang.Object streamMessage_; - public enum StreamMessageCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CONFIG(1), - RESULT(2), - STREAMMESSAGE_NOT_SET(0); - private final int value; - private StreamMessageCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StreamMessageCase valueOf(int value) { - return forNumber(value); - } - - public static StreamMessageCase forNumber(int value) { - switch (value) { - case 1: return CONFIG; - case 2: return RESULT; - case 0: return STREAMMESSAGE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public StreamMessageCase - getStreamMessageCase() { - return StreamMessageCase.forNumber( - streamMessageCase_); - } - - public static final int CONFIG_FIELD_NUMBER = 1; + private volatile java.lang.Object ip_ = ""; /** - * .agent.CollectorConfig config = 1; - * @return Whether the config field is set. + * string ip = 1; + * @return The ip. */ @java.lang.Override - public boolean hasConfig() { - return streamMessageCase_ == 1; + 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; + } } /** - * .agent.CollectorConfig config = 1; - * @return The config. + * string ip = 1; + * @return The bytes for ip. */ @java.lang.Override - public agent.CollectorOuterClass.CollectorConfig getConfig() { - if (streamMessageCase_ == 1) { - return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; + 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; } - return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } + + public static final int HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object hostname_ = ""; /** - * .agent.CollectorConfig config = 1; + * string hostname = 2; + * @return The hostname. */ @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigOrBuilder getConfigOrBuilder() { - if (streamMessageCase_ == 1) { - return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; + 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; } - return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } - - public static final int RESULT_FIELD_NUMBER = 2; /** - * .agent.ConfigKnowledge result = 2; - * @return Whether the result field is set. + * string hostname = 2; + * @return The bytes for hostname. */ @java.lang.Override - public boolean hasResult() { - return streamMessageCase_ == 2; + 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 VERSION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** - * .agent.ConfigKnowledge result = 2; - * @return The result. + * string version = 3; + * @return The version. */ @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledge getResult() { - if (streamMessageCase_ == 2) { - return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; } - return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); } /** - * .agent.ConfigKnowledge result = 2; + * string version = 3; + * @return The bytes for version. */ @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledgeOrBuilder getResultOrBuilder() { - if (streamMessageCase_ == 2) { - return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); - } - - 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 (streamMessageCase_ == 1) { - output.writeMessage(1, (agent.CollectorOuterClass.CollectorConfig) streamMessage_); + public static final int COLLECTOR_FIELD_NUMBER = 4; + private int collector_ = 0; + /** + * .agent.CollectorModule collector = 4; + * @return The enum numeric value on the wire for collector. + */ + @java.lang.Override public int getCollectorValue() { + return collector_; + } + /** + * .agent.CollectorModule collector = 4; + * @return The collector. + */ + @java.lang.Override public agent.CollectorOuterClass.CollectorModule getCollector() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(collector_); + return result == null ? agent.CollectorOuterClass.CollectorModule.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); } - if (streamMessageCase_ == 2) { - output.writeMessage(2, (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); + } + if (collector_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { + output.writeEnum(4, collector_); } getUnknownFields().writeTo(output); } @@ -317,13 +373,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (streamMessageCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (agent.CollectorOuterClass.CollectorConfig) streamMessage_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); } - if (streamMessageCase_ == 2) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + } + if (collector_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_); + .computeEnumSize(4, collector_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -335,24 +396,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.CollectorMessages)) { + if (!(obj instanceof agent.CollectorOuterClass.RegisterRequest)) { return super.equals(obj); } - agent.CollectorOuterClass.CollectorMessages other = (agent.CollectorOuterClass.CollectorMessages) obj; + agent.CollectorOuterClass.RegisterRequest other = (agent.CollectorOuterClass.RegisterRequest) obj; - if (!getStreamMessageCase().equals(other.getStreamMessageCase())) return false; - switch (streamMessageCase_) { - case 1: - if (!getConfig() - .equals(other.getConfig())) return false; - break; - case 2: - if (!getResult() - .equals(other.getResult())) return false; - break; - case 0: - default: - } + if (!getIp() + .equals(other.getIp())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (collector_ != other.collector_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,61 +419,57 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (streamMessageCase_) { - case 1: - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - break; - case 2: - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); - break; - case 0: - default: - } + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + COLLECTOR_FIELD_NUMBER; + hash = (53 * hash) + collector_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom(byte[] data) + public static agent.CollectorOuterClass.RegisterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.RegisterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -426,26 +477,26 @@ public static agent.CollectorOuterClass.CollectorMessages parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorMessages parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.RegisterRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorMessages parseDelimitedFrom( + public static agent.CollectorOuterClass.RegisterRequest 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 agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorMessages parseFrom( + public static agent.CollectorOuterClass.RegisterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -458,7 +509,7 @@ public static agent.CollectorOuterClass.CollectorMessages parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.CollectorMessages prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.RegisterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -474,26 +525,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.CollectorMessages} + * Protobuf type {@code agent.RegisterRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorMessages) - agent.CollectorOuterClass.CollectorMessagesOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.RegisterRequest) + agent.CollectorOuterClass.RegisterRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_descriptor; + return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorMessages.class, agent.CollectorOuterClass.CollectorMessages.Builder.class); + agent.CollectorOuterClass.RegisterRequest.class, agent.CollectorOuterClass.RegisterRequest.Builder.class); } - // Construct using agent.CollectorOuterClass.CollectorMessages.newBuilder() + // Construct using agent.CollectorOuterClass.RegisterRequest.newBuilder() private Builder() { } @@ -507,31 +558,27 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - if (configBuilder_ != null) { - configBuilder_.clear(); - } - if (resultBuilder_ != null) { - resultBuilder_.clear(); - } - streamMessageCase_ = 0; - streamMessage_ = null; + ip_ = ""; + hostname_ = ""; + version_ = ""; + collector_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_descriptor; + return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.CollectorMessages getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorMessages.getDefaultInstance(); + public agent.CollectorOuterClass.RegisterRequest getDefaultInstanceForType() { + return agent.CollectorOuterClass.RegisterRequest.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.CollectorMessages build() { - agent.CollectorOuterClass.CollectorMessages result = buildPartial(); + public agent.CollectorOuterClass.RegisterRequest build() { + agent.CollectorOuterClass.RegisterRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -539,28 +586,26 @@ public agent.CollectorOuterClass.CollectorMessages build() { } @java.lang.Override - public agent.CollectorOuterClass.CollectorMessages buildPartial() { - agent.CollectorOuterClass.CollectorMessages result = new agent.CollectorOuterClass.CollectorMessages(this); + public agent.CollectorOuterClass.RegisterRequest buildPartial() { + agent.CollectorOuterClass.RegisterRequest result = new agent.CollectorOuterClass.RegisterRequest(this); if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(agent.CollectorOuterClass.CollectorMessages result) { + private void buildPartial0(agent.CollectorOuterClass.RegisterRequest result) { int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(agent.CollectorOuterClass.CollectorMessages result) { - result.streamMessageCase_ = streamMessageCase_; - result.streamMessage_ = this.streamMessage_; - if (streamMessageCase_ == 1 && - configBuilder_ != null) { - result.streamMessage_ = configBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ip_ = ip_; } - if (streamMessageCase_ == 2 && - resultBuilder_ != null) { - result.streamMessage_ = resultBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.collector_ = collector_; } } @@ -598,28 +643,33 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.CollectorMessages) { - return mergeFrom((agent.CollectorOuterClass.CollectorMessages)other); + if (other instanceof agent.CollectorOuterClass.RegisterRequest) { + return mergeFrom((agent.CollectorOuterClass.RegisterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.CollectorMessages other) { - if (other == agent.CollectorOuterClass.CollectorMessages.getDefaultInstance()) return this; - switch (other.getStreamMessageCase()) { - case CONFIG: { - mergeConfig(other.getConfig()); - break; - } - case RESULT: { - mergeResult(other.getResult()); - break; - } - case STREAMMESSAGE_NOT_SET: { - break; - } + public Builder mergeFrom(agent.CollectorOuterClass.RegisterRequest other) { + if (other == agent.CollectorOuterClass.RegisterRequest.getDefaultInstance()) return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.collector_ != 0) { + setCollectorValue(other.getCollectorValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -648,19 +698,25 @@ public Builder mergeFrom( done = true; break; case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - streamMessageCase_ = 1; + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage( - getResultFieldBuilder().getBuilder(), - extensionRegistry); - streamMessageCase_ = 2; + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; break; } // case 18 + case 26: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + collector_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -676,305 +732,275 @@ public Builder mergeFrom( } // finally return this; } - private int streamMessageCase_ = 0; - private java.lang.Object streamMessage_; - public StreamMessageCase - getStreamMessageCase() { - return StreamMessageCase.forNumber( - streamMessageCase_); - } - - public Builder clearStreamMessage() { - streamMessageCase_ = 0; - streamMessage_ = null; - onChanged(); - return this; - } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfig, agent.CollectorOuterClass.CollectorConfig.Builder, agent.CollectorOuterClass.CollectorConfigOrBuilder> configBuilder_; - /** - * .agent.CollectorConfig config = 1; - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return streamMessageCase_ == 1; - } + private java.lang.Object ip_ = ""; /** - * .agent.CollectorConfig config = 1; - * @return The config. + * string ip = 1; + * @return The ip. */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfig getConfig() { - if (configBuilder_ == null) { - if (streamMessageCase_ == 1) { - return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; - } - return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); + 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 { - if (streamMessageCase_ == 1) { - return configBuilder_.getMessage(); - } - return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); + return (java.lang.String) ref; } } /** - * .agent.CollectorConfig config = 1; + * string ip = 1; + * @return The bytes for ip. */ - public Builder setConfig(agent.CollectorOuterClass.CollectorConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamMessage_ = value; - onChanged(); + 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 { - configBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - streamMessageCase_ = 1; - return this; } /** - * .agent.CollectorConfig config = 1; + * string ip = 1; + * @param value The ip to set. + * @return This builder for chaining. */ - public Builder setConfig( - agent.CollectorOuterClass.CollectorConfig.Builder builderForValue) { - if (configBuilder_ == null) { - streamMessage_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - streamMessageCase_ = 1; + public Builder setIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .agent.CollectorConfig config = 1; + * string ip = 1; + * @return This builder for chaining. */ - public Builder mergeConfig(agent.CollectorOuterClass.CollectorConfig value) { - if (configBuilder_ == null) { - if (streamMessageCase_ == 1 && - streamMessage_ != agent.CollectorOuterClass.CollectorConfig.getDefaultInstance()) { - streamMessage_ = agent.CollectorOuterClass.CollectorConfig.newBuilder((agent.CollectorOuterClass.CollectorConfig) streamMessage_) - .mergeFrom(value).buildPartial(); - } else { - streamMessage_ = value; - } - onChanged(); - } else { - if (streamMessageCase_ == 1) { - configBuilder_.mergeFrom(value); - } else { - configBuilder_.setMessage(value); - } - } - streamMessageCase_ = 1; + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } /** - * .agent.CollectorConfig config = 1; + * string ip = 1; + * @param value The bytes for ip to set. + * @return This builder for chaining. */ - public Builder clearConfig() { - if (configBuilder_ == null) { - if (streamMessageCase_ == 1) { - streamMessageCase_ = 0; - streamMessage_ = null; - onChanged(); - } - } else { - if (streamMessageCase_ == 1) { - streamMessageCase_ = 0; - streamMessage_ = null; - } - configBuilder_.clear(); - } + public Builder setIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } + + private java.lang.Object hostname_ = ""; /** - * .agent.CollectorConfig config = 1; + * string hostname = 2; + * @return The hostname. */ - public agent.CollectorOuterClass.CollectorConfig.Builder getConfigBuilder() { - return getConfigFieldBuilder().getBuilder(); + 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; + } } /** - * .agent.CollectorConfig config = 1; + * string hostname = 2; + * @return The bytes for hostname. */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigOrBuilder getConfigOrBuilder() { - if ((streamMessageCase_ == 1) && (configBuilder_ != null)) { - return configBuilder_.getMessageOrBuilder(); + 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 { - if (streamMessageCase_ == 1) { - return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; - } - return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); + return (com.google.protobuf.ByteString) ref; } } /** - * .agent.CollectorConfig config = 1; + * string hostname = 2; + * @param value The hostname to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfig, agent.CollectorOuterClass.CollectorConfig.Builder, agent.CollectorOuterClass.CollectorConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - if (!(streamMessageCase_ == 1)) { - streamMessage_ = agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); - } - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfig, agent.CollectorOuterClass.CollectorConfig.Builder, agent.CollectorOuterClass.CollectorConfigOrBuilder>( - (agent.CollectorOuterClass.CollectorConfig) streamMessage_, - getParentForChildren(), - isClean()); - streamMessage_ = null; - } - streamMessageCase_ = 1; + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + hostname_ = value; + bitField0_ |= 0x00000002; onChanged(); - return configBuilder_; + return this; } - - private com.google.protobuf.SingleFieldBuilderV3< - agent.CollectorOuterClass.ConfigKnowledge, agent.CollectorOuterClass.ConfigKnowledge.Builder, agent.CollectorOuterClass.ConfigKnowledgeOrBuilder> resultBuilder_; /** - * .agent.ConfigKnowledge result = 2; - * @return Whether the result field is set. + * string hostname = 2; + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasResult() { - return streamMessageCase_ == 2; + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } /** - * .agent.ConfigKnowledge result = 2; - * @return The result. + * string hostname = 2; + * @param value The bytes for hostname to set. + * @return This builder for chaining. */ - @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledge getResult() { - if (resultBuilder_ == null) { - if (streamMessageCase_ == 2) { - return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; - } - return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); - } else { - if (streamMessageCase_ == 2) { - return resultBuilder_.getMessage(); - } - return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + hostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } + + private java.lang.Object version_ = ""; /** - * .agent.ConfigKnowledge result = 2; + * string version = 3; + * @return The version. */ - public Builder setResult(agent.CollectorOuterClass.ConfigKnowledge value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamMessage_ = value; - onChanged(); + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; } else { - resultBuilder_.setMessage(value); + return (java.lang.String) ref; } - streamMessageCase_ = 2; - return this; } /** - * .agent.ConfigKnowledge result = 2; + * string version = 3; + * @return The bytes for version. */ - public Builder setResult( - agent.CollectorOuterClass.ConfigKnowledge.Builder builderForValue) { - if (resultBuilder_ == null) { - streamMessage_ = builderForValue.build(); - onChanged(); + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; } else { - resultBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - streamMessageCase_ = 2; + } + /** + * string version = 3; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } /** - * .agent.ConfigKnowledge result = 2; + * string version = 3; + * @return This builder for chaining. */ - public Builder mergeResult(agent.CollectorOuterClass.ConfigKnowledge value) { - if (resultBuilder_ == null) { - if (streamMessageCase_ == 2 && - streamMessage_ != agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance()) { - streamMessage_ = agent.CollectorOuterClass.ConfigKnowledge.newBuilder((agent.CollectorOuterClass.ConfigKnowledge) streamMessage_) - .mergeFrom(value).buildPartial(); - } else { - streamMessage_ = value; - } - onChanged(); - } else { - if (streamMessageCase_ == 2) { - resultBuilder_.mergeFrom(value); - } else { - resultBuilder_.setMessage(value); - } - } - streamMessageCase_ = 2; + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } /** - * .agent.ConfigKnowledge result = 2; + * string version = 3; + * @param value The bytes for version to set. + * @return This builder for chaining. */ - public Builder clearResult() { - if (resultBuilder_ == null) { - if (streamMessageCase_ == 2) { - streamMessageCase_ = 0; - streamMessage_ = null; - onChanged(); - } - } else { - if (streamMessageCase_ == 2) { - streamMessageCase_ = 0; - streamMessage_ = null; - } - resultBuilder_.clear(); - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } + + private int collector_ = 0; /** - * .agent.ConfigKnowledge result = 2; + * .agent.CollectorModule collector = 4; + * @return The enum numeric value on the wire for collector. */ - public agent.CollectorOuterClass.ConfigKnowledge.Builder getResultBuilder() { - return getResultFieldBuilder().getBuilder(); + @java.lang.Override public int getCollectorValue() { + return collector_; } /** - * .agent.ConfigKnowledge result = 2; + * .agent.CollectorModule collector = 4; + * @param value The enum numeric value on the wire for collector to set. + * @return This builder for chaining. + */ + public Builder setCollectorValue(int value) { + collector_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .agent.CollectorModule collector = 4; + * @return The collector. */ @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledgeOrBuilder getResultOrBuilder() { - if ((streamMessageCase_ == 2) && (resultBuilder_ != null)) { - return resultBuilder_.getMessageOrBuilder(); - } else { - if (streamMessageCase_ == 2) { - return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; - } - return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); - } + public agent.CollectorOuterClass.CollectorModule getCollector() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(collector_); + return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; } /** - * .agent.ConfigKnowledge result = 2; + * .agent.CollectorModule collector = 4; + * @param value The collector to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - agent.CollectorOuterClass.ConfigKnowledge, agent.CollectorOuterClass.ConfigKnowledge.Builder, agent.CollectorOuterClass.ConfigKnowledgeOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - if (!(streamMessageCase_ == 2)) { - streamMessage_ = agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); - } - resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - agent.CollectorOuterClass.ConfigKnowledge, agent.CollectorOuterClass.ConfigKnowledge.Builder, agent.CollectorOuterClass.ConfigKnowledgeOrBuilder>( - (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_, - getParentForChildren(), - isClean()); - streamMessage_ = null; + public Builder setCollector(agent.CollectorOuterClass.CollectorModule value) { + if (value == null) { + throw new NullPointerException(); } - streamMessageCase_ = 2; + bitField0_ |= 0x00000008; + collector_ = value.getNumber(); onChanged(); - return resultBuilder_; + return this; + } + /** + * .agent.CollectorModule collector = 4; + * @return This builder for chaining. + */ + public Builder clearCollector() { + bitField0_ = (bitField0_ & ~0x00000008); + collector_ = 0; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -989,23 +1015,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.CollectorMessages) + // @@protoc_insertion_point(builder_scope:agent.RegisterRequest) } - // @@protoc_insertion_point(class_scope:agent.CollectorMessages) - private static final agent.CollectorOuterClass.CollectorMessages DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.RegisterRequest) + private static final agent.CollectorOuterClass.RegisterRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorMessages(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.RegisterRequest(); } - public static agent.CollectorOuterClass.CollectorMessages getDefaultInstance() { + public static agent.CollectorOuterClass.RegisterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CollectorMessages parsePartialFrom( + public RegisterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1024,123 +1050,142 @@ public CollectorMessages parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.CollectorMessages getDefaultInstanceForType() { + public agent.CollectorOuterClass.RegisterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CollectorHostnamesOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorHostnames) + public interface ListCollectorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.ListCollectorResponse) com.google.protobuf.MessageOrBuilder { /** - * repeated string hostname = 1; - * @return A list containing the hostname. + * repeated .agent.Collector rows = 1; */ - java.util.List - getHostnameList(); + java.util.List + getRowsList(); /** - * repeated string hostname = 1; - * @return The count of hostname. + * repeated .agent.Collector rows = 1; */ - int getHostnameCount(); + agent.CollectorOuterClass.Collector getRows(int index); /** - * repeated string hostname = 1; - * @param index The index of the element to return. - * @return The hostname at the given index. + * repeated .agent.Collector rows = 1; */ - java.lang.String getHostname(int index); + int getRowsCount(); /** - * repeated string hostname = 1; - * @param index The index of the value to return. - * @return The bytes of the hostname at the given index. + * repeated .agent.Collector rows = 1; */ - com.google.protobuf.ByteString - getHostnameBytes(int index); + java.util.List + getRowsOrBuilderList(); + /** + * repeated .agent.Collector rows = 1; + */ + agent.CollectorOuterClass.CollectorOrBuilder getRowsOrBuilder( + int index); + + /** + * int32 total = 2; + * @return The total. + */ + int getTotal(); } /** - * Protobuf type {@code agent.CollectorHostnames} + * Protobuf type {@code agent.ListCollectorResponse} */ - public static final class CollectorHostnames extends + public static final class ListCollectorResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorHostnames) - CollectorHostnamesOrBuilder { + // @@protoc_insertion_point(message_implements:agent.ListCollectorResponse) + ListCollectorResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use CollectorHostnames.newBuilder() to construct. - private CollectorHostnames(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ListCollectorResponse.newBuilder() to construct. + private ListCollectorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CollectorHostnames() { - hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private ListCollectorResponse() { + rows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CollectorHostnames(); + return new ListCollectorResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; + return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorHostnames.class, agent.CollectorOuterClass.CollectorHostnames.Builder.class); + agent.CollectorOuterClass.ListCollectorResponse.class, agent.CollectorOuterClass.ListCollectorResponse.Builder.class); } - public static final int HOSTNAME_FIELD_NUMBER = 1; + public static final int ROWS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private java.util.List rows_; /** - * repeated string hostname = 1; - * @return A list containing the hostname. + * repeated .agent.Collector rows = 1; */ - public com.google.protobuf.ProtocolStringList - getHostnameList() { - return hostname_; + @java.lang.Override + public java.util.List getRowsList() { + return rows_; } /** - * repeated string hostname = 1; - * @return The count of hostname. + * repeated .agent.Collector rows = 1; */ - public int getHostnameCount() { - return hostname_.size(); + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; } /** - * repeated string hostname = 1; - * @param index The index of the element to return. - * @return The hostname at the given index. + * repeated .agent.Collector rows = 1; */ - public java.lang.String getHostname(int index) { - return hostname_.get(index); + @java.lang.Override + public int getRowsCount() { + return rows_.size(); } /** - * repeated string hostname = 1; - * @param index The index of the value to return. - * @return The bytes of the hostname at the given index. + * repeated .agent.Collector rows = 1; */ - public com.google.protobuf.ByteString - getHostnameBytes(int index) { - return hostname_.getByteString(index); + @java.lang.Override + public agent.CollectorOuterClass.Collector getRows(int index) { + return rows_.get(index); + } + /** + * repeated .agent.Collector rows = 1; + */ + @java.lang.Override + public agent.CollectorOuterClass.CollectorOrBuilder getRowsOrBuilder( + int index) { + return rows_.get(index); + } + + public static final int TOTAL_FIELD_NUMBER = 2; + private int total_ = 0; + /** + * int32 total = 2; + * @return The total. + */ + @java.lang.Override + public int getTotal() { + return total_; } private byte memoizedIsInitialized = -1; @@ -1157,8 +1202,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < hostname_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_.getRaw(i)); + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(1, rows_.get(i)); + } + if (total_ != 0) { + output.writeInt32(2, total_); } getUnknownFields().writeTo(output); } @@ -1169,13 +1217,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - { - int dataSize = 0; - for (int i = 0; i < hostname_.size(); i++) { - dataSize += computeStringSizeNoTag(hostname_.getRaw(i)); - } - size += dataSize; - size += 1 * getHostnameList().size(); + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rows_.get(i)); + } + if (total_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, total_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1187,13 +1235,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.CollectorHostnames)) { + if (!(obj instanceof agent.CollectorOuterClass.ListCollectorResponse)) { return super.equals(obj); } - agent.CollectorOuterClass.CollectorHostnames other = (agent.CollectorOuterClass.CollectorHostnames) obj; + agent.CollectorOuterClass.ListCollectorResponse other = (agent.CollectorOuterClass.ListCollectorResponse) obj; - if (!getHostnameList() - .equals(other.getHostnameList())) return false; + if (!getRowsList() + .equals(other.getRowsList())) return false; + if (getTotal() + != other.getTotal()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1205,53 +1255,55 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getHostnameCount() > 0) { - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostnameList().hashCode(); + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); } + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getTotal(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom(byte[] data) + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1259,26 +1311,26 @@ public static agent.CollectorOuterClass.CollectorHostnames parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorHostnames parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.ListCollectorResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorHostnames parseDelimitedFrom( + public static agent.CollectorOuterClass.ListCollectorResponse 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 agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( + public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1291,7 +1343,7 @@ public static agent.CollectorOuterClass.CollectorHostnames parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.CollectorHostnames prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.ListCollectorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1307,26 +1359,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.CollectorHostnames} + * Protobuf type {@code agent.ListCollectorResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorHostnames) - agent.CollectorOuterClass.CollectorHostnamesOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.ListCollectorResponse) + agent.CollectorOuterClass.ListCollectorResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; + return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorHostnames.class, agent.CollectorOuterClass.CollectorHostnames.Builder.class); + agent.CollectorOuterClass.ListCollectorResponse.class, agent.CollectorOuterClass.ListCollectorResponse.Builder.class); } - // Construct using agent.CollectorOuterClass.CollectorHostnames.newBuilder() + // Construct using agent.CollectorOuterClass.ListCollectorResponse.newBuilder() private Builder() { } @@ -1340,25 +1392,31 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + } else { + rows_ = null; + rowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + total_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; + return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance(); + public agent.CollectorOuterClass.ListCollectorResponse getDefaultInstanceForType() { + return agent.CollectorOuterClass.ListCollectorResponse.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames build() { - agent.CollectorOuterClass.CollectorHostnames result = buildPartial(); + public agent.CollectorOuterClass.ListCollectorResponse build() { + agent.CollectorOuterClass.ListCollectorResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1366,18 +1424,30 @@ public agent.CollectorOuterClass.CollectorHostnames build() { } @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames buildPartial() { - agent.CollectorOuterClass.CollectorHostnames result = new agent.CollectorOuterClass.CollectorHostnames(this); + public agent.CollectorOuterClass.ListCollectorResponse buildPartial() { + agent.CollectorOuterClass.ListCollectorResponse result = new agent.CollectorOuterClass.ListCollectorResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(agent.CollectorOuterClass.CollectorHostnames result) { + private void buildPartialRepeatedFields(agent.CollectorOuterClass.ListCollectorResponse result) { + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + } + + private void buildPartial0(agent.CollectorOuterClass.ListCollectorResponse result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - hostname_.makeImmutable(); - result.hostname_ = hostname_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; } } @@ -1415,25 +1485,44 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.CollectorHostnames) { - return mergeFrom((agent.CollectorOuterClass.CollectorHostnames)other); + if (other instanceof agent.CollectorOuterClass.ListCollectorResponse) { + return mergeFrom((agent.CollectorOuterClass.ListCollectorResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.CollectorHostnames other) { - if (other == agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance()) return this; - if (!other.hostname_.isEmpty()) { - if (hostname_.isEmpty()) { - hostname_ = other.hostname_; - bitField0_ |= 0x00000001; - } else { - ensureHostnameIsMutable(); - hostname_.addAll(other.hostname_); + public Builder mergeFrom(agent.CollectorOuterClass.ListCollectorResponse other) { + if (other == agent.CollectorOuterClass.ListCollectorResponse.getDefaultInstance()) return this; + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); } - onChanged(); + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000001); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowsFieldBuilder() : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (other.getTotal() != 0) { + setTotal(other.getTotal()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1462,11 +1551,23 @@ public Builder mergeFrom( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureHostnameIsMutable(); - hostname_.add(s); + agent.CollectorOuterClass.Collector m = + input.readMessage( + agent.CollectorOuterClass.Collector.parser(), + extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } break; } // case 10 + case 16: { + total_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1484,249 +1585,587 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.LazyStringArrayList hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureHostnameIsMutable() { - if (!hostname_.isModifiable()) { - hostname_ = new com.google.protobuf.LazyStringArrayList(hostname_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string hostname = 1; - * @return A list containing the hostname. - */ - public com.google.protobuf.ProtocolStringList - getHostnameList() { - hostname_.makeImmutable(); - return hostname_; + private java.util.List rows_ = + java.util.Collections.emptyList(); + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilderV3< + agent.CollectorOuterClass.Collector, agent.CollectorOuterClass.Collector.Builder, agent.CollectorOuterClass.CollectorOrBuilder> rowsBuilder_; + /** - * repeated string hostname = 1; - * @return The count of hostname. + * repeated .agent.Collector rows = 1; */ - public int getHostnameCount() { - return hostname_.size(); + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } } /** - * repeated string hostname = 1; - * @param index The index of the element to return. - * @return The hostname at the given index. + * repeated .agent.Collector rows = 1; */ - public java.lang.String getHostname(int index) { - return hostname_.get(index); + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } } /** - * repeated string hostname = 1; - * @param index The index of the value to return. - * @return The bytes of the hostname at the given index. + * repeated .agent.Collector rows = 1; */ - public com.google.protobuf.ByteString - getHostnameBytes(int index) { - return hostname_.getByteString(index); + public agent.CollectorOuterClass.Collector getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } } /** - * repeated string hostname = 1; - * @param index The index to set the value at. - * @param value The hostname to set. - * @return This builder for chaining. + * repeated .agent.Collector rows = 1; */ - public Builder setHostname( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureHostnameIsMutable(); - hostname_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); + public Builder setRows( + int index, agent.CollectorOuterClass.Collector value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } return this; } /** - * repeated string hostname = 1; - * @param value The hostname to add. - * @return This builder for chaining. + * repeated .agent.Collector rows = 1; */ - public Builder addHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureHostnameIsMutable(); - hostname_.add(value); - bitField0_ |= 0x00000001; - onChanged(); + public Builder setRows( + int index, agent.CollectorOuterClass.Collector.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** - * repeated string hostname = 1; - * @param values The hostname to add. - * @return This builder for chaining. + * repeated .agent.Collector rows = 1; */ - public Builder addAllHostname( - java.lang.Iterable values) { - ensureHostnameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hostname_); - bitField0_ |= 0x00000001; - onChanged(); + public Builder addRows(agent.CollectorOuterClass.Collector value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } return this; } /** - * repeated string hostname = 1; - * @return This builder for chaining. + * repeated .agent.Collector rows = 1; */ - public Builder clearHostname() { - hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); + public Builder addRows( + int index, agent.CollectorOuterClass.Collector value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } return this; } /** - * repeated string hostname = 1; - * @param value The bytes of the hostname to add. - * @return This builder for chaining. + * repeated .agent.Collector rows = 1; */ - public Builder addHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureHostnameIsMutable(); - hostname_.add(value); - bitField0_ |= 0x00000001; - onChanged(); + public Builder addRows( + agent.CollectorOuterClass.Collector.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + * repeated .agent.Collector rows = 1; + */ + public Builder addRows( + int index, agent.CollectorOuterClass.Collector.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + /** + * repeated .agent.Collector rows = 1; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; } - - - // @@protoc_insertion_point(builder_scope:agent.CollectorHostnames) - } - - // @@protoc_insertion_point(class_scope:agent.CollectorHostnames) - private static final agent.CollectorOuterClass.CollectorHostnames DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorHostnames(); - } - - public static agent.CollectorOuterClass.CollectorHostnames getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectorHostnames 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()); + /** + * repeated .agent.Collector rows = 1; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rowsBuilder_.clear(); } - return builder.buildPartial(); + return this; } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FilterByHostAndModuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.FilterByHostAndModule) + /** + * repeated .agent.Collector rows = 1; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * repeated .agent.Collector rows = 1; + */ + public agent.CollectorOuterClass.Collector.Builder getRowsBuilder( + int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * repeated .agent.Collector rows = 1; + */ + public agent.CollectorOuterClass.CollectorOrBuilder getRowsOrBuilder( + int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .agent.Collector rows = 1; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * repeated .agent.Collector rows = 1; + */ + public agent.CollectorOuterClass.Collector.Builder addRowsBuilder() { + return getRowsFieldBuilder().addBuilder( + agent.CollectorOuterClass.Collector.getDefaultInstance()); + } + /** + * repeated .agent.Collector rows = 1; + */ + public agent.CollectorOuterClass.Collector.Builder addRowsBuilder( + int index) { + return getRowsFieldBuilder().addBuilder( + index, agent.CollectorOuterClass.Collector.getDefaultInstance()); + } + /** + * repeated .agent.Collector rows = 1; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + agent.CollectorOuterClass.Collector, agent.CollectorOuterClass.Collector.Builder, agent.CollectorOuterClass.CollectorOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + agent.CollectorOuterClass.Collector, agent.CollectorOuterClass.Collector.Builder, agent.CollectorOuterClass.CollectorOrBuilder>( + rows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private int total_ ; + /** + * int32 total = 2; + * @return The total. + */ + @java.lang.Override + public int getTotal() { + return total_; + } + /** + * int32 total = 2; + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(int value) { + + total_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 total = 2; + * @return This builder for chaining. + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000002); + total_ = 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:agent.ListCollectorResponse) + } + + // @@protoc_insertion_point(class_scope:agent.ListCollectorResponse) + private static final agent.CollectorOuterClass.ListCollectorResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new agent.CollectorOuterClass.ListCollectorResponse(); + } + + public static agent.CollectorOuterClass.ListCollectorResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCollectorResponse 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 agent.CollectorOuterClass.ListCollectorResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CollectorOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.Collector) com.google.protobuf.MessageOrBuilder { /** - * string hostname = 1; + * int32 id = 1; + * @return The id. + */ + int getId(); + + /** + * .agent.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .agent.Status status = 2; + * @return The status. + */ + agent.Common.Status getStatus(); + + /** + * string collector_key = 3; + * @return The collectorKey. + */ + java.lang.String getCollectorKey(); + /** + * string collector_key = 3; + * @return The bytes for collectorKey. + */ + com.google.protobuf.ByteString + getCollectorKeyBytes(); + + /** + * string ip = 4; + * @return The ip. + */ + java.lang.String getIp(); + /** + * string ip = 4; + * @return The bytes for ip. + */ + com.google.protobuf.ByteString + getIpBytes(); + + /** + * string hostname = 5; * @return The hostname. */ java.lang.String getHostname(); /** - * string hostname = 1; + * string hostname = 5; * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); /** - * .agent.CollectorModule module = 2; + * string version = 6; + * @return The version. + */ + java.lang.String getVersion(); + /** + * string version = 6; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * .agent.CollectorModule module = 7; * @return The enum numeric value on the wire for module. */ int getModuleValue(); /** - * .agent.CollectorModule module = 2; + * .agent.CollectorModule module = 7; * @return The module. */ agent.CollectorOuterClass.CollectorModule getModule(); + + /** + * string last_seen = 8; + * @return The lastSeen. + */ + java.lang.String getLastSeen(); + /** + * string last_seen = 8; + * @return The bytes for lastSeen. + */ + com.google.protobuf.ByteString + getLastSeenBytes(); } /** - * Protobuf type {@code agent.FilterByHostAndModule} + * Protobuf type {@code agent.Collector} */ - public static final class FilterByHostAndModule extends + public static final class Collector extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.FilterByHostAndModule) - FilterByHostAndModuleOrBuilder { + // @@protoc_insertion_point(message_implements:agent.Collector) + CollectorOrBuilder { private static final long serialVersionUID = 0L; - // Use FilterByHostAndModule.newBuilder() to construct. - private FilterByHostAndModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Collector.newBuilder() to construct. + private Collector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FilterByHostAndModule() { + private Collector() { + status_ = 0; + collectorKey_ = ""; + ip_ = ""; hostname_ = ""; + version_ = ""; module_ = 0; + lastSeen_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new FilterByHostAndModule(); + return new Collector(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; + return agent.CollectorOuterClass.internal_static_agent_Collector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_Collector_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.FilterByHostAndModule.class, agent.CollectorOuterClass.FilterByHostAndModule.Builder.class); + agent.CollectorOuterClass.Collector.class, agent.CollectorOuterClass.Collector.Builder.class); } - public static final int HOSTNAME_FIELD_NUMBER = 1; + public static final int ID_FIELD_NUMBER = 1; + private int id_ = 0; + /** + * int32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_ = 0; + /** + * .agent.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + * .agent.Status status = 2; + * @return The status. + */ + @java.lang.Override public agent.Common.Status getStatus() { + agent.Common.Status result = agent.Common.Status.forNumber(status_); + return result == null ? agent.Common.Status.UNRECOGNIZED : result; + } + + public static final int COLLECTOR_KEY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object collectorKey_ = ""; + /** + * string collector_key = 3; + * @return The collectorKey. + */ + @java.lang.Override + public java.lang.String getCollectorKey() { + java.lang.Object ref = collectorKey_; + 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(); + collectorKey_ = s; + return s; + } + } + /** + * string collector_key = 3; + * @return The bytes for collectorKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCollectorKeyBytes() { + java.lang.Object ref = collectorKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + collectorKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object ip_ = ""; + /** + * string ip = 4; + * @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 = 4; + * @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 HOSTNAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * string hostname = 1; + * string hostname = 5; * @return The hostname. */ @java.lang.Override @@ -1743,7 +2182,7 @@ public java.lang.String getHostname() { } } /** - * string hostname = 1; + * string hostname = 5; * @return The bytes for hostname. */ @java.lang.Override @@ -1761,17 +2200,56 @@ public java.lang.String getHostname() { } } - public static final int MODULE_FIELD_NUMBER = 2; + public static final int VERSION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + * string version = 6; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 6; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODULE_FIELD_NUMBER = 7; private int module_ = 0; /** - * .agent.CollectorModule module = 2; + * .agent.CollectorModule module = 7; * @return The enum numeric value on the wire for module. */ @java.lang.Override public int getModuleValue() { return module_; } /** - * .agent.CollectorModule module = 2; + * .agent.CollectorModule module = 7; * @return The module. */ @java.lang.Override public agent.CollectorOuterClass.CollectorModule getModule() { @@ -1779,6 +2257,45 @@ public java.lang.String getHostname() { return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; } + public static final int LAST_SEEN_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object lastSeen_ = ""; + /** + * string last_seen = 8; + * @return The lastSeen. + */ + @java.lang.Override + public java.lang.String getLastSeen() { + java.lang.Object ref = lastSeen_; + 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(); + lastSeen_ = s; + return s; + } + } + /** + * string last_seen = 8; + * @return The bytes for lastSeen. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLastSeenBytes() { + java.lang.Object ref = lastSeen_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + lastSeen_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1793,11 +2310,29 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (id_ != 0) { + output.writeInt32(1, id_); + } + if (status_ != agent.Common.Status.ONLINE.getNumber()) { + output.writeEnum(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collectorKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ip_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); } if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - output.writeEnum(2, module_); + output.writeEnum(7, module_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSeen_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, lastSeen_); } getUnknownFields().writeTo(output); } @@ -1808,12 +2343,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, id_); + } + if (status_ != agent.Common.Status.ONLINE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collectorKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ip_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); } if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, module_); + .computeEnumSize(7, module_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSeen_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, lastSeen_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1825,14 +2380,25 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.FilterByHostAndModule)) { + if (!(obj instanceof agent.CollectorOuterClass.Collector)) { return super.equals(obj); } - agent.CollectorOuterClass.FilterByHostAndModule other = (agent.CollectorOuterClass.FilterByHostAndModule) obj; + agent.CollectorOuterClass.Collector other = (agent.CollectorOuterClass.Collector) obj; + if (getId() + != other.getId()) return false; + if (status_ != other.status_) return false; + if (!getCollectorKey() + .equals(other.getCollectorKey())) return false; + if (!getIp() + .equals(other.getIp())) return false; if (!getHostname() .equals(other.getHostname())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (module_ != other.module_) return false; + if (!getLastSeen() + .equals(other.getLastSeen())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1844,53 +2410,65 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + COLLECTOR_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCollectorKey().hashCode(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + MODULE_FIELD_NUMBER; hash = (53 * hash) + module_; + hash = (37 * hash) + LAST_SEEN_FIELD_NUMBER; + hash = (53 * hash) + getLastSeen().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom(byte[] data) + public static agent.CollectorOuterClass.Collector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.Collector parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1898,26 +2476,26 @@ public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.Collector parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseDelimitedFrom( + public static agent.CollectorOuterClass.Collector 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 agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( + public static agent.CollectorOuterClass.Collector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1930,7 +2508,7 @@ public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.FilterByHostAndModule prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.Collector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1946,26 +2524,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.FilterByHostAndModule} + * Protobuf type {@code agent.Collector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.FilterByHostAndModule) - agent.CollectorOuterClass.FilterByHostAndModuleOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.Collector) + agent.CollectorOuterClass.CollectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; + return agent.CollectorOuterClass.internal_static_agent_Collector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_Collector_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.FilterByHostAndModule.class, agent.CollectorOuterClass.FilterByHostAndModule.Builder.class); + agent.CollectorOuterClass.Collector.class, agent.CollectorOuterClass.Collector.Builder.class); } - // Construct using agent.CollectorOuterClass.FilterByHostAndModule.newBuilder() + // Construct using agent.CollectorOuterClass.Collector.newBuilder() private Builder() { } @@ -1979,25 +2557,31 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; + id_ = 0; + status_ = 0; + collectorKey_ = ""; + ip_ = ""; hostname_ = ""; + version_ = ""; module_ = 0; + lastSeen_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; + return agent.CollectorOuterClass.internal_static_agent_Collector_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstanceForType() { - return agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance(); + public agent.CollectorOuterClass.Collector getDefaultInstanceForType() { + return agent.CollectorOuterClass.Collector.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.FilterByHostAndModule build() { - agent.CollectorOuterClass.FilterByHostAndModule result = buildPartial(); + public agent.CollectorOuterClass.Collector build() { + agent.CollectorOuterClass.Collector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2005,21 +2589,39 @@ public agent.CollectorOuterClass.FilterByHostAndModule build() { } @java.lang.Override - public agent.CollectorOuterClass.FilterByHostAndModule buildPartial() { - agent.CollectorOuterClass.FilterByHostAndModule result = new agent.CollectorOuterClass.FilterByHostAndModule(this); + public agent.CollectorOuterClass.Collector buildPartial() { + agent.CollectorOuterClass.Collector result = new agent.CollectorOuterClass.Collector(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(agent.CollectorOuterClass.FilterByHostAndModule result) { + private void buildPartial0(agent.CollectorOuterClass.Collector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.hostname_ = hostname_; + result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.collectorKey_ = collectorKey_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ip_ = ip_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.module_ = module_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lastSeen_ = lastSeen_; + } } @java.lang.Override @@ -2056,24 +2658,50 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.FilterByHostAndModule) { - return mergeFrom((agent.CollectorOuterClass.FilterByHostAndModule)other); + if (other instanceof agent.CollectorOuterClass.Collector) { + return mergeFrom((agent.CollectorOuterClass.Collector)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.FilterByHostAndModule other) { - if (other == agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance()) return this; + public Builder mergeFrom(agent.CollectorOuterClass.Collector other) { + if (other == agent.CollectorOuterClass.Collector.getDefaultInstance()) return this; + if (other.getId() != 0) { + setId(other.getId()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getCollectorKey().isEmpty()) { + collectorKey_ = other.collectorKey_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000008; + onChanged(); + } if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000020; onChanged(); } if (other.module_ != 0) { setModuleValue(other.getModuleValue()); } + if (!other.getLastSeen().isEmpty()) { + lastSeen_ = other.lastSeen_; + bitField0_ |= 0x00000080; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2100,16 +2728,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); + case 8: { + id_ = input.readInt32(); bitField0_ |= 0x00000001; break; - } // case 10 + } // case 8 case 16: { - module_ = input.readEnum(); + status_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 + case 26: { + collectorKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + module_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + lastSeen_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2127,827 +2785,500 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object hostname_ = ""; - /** - * string hostname = 1; - * @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; - } - } + private int id_ ; /** - * string hostname = 1; - * @return The bytes for hostname. + * int32 id = 1; + * @return The id. */ - 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; - } + @java.lang.Override + public int getId() { + return id_; } /** - * string hostname = 1; - * @param value The hostname to set. + * int32 id = 1; + * @param value The id to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - hostname_ = value; + public Builder setId(int value) { + + id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string hostname = 1; + * int32 id = 1; * @return This builder for chaining. */ - public Builder clearHostname() { - hostname_ = getDefaultInstance().getHostname(); + public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; onChanged(); return this; } + + private int status_ = 0; /** - * string hostname = 1; - * @param value The bytes for hostname to set. - * @return This builder for chaining. + * .agent.Status status = 2; + * @return The enum numeric value on the wire for status. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - hostname_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override public int getStatusValue() { + return status_; } - - private int module_ = 0; /** - * .agent.CollectorModule module = 2; - * @return The enum numeric value on the wire for module. - */ - @java.lang.Override public int getModuleValue() { - return module_; - } - /** - * .agent.CollectorModule module = 2; - * @param value The enum numeric value on the wire for module to set. + * .agent.Status status = 2; + * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ - public Builder setModuleValue(int value) { - module_ = value; + public Builder setStatusValue(int value) { + status_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * .agent.CollectorModule module = 2; - * @return The module. + * .agent.Status status = 2; + * @return The status. */ @java.lang.Override - public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; + public agent.Common.Status getStatus() { + agent.Common.Status result = agent.Common.Status.forNumber(status_); + return result == null ? agent.Common.Status.UNRECOGNIZED : result; } /** - * .agent.CollectorModule module = 2; - * @param value The module to set. + * .agent.Status status = 2; + * @param value The status to set. * @return This builder for chaining. */ - public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { + public Builder setStatus(agent.Common.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - module_ = value.getNumber(); + status_ = value.getNumber(); onChanged(); return this; } /** - * .agent.CollectorModule module = 2; + * .agent.Status status = 2; * @return This builder for chaining. */ - public Builder clearModule() { + public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); - module_ = 0; + status_ = 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); + private java.lang.Object collectorKey_ = ""; + /** + * string collector_key = 3; + * @return The collectorKey. + */ + public java.lang.String getCollectorKey() { + java.lang.Object ref = collectorKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectorKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - - // @@protoc_insertion_point(builder_scope:agent.FilterByHostAndModule) - } - - // @@protoc_insertion_point(class_scope:agent.FilterByHostAndModule) - private static final agent.CollectorOuterClass.FilterByHostAndModule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.FilterByHostAndModule(); - } - - public static agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilterByHostAndModule 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()); + /** + * string collector_key = 3; + * @return The bytes for collectorKey. + */ + public com.google.protobuf.ByteString + getCollectorKeyBytes() { + java.lang.Object ref = collectorKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + collectorKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - 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 agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigKnowledgeOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.ConfigKnowledge) - com.google.protobuf.MessageOrBuilder { - - /** - * string accepted = 1; - * @return The accepted. - */ - java.lang.String getAccepted(); - /** - * string accepted = 1; - * @return The bytes for accepted. - */ - com.google.protobuf.ByteString - getAcceptedBytes(); - - /** - * string request_id = 2; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * string request_id = 2; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - } - /** - * Protobuf type {@code agent.ConfigKnowledge} - */ - public static final class ConfigKnowledge extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.ConfigKnowledge) - ConfigKnowledgeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigKnowledge.newBuilder() to construct. - private ConfigKnowledge(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigKnowledge() { - accepted_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfigKnowledge(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.ConfigKnowledge.class, agent.CollectorOuterClass.ConfigKnowledge.Builder.class); - } - - public static final int ACCEPTED_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object accepted_ = ""; - /** - * string accepted = 1; - * @return The accepted. - */ - @java.lang.Override - public java.lang.String getAccepted() { - java.lang.Object ref = accepted_; - 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(); - accepted_ = s; - return s; + /** + * string collector_key = 3; + * @param value The collectorKey to set. + * @return This builder for chaining. + */ + public Builder setCollectorKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + collectorKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - } - /** - * string accepted = 1; - * @return The bytes for accepted. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAcceptedBytes() { - java.lang.Object ref = accepted_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accepted_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * string collector_key = 3; + * @return This builder for chaining. + */ + public Builder clearCollectorKey() { + collectorKey_ = getDefaultInstance().getCollectorKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - * string request_id = 2; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * string request_id = 2; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * string collector_key = 3; + * @param value The bytes for collectorKey to set. + * @return This builder for chaining. + */ + public Builder setCollectorKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + collectorKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - } - - 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(accepted_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accepted_); + private java.lang.Object ip_ = ""; + /** + * string ip = 4; + * @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; + } } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + /** + * string ip = 4; + * @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; + } } - 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(accepted_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accepted_); + /** + * string ip = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + /** + * string ip = 4; + * @return This builder for chaining. + */ + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string ip = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + private java.lang.Object hostname_ = ""; + /** + * string hostname = 5; + * @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; + } } - if (!(obj instanceof agent.CollectorOuterClass.ConfigKnowledge)) { - return super.equals(obj); + /** + * string hostname = 5; + * @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; + } } - agent.CollectorOuterClass.ConfigKnowledge other = (agent.CollectorOuterClass.ConfigKnowledge) obj; - - if (!getAccepted() - .equals(other.getAccepted())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * string hostname = 5; + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string hostname = 5; + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string hostname = 5; + * @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_ |= 0x00000010; + onChanged(); + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCEPTED_FIELD_NUMBER; - hash = (53 * hash) + getAccepted().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.ConfigKnowledge parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.ConfigKnowledge 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 agent.CollectorOuterClass.ConfigKnowledge parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static agent.CollectorOuterClass.ConfigKnowledge 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 agent.CollectorOuterClass.ConfigKnowledge parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.ConfigKnowledge 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(agent.CollectorOuterClass.ConfigKnowledge 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 agent.ConfigKnowledge} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.ConfigKnowledge) - agent.CollectorOuterClass.ConfigKnowledgeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.ConfigKnowledge.class, agent.CollectorOuterClass.ConfigKnowledge.Builder.class); + private java.lang.Object version_ = ""; + /** + * string version = 6; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - // Construct using agent.CollectorOuterClass.ConfigKnowledge.newBuilder() - private Builder() { - + /** + * string version = 6; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - + /** + * string version = 6; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - accepted_ = ""; - requestId_ = ""; + /** + * string version = 6; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_descriptor; + /** + * string version = 6; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledge getDefaultInstanceForType() { - return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); + private int module_ = 0; + /** + * .agent.CollectorModule module = 7; + * @return The enum numeric value on the wire for module. + */ + @java.lang.Override public int getModuleValue() { + return module_; } - - @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledge build() { - agent.CollectorOuterClass.ConfigKnowledge result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * .agent.CollectorModule module = 7; + * @param value The enum numeric value on the wire for module to set. + * @return This builder for chaining. + */ + public Builder setModuleValue(int value) { + module_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } - + /** + * .agent.CollectorModule module = 7; + * @return The module. + */ @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledge buildPartial() { - agent.CollectorOuterClass.ConfigKnowledge result = new agent.CollectorOuterClass.ConfigKnowledge(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; + public agent.CollectorOuterClass.CollectorModule getModule() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); + return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; } - - private void buildPartial0(agent.CollectorOuterClass.ConfigKnowledge result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.accepted_ = accepted_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestId_ = requestId_; + /** + * .agent.CollectorModule module = 7; + * @param value The module to set. + * @return This builder for chaining. + */ + public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000040; + module_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .agent.CollectorModule module = 7; + * @return This builder for chaining. + */ + public Builder clearModule() { + bitField0_ = (bitField0_ & ~0x00000040); + module_ = 0; + onChanged(); + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @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 agent.CollectorOuterClass.ConfigKnowledge) { - return mergeFrom((agent.CollectorOuterClass.ConfigKnowledge)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(agent.CollectorOuterClass.ConfigKnowledge other) { - if (other == agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance()) return this; - if (!other.getAccepted().isEmpty()) { - accepted_ = other.accepted_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000002; - 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: { - accepted_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object accepted_ = ""; - /** - * string accepted = 1; - * @return The accepted. - */ - public java.lang.String getAccepted() { - java.lang.Object ref = accepted_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accepted_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string accepted = 1; - * @return The bytes for accepted. - */ - public com.google.protobuf.ByteString - getAcceptedBytes() { - java.lang.Object ref = accepted_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accepted_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string accepted = 1; - * @param value The accepted to set. - * @return This builder for chaining. - */ - public Builder setAccepted( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - accepted_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string accepted = 1; - * @return This builder for chaining. - */ - public Builder clearAccepted() { - accepted_ = getDefaultInstance().getAccepted(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string accepted = 1; - * @param value The bytes for accepted to set. - * @return This builder for chaining. - */ - public Builder setAcceptedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - accepted_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; + private java.lang.Object lastSeen_ = ""; /** - * string request_id = 2; - * @return The requestId. + * string last_seen = 8; + * @return The lastSeen. */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; + public java.lang.String getLastSeen() { + java.lang.Object ref = lastSeen_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - requestId_ = s; + lastSeen_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string request_id = 2; - * @return The bytes for requestId. + * string last_seen = 8; + * @return The bytes for lastSeen. */ public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; + getLastSeenBytes() { + java.lang.Object ref = lastSeen_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - requestId_ = b; + lastSeen_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string request_id = 2; - * @param value The requestId to set. + * string last_seen = 8; + * @param value The lastSeen to set. * @return This builder for chaining. */ - public Builder setRequestId( + public Builder setLastSeen( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - requestId_ = value; - bitField0_ |= 0x00000002; + lastSeen_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * string request_id = 2; + * string last_seen = 8; * @return This builder for chaining. */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearLastSeen() { + lastSeen_ = getDefaultInstance().getLastSeen(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** - * string request_id = 2; - * @param value The bytes for requestId to set. + * string last_seen = 8; + * @param value The bytes for lastSeen to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( + public Builder setLastSeenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000002; + lastSeen_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2964,23 +3295,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.ConfigKnowledge) + // @@protoc_insertion_point(builder_scope:agent.Collector) } - // @@protoc_insertion_point(class_scope:agent.ConfigKnowledge) - private static final agent.CollectorOuterClass.ConfigKnowledge DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.Collector) + private static final agent.CollectorOuterClass.Collector DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.ConfigKnowledge(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.Collector(); } - public static agent.CollectorOuterClass.ConfigKnowledge getDefaultInstance() { + public static agent.CollectorOuterClass.Collector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ConfigKnowledge parsePartialFrom( + public Collector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2999,245 +3330,195 @@ public ConfigKnowledge parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.ConfigKnowledge getDefaultInstanceForType() { + public agent.CollectorOuterClass.Collector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RegisterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.RegisterRequest) + public interface CollectorMessagesOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.CollectorMessages) com.google.protobuf.MessageOrBuilder { /** - * string ip = 1; - * @return The ip. + * .agent.CollectorConfig config = 1; + * @return Whether the config field is set. */ - java.lang.String getIp(); + boolean hasConfig(); /** - * string ip = 1; - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - * string hostname = 2; - * @return The hostname. + * .agent.CollectorConfig config = 1; + * @return The config. */ - java.lang.String getHostname(); + agent.CollectorOuterClass.CollectorConfig getConfig(); /** - * string hostname = 2; - * @return The bytes for hostname. + * .agent.CollectorConfig config = 1; */ - com.google.protobuf.ByteString - getHostnameBytes(); + agent.CollectorOuterClass.CollectorConfigOrBuilder getConfigOrBuilder(); /** - * string version = 3; - * @return The version. - */ - java.lang.String getVersion(); - /** - * string version = 3; - * @return The bytes for version. + * .agent.ConfigKnowledge result = 2; + * @return Whether the result field is set. */ - com.google.protobuf.ByteString - getVersionBytes(); - + boolean hasResult(); /** - * .agent.CollectorModule collector = 4; - * @return The enum numeric value on the wire for collector. + * .agent.ConfigKnowledge result = 2; + * @return The result. */ - int getCollectorValue(); + agent.CollectorOuterClass.ConfigKnowledge getResult(); /** - * .agent.CollectorModule collector = 4; - * @return The collector. + * .agent.ConfigKnowledge result = 2; */ - agent.CollectorOuterClass.CollectorModule getCollector(); + agent.CollectorOuterClass.ConfigKnowledgeOrBuilder getResultOrBuilder(); + + agent.CollectorOuterClass.CollectorMessages.StreamMessageCase getStreamMessageCase(); } /** - * Protobuf type {@code agent.RegisterRequest} + * Protobuf type {@code agent.CollectorMessages} */ - public static final class RegisterRequest extends + public static final class CollectorMessages extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.RegisterRequest) - RegisterRequestOrBuilder { + // @@protoc_insertion_point(message_implements:agent.CollectorMessages) + CollectorMessagesOrBuilder { private static final long serialVersionUID = 0L; - // Use RegisterRequest.newBuilder() to construct. - private RegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CollectorMessages.newBuilder() to construct. + private CollectorMessages(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RegisterRequest() { - ip_ = ""; - hostname_ = ""; - version_ = ""; - collector_ = 0; + private CollectorMessages() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RegisterRequest(); + return new CollectorMessages(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.RegisterRequest.class, agent.CollectorOuterClass.RegisterRequest.Builder.class); + agent.CollectorOuterClass.CollectorMessages.class, agent.CollectorOuterClass.CollectorMessages.Builder.class); } - public static final int IP_FIELD_NUMBER = 1; + private int streamMessageCase_ = 0; @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; - /** - * string ip = 1; - * @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; + private java.lang.Object streamMessage_; + public enum StreamMessageCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONFIG(1), + RESULT(2), + STREAMMESSAGE_NOT_SET(0); + private final int value; + private StreamMessageCase(int value) { + this.value = value; } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StreamMessageCase valueOf(int value) { + return forNumber(value); + } + + public static StreamMessageCase forNumber(int value) { + switch (value) { + case 1: return CONFIG; + case 2: return RESULT; + case 0: return STREAMMESSAGE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public StreamMessageCase + getStreamMessageCase() { + return StreamMessageCase.forNumber( + streamMessageCase_); } + + public static final int CONFIG_FIELD_NUMBER = 1; /** - * string ip = 1; - * @return The bytes for ip. + * .agent.CollectorConfig config = 1; + * @return Whether the config field is set. */ @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 boolean hasConfig() { + return streamMessageCase_ == 1; } - - public static final int HOSTNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object hostname_ = ""; /** - * string hostname = 2; - * @return The hostname. + * .agent.CollectorConfig config = 1; + * @return The config. */ @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; + public agent.CollectorOuterClass.CollectorConfig getConfig() { + if (streamMessageCase_ == 1) { + return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; } + return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } /** - * string hostname = 2; - * @return The bytes for hostname. + * .agent.CollectorConfig config = 1; */ @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 agent.CollectorOuterClass.CollectorConfigOrBuilder getConfigOrBuilder() { + if (streamMessageCase_ == 1) { + return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; } + return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } - public static final int VERSION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; + public static final int RESULT_FIELD_NUMBER = 2; /** - * string version = 3; - * @return The version. + * .agent.ConfigKnowledge result = 2; + * @return Whether the result field is set. */ @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } + public boolean hasResult() { + return streamMessageCase_ == 2; } /** - * string version = 3; - * @return The bytes for version. + * .agent.ConfigKnowledge result = 2; + * @return The result. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public agent.CollectorOuterClass.ConfigKnowledge getResult() { + if (streamMessageCase_ == 2) { + return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; } - } - - public static final int COLLECTOR_FIELD_NUMBER = 4; - private int collector_ = 0; - /** - * .agent.CollectorModule collector = 4; - * @return The enum numeric value on the wire for collector. - */ - @java.lang.Override public int getCollectorValue() { - return collector_; + return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); } /** - * .agent.CollectorModule collector = 4; - * @return The collector. + * .agent.ConfigKnowledge result = 2; */ - @java.lang.Override public agent.CollectorOuterClass.CollectorModule getCollector() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(collector_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; + @java.lang.Override + public agent.CollectorOuterClass.ConfigKnowledgeOrBuilder getResultOrBuilder() { + if (streamMessageCase_ == 2) { + return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; + } + return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -3254,17 +3535,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_); + if (streamMessageCase_ == 1) { + output.writeMessage(1, (agent.CollectorOuterClass.CollectorConfig) streamMessage_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); - } - if (collector_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - output.writeEnum(4, collector_); + if (streamMessageCase_ == 2) { + output.writeMessage(2, (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_); } getUnknownFields().writeTo(output); } @@ -3275,18 +3550,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + if (streamMessageCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (agent.CollectorOuterClass.CollectorConfig) streamMessage_); } - if (collector_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { + if (streamMessageCase_ == 2) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, collector_); + .computeMessageSize(2, (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3298,18 +3568,24 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.RegisterRequest)) { + if (!(obj instanceof agent.CollectorOuterClass.CollectorMessages)) { return super.equals(obj); } - agent.CollectorOuterClass.RegisterRequest other = (agent.CollectorOuterClass.RegisterRequest) obj; + agent.CollectorOuterClass.CollectorMessages other = (agent.CollectorOuterClass.CollectorMessages) obj; - if (!getIp() - .equals(other.getIp())) return false; - if (!getHostname() - .equals(other.getHostname())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (collector_ != other.collector_) return false; + if (!getStreamMessageCase().equals(other.getStreamMessageCase())) return false; + switch (streamMessageCase_) { + case 1: + if (!getConfig() + .equals(other.getConfig())) return false; + break; + case 2: + if (!getResult() + .equals(other.getResult())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3321,57 +3597,61 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + COLLECTOR_FIELD_NUMBER; - hash = (53 * hash) + collector_; + switch (streamMessageCase_) { + case 1: + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom(byte[] data) + public static agent.CollectorOuterClass.CollectorMessages parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorMessages parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3379,26 +3659,26 @@ public static agent.CollectorOuterClass.RegisterRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.RegisterRequest parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorMessages parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.RegisterRequest parseDelimitedFrom( + public static agent.CollectorOuterClass.CollectorMessages 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 agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.RegisterRequest parseFrom( + public static agent.CollectorOuterClass.CollectorMessages parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3411,7 +3691,7 @@ public static agent.CollectorOuterClass.RegisterRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.RegisterRequest prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.CollectorMessages prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3427,26 +3707,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.RegisterRequest} + * Protobuf type {@code agent.CollectorMessages} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.RegisterRequest) - agent.CollectorOuterClass.RegisterRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.CollectorMessages) + agent.CollectorOuterClass.CollectorMessagesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.RegisterRequest.class, agent.CollectorOuterClass.RegisterRequest.Builder.class); + agent.CollectorOuterClass.CollectorMessages.class, agent.CollectorOuterClass.CollectorMessages.Builder.class); } - // Construct using agent.CollectorOuterClass.RegisterRequest.newBuilder() + // Construct using agent.CollectorOuterClass.CollectorMessages.newBuilder() private Builder() { } @@ -3460,27 +3740,31 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - ip_ = ""; - hostname_ = ""; - version_ = ""; - collector_ = 0; + if (configBuilder_ != null) { + configBuilder_.clear(); + } + if (resultBuilder_ != null) { + resultBuilder_.clear(); + } + streamMessageCase_ = 0; + streamMessage_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_RegisterRequest_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorMessages_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.RegisterRequest getDefaultInstanceForType() { - return agent.CollectorOuterClass.RegisterRequest.getDefaultInstance(); + public agent.CollectorOuterClass.CollectorMessages getDefaultInstanceForType() { + return agent.CollectorOuterClass.CollectorMessages.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.RegisterRequest build() { - agent.CollectorOuterClass.RegisterRequest result = buildPartial(); + public agent.CollectorOuterClass.CollectorMessages build() { + agent.CollectorOuterClass.CollectorMessages result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3488,26 +3772,28 @@ public agent.CollectorOuterClass.RegisterRequest build() { } @java.lang.Override - public agent.CollectorOuterClass.RegisterRequest buildPartial() { - agent.CollectorOuterClass.RegisterRequest result = new agent.CollectorOuterClass.RegisterRequest(this); + public agent.CollectorOuterClass.CollectorMessages buildPartial() { + agent.CollectorOuterClass.CollectorMessages result = new agent.CollectorOuterClass.CollectorMessages(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(agent.CollectorOuterClass.RegisterRequest result) { + private void buildPartial0(agent.CollectorOuterClass.CollectorMessages result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ip_ = ip_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.hostname_ = hostname_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.version_ = version_; + } + + private void buildPartialOneofs(agent.CollectorOuterClass.CollectorMessages result) { + result.streamMessageCase_ = streamMessageCase_; + result.streamMessage_ = this.streamMessage_; + if (streamMessageCase_ == 1 && + configBuilder_ != null) { + result.streamMessage_ = configBuilder_.build(); } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.collector_ = collector_; + if (streamMessageCase_ == 2 && + resultBuilder_ != null) { + result.streamMessage_ = resultBuilder_.build(); } } @@ -3545,33 +3831,28 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.RegisterRequest) { - return mergeFrom((agent.CollectorOuterClass.RegisterRequest)other); + if (other instanceof agent.CollectorOuterClass.CollectorMessages) { + return mergeFrom((agent.CollectorOuterClass.CollectorMessages)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.RegisterRequest other) { - if (other == agent.CollectorOuterClass.RegisterRequest.getDefaultInstance()) return this; - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getHostname().isEmpty()) { - hostname_ = other.hostname_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.collector_ != 0) { - setCollectorValue(other.getCollectorValue()); + public Builder mergeFrom(agent.CollectorOuterClass.CollectorMessages other) { + if (other == agent.CollectorOuterClass.CollectorMessages.getDefaultInstance()) return this; + switch (other.getStreamMessageCase()) { + case CONFIG: { + mergeConfig(other.getConfig()); + break; + } + case RESULT: { + mergeResult(other.getResult()); + break; + } + case STREAMMESSAGE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3600,25 +3881,19 @@ public Builder mergeFrom( done = true; break; case 10: { - ip_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + streamMessageCase_ = 1; break; } // case 10 case 18: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + input.readMessage( + getResultFieldBuilder().getBuilder(), + extensionRegistry); + streamMessageCase_ = 2; break; } // case 18 - case 26: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - collector_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -3634,275 +3909,305 @@ public Builder mergeFrom( } // finally return this; } + private int streamMessageCase_ = 0; + private java.lang.Object streamMessage_; + public StreamMessageCase + getStreamMessageCase() { + return StreamMessageCase.forNumber( + streamMessageCase_); + } + + public Builder clearStreamMessage() { + streamMessageCase_ = 0; + streamMessage_ = null; + onChanged(); + return this; + } + private int bitField0_; - private java.lang.Object ip_ = ""; + private com.google.protobuf.SingleFieldBuilderV3< + agent.CollectorOuterClass.CollectorConfig, agent.CollectorOuterClass.CollectorConfig.Builder, agent.CollectorOuterClass.CollectorConfigOrBuilder> configBuilder_; /** - * string ip = 1; - * @return The ip. + * .agent.CollectorConfig config = 1; + * @return Whether the config field is set. */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasConfig() { + return streamMessageCase_ == 1; } /** - * string ip = 1; - * @return The bytes for ip. + * .agent.CollectorConfig config = 1; + * @return The config. */ - 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; + @java.lang.Override + public agent.CollectorOuterClass.CollectorConfig getConfig() { + if (configBuilder_ == null) { + if (streamMessageCase_ == 1) { + return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; + } + return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } else { - return (com.google.protobuf.ByteString) ref; + if (streamMessageCase_ == 1) { + return configBuilder_.getMessage(); + } + return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } } /** - * string ip = 1; - * @param value The ip to set. - * @return This builder for chaining. + * .agent.CollectorConfig config = 1; */ - public Builder setIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ip_ = value; - bitField0_ |= 0x00000001; - onChanged(); + public Builder setConfig(agent.CollectorOuterClass.CollectorConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamMessage_ = value; + onChanged(); + } else { + configBuilder_.setMessage(value); + } + streamMessageCase_ = 1; return this; } /** - * string ip = 1; - * @return This builder for chaining. + * .agent.CollectorConfig config = 1; */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder setConfig( + agent.CollectorOuterClass.CollectorConfig.Builder builderForValue) { + if (configBuilder_ == null) { + streamMessage_ = builderForValue.build(); + onChanged(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + streamMessageCase_ = 1; return this; } /** - * string ip = 1; - * @param value The bytes for ip to set. - * @return This builder for chaining. + * .agent.CollectorConfig config = 1; */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ip_ = value; - bitField0_ |= 0x00000001; - onChanged(); + public Builder mergeConfig(agent.CollectorOuterClass.CollectorConfig value) { + if (configBuilder_ == null) { + if (streamMessageCase_ == 1 && + streamMessage_ != agent.CollectorOuterClass.CollectorConfig.getDefaultInstance()) { + streamMessage_ = agent.CollectorOuterClass.CollectorConfig.newBuilder((agent.CollectorOuterClass.CollectorConfig) streamMessage_) + .mergeFrom(value).buildPartial(); + } else { + streamMessage_ = value; + } + onChanged(); + } else { + if (streamMessageCase_ == 1) { + configBuilder_.mergeFrom(value); + } else { + configBuilder_.setMessage(value); + } + } + streamMessageCase_ = 1; return this; } - - private java.lang.Object hostname_ = ""; /** - * string hostname = 2; - * @return The hostname. + * .agent.CollectorConfig config = 1; */ - 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; + public Builder clearConfig() { + if (configBuilder_ == null) { + if (streamMessageCase_ == 1) { + streamMessageCase_ = 0; + streamMessage_ = null; + onChanged(); + } } else { - return (java.lang.String) ref; + if (streamMessageCase_ == 1) { + streamMessageCase_ = 0; + streamMessage_ = null; + } + configBuilder_.clear(); } + return this; } /** - * string hostname = 2; - * @return The bytes for hostname. + * .agent.CollectorConfig config = 1; */ - 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; + public agent.CollectorOuterClass.CollectorConfig.Builder getConfigBuilder() { + return getConfigFieldBuilder().getBuilder(); + } + /** + * .agent.CollectorConfig config = 1; + */ + @java.lang.Override + public agent.CollectorOuterClass.CollectorConfigOrBuilder getConfigOrBuilder() { + if ((streamMessageCase_ == 1) && (configBuilder_ != null)) { + return configBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + if (streamMessageCase_ == 1) { + return (agent.CollectorOuterClass.CollectorConfig) streamMessage_; + } + return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } } /** - * string hostname = 2; - * @param value The hostname to set. - * @return This builder for chaining. + * .agent.CollectorConfig config = 1; */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - hostname_ = value; - bitField0_ |= 0x00000002; + private com.google.protobuf.SingleFieldBuilderV3< + agent.CollectorOuterClass.CollectorConfig, agent.CollectorOuterClass.CollectorConfig.Builder, agent.CollectorOuterClass.CollectorConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + if (!(streamMessageCase_ == 1)) { + streamMessage_ = agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); + } + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + agent.CollectorOuterClass.CollectorConfig, agent.CollectorOuterClass.CollectorConfig.Builder, agent.CollectorOuterClass.CollectorConfigOrBuilder>( + (agent.CollectorOuterClass.CollectorConfig) streamMessage_, + getParentForChildren(), + isClean()); + streamMessage_ = null; + } + streamMessageCase_ = 1; onChanged(); - return this; + return configBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + agent.CollectorOuterClass.ConfigKnowledge, agent.CollectorOuterClass.ConfigKnowledge.Builder, agent.CollectorOuterClass.ConfigKnowledgeOrBuilder> resultBuilder_; /** - * string hostname = 2; - * @return This builder for chaining. + * .agent.ConfigKnowledge result = 2; + * @return Whether the result field is set. */ - public Builder clearHostname() { - hostname_ = getDefaultInstance().getHostname(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public boolean hasResult() { + return streamMessageCase_ == 2; } /** - * string hostname = 2; - * @param value The bytes for hostname to set. - * @return This builder for chaining. + * .agent.ConfigKnowledge result = 2; + * @return The result. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - hostname_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public agent.CollectorOuterClass.ConfigKnowledge getResult() { + if (resultBuilder_ == null) { + if (streamMessageCase_ == 2) { + return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; + } + return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); + } else { + if (streamMessageCase_ == 2) { + return resultBuilder_.getMessage(); + } + return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); + } } - - private java.lang.Object version_ = ""; /** - * string version = 3; - * @return The version. + * .agent.ConfigKnowledge result = 2; */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; + public Builder setResult(agent.CollectorOuterClass.ConfigKnowledge value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamMessage_ = value; + onChanged(); } else { - return (java.lang.String) ref; + resultBuilder_.setMessage(value); } + streamMessageCase_ = 2; + return this; } /** - * string version = 3; - * @return The bytes for version. + * .agent.ConfigKnowledge result = 2; */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; + public Builder setResult( + agent.CollectorOuterClass.ConfigKnowledge.Builder builderForValue) { + if (resultBuilder_ == null) { + streamMessage_ = builderForValue.build(); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + resultBuilder_.setMessage(builderForValue.build()); } + streamMessageCase_ = 2; + return this; } /** - * string version = 3; - * @param value The version to set. - * @return This builder for chaining. + * .agent.ConfigKnowledge result = 2; */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - version_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string version = 3; - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); + public Builder mergeResult(agent.CollectorOuterClass.ConfigKnowledge value) { + if (resultBuilder_ == null) { + if (streamMessageCase_ == 2 && + streamMessage_ != agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance()) { + streamMessage_ = agent.CollectorOuterClass.ConfigKnowledge.newBuilder((agent.CollectorOuterClass.ConfigKnowledge) streamMessage_) + .mergeFrom(value).buildPartial(); + } else { + streamMessage_ = value; + } + onChanged(); + } else { + if (streamMessageCase_ == 2) { + resultBuilder_.mergeFrom(value); + } else { + resultBuilder_.setMessage(value); + } + } + streamMessageCase_ = 2; return this; } /** - * string version = 3; - * @param value The bytes for version to set. - * @return This builder for chaining. + * .agent.ConfigKnowledge result = 2; */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000004; - onChanged(); + public Builder clearResult() { + if (resultBuilder_ == null) { + if (streamMessageCase_ == 2) { + streamMessageCase_ = 0; + streamMessage_ = null; + onChanged(); + } + } else { + if (streamMessageCase_ == 2) { + streamMessageCase_ = 0; + streamMessage_ = null; + } + resultBuilder_.clear(); + } return this; } - - private int collector_ = 0; - /** - * .agent.CollectorModule collector = 4; - * @return The enum numeric value on the wire for collector. - */ - @java.lang.Override public int getCollectorValue() { - return collector_; - } /** - * .agent.CollectorModule collector = 4; - * @param value The enum numeric value on the wire for collector to set. - * @return This builder for chaining. + * .agent.ConfigKnowledge result = 2; */ - public Builder setCollectorValue(int value) { - collector_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + public agent.CollectorOuterClass.ConfigKnowledge.Builder getResultBuilder() { + return getResultFieldBuilder().getBuilder(); } /** - * .agent.CollectorModule collector = 4; - * @return The collector. + * .agent.ConfigKnowledge result = 2; */ @java.lang.Override - public agent.CollectorOuterClass.CollectorModule getCollector() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(collector_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; - } - /** - * .agent.CollectorModule collector = 4; - * @param value The collector to set. - * @return This builder for chaining. - */ - public Builder setCollector(agent.CollectorOuterClass.CollectorModule value) { - if (value == null) { - throw new NullPointerException(); + public agent.CollectorOuterClass.ConfigKnowledgeOrBuilder getResultOrBuilder() { + if ((streamMessageCase_ == 2) && (resultBuilder_ != null)) { + return resultBuilder_.getMessageOrBuilder(); + } else { + if (streamMessageCase_ == 2) { + return (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_; + } + return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); } - bitField0_ |= 0x00000008; - collector_ = value.getNumber(); - onChanged(); - return this; } /** - * .agent.CollectorModule collector = 4; - * @return This builder for chaining. + * .agent.ConfigKnowledge result = 2; */ - public Builder clearCollector() { - bitField0_ = (bitField0_ & ~0x00000008); - collector_ = 0; + private com.google.protobuf.SingleFieldBuilderV3< + agent.CollectorOuterClass.ConfigKnowledge, agent.CollectorOuterClass.ConfigKnowledge.Builder, agent.CollectorOuterClass.ConfigKnowledgeOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + if (!(streamMessageCase_ == 2)) { + streamMessage_ = agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); + } + resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + agent.CollectorOuterClass.ConfigKnowledge, agent.CollectorOuterClass.ConfigKnowledge.Builder, agent.CollectorOuterClass.ConfigKnowledgeOrBuilder>( + (agent.CollectorOuterClass.ConfigKnowledge) streamMessage_, + getParentForChildren(), + isClean()); + streamMessage_ = null; + } + streamMessageCase_ = 2; onChanged(); - return this; + return resultBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -3917,23 +4222,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.RegisterRequest) + // @@protoc_insertion_point(builder_scope:agent.CollectorMessages) } - // @@protoc_insertion_point(class_scope:agent.RegisterRequest) - private static final agent.CollectorOuterClass.RegisterRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.CollectorMessages) + private static final agent.CollectorOuterClass.CollectorMessages DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.RegisterRequest(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorMessages(); } - public static agent.CollectorOuterClass.RegisterRequest getDefaultInstance() { + public static agent.CollectorOuterClass.CollectorMessages getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RegisterRequest parsePartialFrom( + public CollectorMessages parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3952,95 +4257,235 @@ public RegisterRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.RegisterRequest getDefaultInstanceForType() { + public agent.CollectorOuterClass.CollectorMessages getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.ConfigRequest) + public interface CollectorConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.CollectorConfig) com.google.protobuf.MessageOrBuilder { /** - * .agent.CollectorModule module = 1; - * @return The enum numeric value on the wire for module. + * string collector_id = 1; + * @return The collectorId. */ - int getModuleValue(); + java.lang.String getCollectorId(); /** - * .agent.CollectorModule module = 1; - * @return The module. + * string collector_id = 1; + * @return The bytes for collectorId. */ - agent.CollectorOuterClass.CollectorModule getModule(); + com.google.protobuf.ByteString + getCollectorIdBytes(); + + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + java.util.List + getGroupsList(); + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index); + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + int getGroupsCount(); + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + java.util.List + getGroupsOrBuilderList(); + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( + int index); + + /** + * string request_id = 3; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * string request_id = 3; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); } /** - * Protobuf type {@code agent.ConfigRequest} + * Protobuf type {@code agent.CollectorConfig} */ - public static final class ConfigRequest extends + public static final class CollectorConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.ConfigRequest) - ConfigRequestOrBuilder { + // @@protoc_insertion_point(message_implements:agent.CollectorConfig) + CollectorConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use ConfigRequest.newBuilder() to construct. - private ConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CollectorConfig.newBuilder() to construct. + private CollectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigRequest() { - module_ = 0; + private CollectorConfig() { + collectorId_ = ""; + groups_ = java.util.Collections.emptyList(); + requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ConfigRequest(); + return new CollectorConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.ConfigRequest.class, agent.CollectorOuterClass.ConfigRequest.Builder.class); + agent.CollectorOuterClass.CollectorConfig.class, agent.CollectorOuterClass.CollectorConfig.Builder.class); } - public static final int MODULE_FIELD_NUMBER = 1; - private int module_ = 0; + public static final int COLLECTOR_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object collectorId_ = ""; /** - * .agent.CollectorModule module = 1; - * @return The enum numeric value on the wire for module. + * string collector_id = 1; + * @return The collectorId. */ - @java.lang.Override public int getModuleValue() { - return module_; + @java.lang.Override + public java.lang.String getCollectorId() { + java.lang.Object ref = collectorId_; + 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(); + collectorId_ = s; + return s; + } } /** - * .agent.CollectorModule module = 1; - * @return The module. + * string collector_id = 1; + * @return The bytes for collectorId. */ - @java.lang.Override public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; + @java.lang.Override + public com.google.protobuf.ByteString + getCollectorIdBytes() { + java.lang.Object ref = collectorId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + collectorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; + public static final int GROUPS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List groups_; + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + @java.lang.Override + public java.util.List getGroupsList() { + return groups_; + } + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + @java.lang.Override + public java.util.List + getGroupsOrBuilderList() { + return groups_; + } + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + @java.lang.Override + public int getGroupsCount() { + return groups_.size(); + } + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + @java.lang.Override + public agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index) { + return groups_.get(index); + } + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + @java.lang.Override + public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( + int index) { + return groups_.get(index); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * string request_id = 3; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + * string request_id = 3; + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = 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; @@ -4051,8 +4496,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - output.writeEnum(1, module_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectorId_); + } + for (int i = 0; i < groups_.size(); i++) { + output.writeMessage(2, groups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); } getUnknownFields().writeTo(output); } @@ -4063,9 +4514,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectorId_); + } + for (int i = 0; i < groups_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, module_); + .computeMessageSize(2, groups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4077,12 +4534,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.ConfigRequest)) { + if (!(obj instanceof agent.CollectorOuterClass.CollectorConfig)) { return super.equals(obj); } - agent.CollectorOuterClass.ConfigRequest other = (agent.CollectorOuterClass.ConfigRequest) obj; + agent.CollectorOuterClass.CollectorConfig other = (agent.CollectorOuterClass.CollectorConfig) obj; - if (module_ != other.module_) return false; + if (!getCollectorId() + .equals(other.getCollectorId())) return false; + if (!getGroupsList() + .equals(other.getGroupsList())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4094,51 +4556,57 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODULE_FIELD_NUMBER; - hash = (53 * hash) + module_; + hash = (37 * hash) + COLLECTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getCollectorId().hashCode(); + if (getGroupsCount() > 0) { + hash = (37 * hash) + GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getGroupsList().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom(byte[] data) + public static agent.CollectorOuterClass.CollectorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4146,26 +4614,26 @@ public static agent.CollectorOuterClass.ConfigRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.ConfigRequest parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.ConfigRequest parseDelimitedFrom( + public static agent.CollectorOuterClass.CollectorConfig 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 agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.ConfigRequest parseFrom( + public static agent.CollectorOuterClass.CollectorConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4178,7 +4646,7 @@ public static agent.CollectorOuterClass.ConfigRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.ConfigRequest prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.CollectorConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4194,26 +4662,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.ConfigRequest} + * Protobuf type {@code agent.CollectorConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.ConfigRequest) - agent.CollectorOuterClass.ConfigRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.CollectorConfig) + agent.CollectorOuterClass.CollectorConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.ConfigRequest.class, agent.CollectorOuterClass.ConfigRequest.Builder.class); + agent.CollectorOuterClass.CollectorConfig.class, agent.CollectorOuterClass.CollectorConfig.Builder.class); } - // Construct using agent.CollectorOuterClass.ConfigRequest.newBuilder() + // Construct using agent.CollectorOuterClass.CollectorConfig.newBuilder() private Builder() { } @@ -4227,24 +4695,32 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - module_ = 0; + collectorId_ = ""; + if (groupsBuilder_ == null) { + groups_ = java.util.Collections.emptyList(); + } else { + groups_ = null; + groupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + requestId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { - return agent.CollectorOuterClass.ConfigRequest.getDefaultInstance(); + public agent.CollectorOuterClass.CollectorConfig getDefaultInstanceForType() { + return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.ConfigRequest build() { - agent.CollectorOuterClass.ConfigRequest result = buildPartial(); + public agent.CollectorOuterClass.CollectorConfig build() { + agent.CollectorOuterClass.CollectorConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4252,17 +4728,33 @@ public agent.CollectorOuterClass.ConfigRequest build() { } @java.lang.Override - public agent.CollectorOuterClass.ConfigRequest buildPartial() { - agent.CollectorOuterClass.ConfigRequest result = new agent.CollectorOuterClass.ConfigRequest(this); + public agent.CollectorOuterClass.CollectorConfig buildPartial() { + agent.CollectorOuterClass.CollectorConfig result = new agent.CollectorOuterClass.CollectorConfig(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(agent.CollectorOuterClass.ConfigRequest result) { + private void buildPartialRepeatedFields(agent.CollectorOuterClass.CollectorConfig result) { + if (groupsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + groups_ = java.util.Collections.unmodifiableList(groups_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.groups_ = groups_; + } else { + result.groups_ = groupsBuilder_.build(); + } + } + + private void buildPartial0(agent.CollectorOuterClass.CollectorConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.module_ = module_; + result.collectorId_ = collectorId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; } } @@ -4300,18 +4792,51 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.ConfigRequest) { - return mergeFrom((agent.CollectorOuterClass.ConfigRequest)other); + if (other instanceof agent.CollectorOuterClass.CollectorConfig) { + return mergeFrom((agent.CollectorOuterClass.CollectorConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.ConfigRequest other) { - if (other == agent.CollectorOuterClass.ConfigRequest.getDefaultInstance()) return this; - if (other.module_ != 0) { - setModuleValue(other.getModuleValue()); + public Builder mergeFrom(agent.CollectorOuterClass.CollectorConfig other) { + if (other == agent.CollectorOuterClass.CollectorConfig.getDefaultInstance()) return this; + if (!other.getCollectorId().isEmpty()) { + collectorId_ = other.collectorId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (groupsBuilder_ == null) { + if (!other.groups_.isEmpty()) { + if (groups_.isEmpty()) { + groups_ = other.groups_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGroupsIsMutable(); + groups_.addAll(other.groups_); + } + onChanged(); + } + } else { + if (!other.groups_.isEmpty()) { + if (groupsBuilder_.isEmpty()) { + groupsBuilder_.dispose(); + groupsBuilder_ = null; + groups_ = other.groups_; + bitField0_ = (bitField0_ & ~0x00000002); + groupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGroupsFieldBuilder() : null; + } else { + groupsBuilder_.addAllMessages(other.groups_); + } + } + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4339,19 +4864,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - module_ = input.readEnum(); + case 10: { + collectorId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) + } // case 10 + case 18: { + agent.CollectorOuterClass.CollectorConfigGroup m = + input.readMessage( + agent.CollectorOuterClass.CollectorConfigGroup.parser(), + extensionRegistry); + if (groupsBuilder_ == null) { + ensureGroupsIsMutable(); + groups_.add(m); + } else { + groupsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { @@ -4361,1575 +4904,102 @@ public Builder mergeFrom( } private int bitField0_; - private int module_ = 0; + private java.lang.Object collectorId_ = ""; /** - * .agent.CollectorModule module = 1; - * @return The enum numeric value on the wire for module. + * string collector_id = 1; + * @return The collectorId. */ - @java.lang.Override public int getModuleValue() { - return module_; + public java.lang.String getCollectorId() { + java.lang.Object ref = collectorId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectorId_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * .agent.CollectorModule module = 1; - * @param value The enum numeric value on the wire for module to set. + * string collector_id = 1; + * @return The bytes for collectorId. + */ + public com.google.protobuf.ByteString + getCollectorIdBytes() { + java.lang.Object ref = collectorId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + collectorId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string collector_id = 1; + * @param value The collectorId to set. * @return This builder for chaining. */ - public Builder setModuleValue(int value) { - module_ = value; + public Builder setCollectorId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + collectorId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * .agent.CollectorModule module = 1; - * @return The module. - */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; - } - /** - * .agent.CollectorModule module = 1; - * @param value The module to set. + * string collector_id = 1; * @return This builder for chaining. */ - public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - module_ = value.getNumber(); + public Builder clearCollectorId() { + collectorId_ = getDefaultInstance().getCollectorId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * .agent.CollectorModule module = 1; + * string collector_id = 1; + * @param value The bytes for collectorId to set. * @return This builder for chaining. */ - public Builder clearModule() { - bitField0_ = (bitField0_ & ~0x00000001); - module_ = 0; + public Builder setCollectorIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + collectorId_ = 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); + private java.util.List groups_ = + java.util.Collections.emptyList(); + private void ensureGroupsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + groups_ = new java.util.ArrayList(groups_); + bitField0_ |= 0x00000002; + } } + private com.google.protobuf.RepeatedFieldBuilderV3< + agent.CollectorOuterClass.CollectorConfigGroup, agent.CollectorOuterClass.CollectorConfigGroup.Builder, agent.CollectorOuterClass.CollectorConfigGroupOrBuilder> groupsBuilder_; - // @@protoc_insertion_point(builder_scope:agent.ConfigRequest) - } - - // @@protoc_insertion_point(class_scope:agent.ConfigRequest) - private static final agent.CollectorOuterClass.ConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.ConfigRequest(); - } - - public static agent.CollectorOuterClass.ConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigRequest 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 agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CollectorOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.Collector) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 id = 1; - * @return The id. - */ - int getId(); - - /** - * .agent.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * .agent.Status status = 2; - * @return The status. - */ - agent.Common.Status getStatus(); - - /** - * string collector_key = 3; - * @return The collectorKey. - */ - java.lang.String getCollectorKey(); - /** - * string collector_key = 3; - * @return The bytes for collectorKey. - */ - com.google.protobuf.ByteString - getCollectorKeyBytes(); - - /** - * string ip = 4; - * @return The ip. - */ - java.lang.String getIp(); - /** - * string ip = 4; - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - * string hostname = 5; - * @return The hostname. - */ - java.lang.String getHostname(); - /** - * string hostname = 5; - * @return The bytes for hostname. - */ - com.google.protobuf.ByteString - getHostnameBytes(); - - /** - * string version = 6; - * @return The version. - */ - java.lang.String getVersion(); - /** - * string version = 6; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * .agent.CollectorModule module = 7; - * @return The enum numeric value on the wire for module. - */ - int getModuleValue(); - /** - * .agent.CollectorModule module = 7; - * @return The module. - */ - agent.CollectorOuterClass.CollectorModule getModule(); - - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - java.util.List - getGroupsList(); - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index); - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - int getGroupsCount(); - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - java.util.List - getGroupsOrBuilderList(); - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( - int index); - - /** - * string last_seen = 9; - * @return The lastSeen. - */ - java.lang.String getLastSeen(); - /** - * string last_seen = 9; - * @return The bytes for lastSeen. - */ - com.google.protobuf.ByteString - getLastSeenBytes(); - } - /** - * Protobuf type {@code agent.Collector} - */ - public static final class Collector extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.Collector) - CollectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use Collector.newBuilder() to construct. - private Collector(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Collector() { - status_ = 0; - collectorKey_ = ""; - ip_ = ""; - hostname_ = ""; - version_ = ""; - module_ = 0; - groups_ = java.util.Collections.emptyList(); - lastSeen_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Collector(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_Collector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_Collector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.Collector.class, agent.CollectorOuterClass.Collector.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private int id_ = 0; - /** - * int32 id = 1; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - - public static final int STATUS_FIELD_NUMBER = 2; - private int status_ = 0; - /** - * .agent.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - * .agent.Status status = 2; - * @return The status. - */ - @java.lang.Override public agent.Common.Status getStatus() { - agent.Common.Status result = agent.Common.Status.forNumber(status_); - return result == null ? agent.Common.Status.UNRECOGNIZED : result; - } - - public static final int COLLECTOR_KEY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object collectorKey_ = ""; - /** - * string collector_key = 3; - * @return The collectorKey. - */ - @java.lang.Override - public java.lang.String getCollectorKey() { - java.lang.Object ref = collectorKey_; - 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(); - collectorKey_ = s; - return s; - } - } - /** - * string collector_key = 3; - * @return The bytes for collectorKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCollectorKeyBytes() { - java.lang.Object ref = collectorKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - collectorKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; - /** - * string ip = 4; - * @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 = 4; - * @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 HOSTNAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object hostname_ = ""; - /** - * string hostname = 5; - * @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 = 5; - * @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 VERSION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - /** - * string version = 6; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 6; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODULE_FIELD_NUMBER = 7; - private int module_ = 0; - /** - * .agent.CollectorModule module = 7; - * @return The enum numeric value on the wire for module. - */ - @java.lang.Override public int getModuleValue() { - return module_; - } - /** - * .agent.CollectorModule module = 7; - * @return The module. - */ - @java.lang.Override public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; - } - - public static final int GROUPS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List groups_; - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - @java.lang.Override - public java.util.List getGroupsList() { - return groups_; - } - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - @java.lang.Override - public java.util.List - getGroupsOrBuilderList() { - return groups_; - } - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - @java.lang.Override - public int getGroupsCount() { - return groups_.size(); - } - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index) { - return groups_.get(index); - } - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( - int index) { - return groups_.get(index); - } - - public static final int LAST_SEEN_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object lastSeen_ = ""; - /** - * string last_seen = 9; - * @return The lastSeen. - */ - @java.lang.Override - public java.lang.String getLastSeen() { - java.lang.Object ref = lastSeen_; - 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(); - lastSeen_ = s; - return s; - } - } - /** - * string last_seen = 9; - * @return The bytes for lastSeen. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLastSeenBytes() { - java.lang.Object ref = lastSeen_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lastSeen_ = 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 (id_ != 0) { - output.writeInt32(1, id_); - } - if (status_ != agent.Common.Status.ONLINE.getNumber()) { - output.writeEnum(2, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collectorKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ip_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostname_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_); - } - if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - output.writeEnum(7, module_); - } - for (int i = 0; i < groups_.size(); i++) { - output.writeMessage(8, groups_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSeen_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, lastSeen_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, id_); - } - if (status_ != agent.Common.Status.ONLINE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collectorKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ip_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostname_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_); - } - if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, module_); - } - for (int i = 0; i < groups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, groups_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSeen_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, lastSeen_); - } - 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 agent.CollectorOuterClass.Collector)) { - return super.equals(obj); - } - agent.CollectorOuterClass.Collector other = (agent.CollectorOuterClass.Collector) obj; - - if (getId() - != other.getId()) return false; - if (status_ != other.status_) return false; - if (!getCollectorKey() - .equals(other.getCollectorKey())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (!getHostname() - .equals(other.getHostname())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (module_ != other.module_) return false; - if (!getGroupsList() - .equals(other.getGroupsList())) return false; - if (!getLastSeen() - .equals(other.getLastSeen())) 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(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + COLLECTOR_KEY_FIELD_NUMBER; - hash = (53 * hash) + getCollectorKey().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + MODULE_FIELD_NUMBER; - hash = (53 * hash) + module_; - if (getGroupsCount() > 0) { - hash = (37 * hash) + GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getGroupsList().hashCode(); - } - hash = (37 * hash) + LAST_SEEN_FIELD_NUMBER; - hash = (53 * hash) + getLastSeen().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static agent.CollectorOuterClass.Collector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.Collector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.Collector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.Collector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.Collector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.Collector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.Collector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.Collector 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 agent.CollectorOuterClass.Collector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static agent.CollectorOuterClass.Collector 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 agent.CollectorOuterClass.Collector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.Collector 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(agent.CollectorOuterClass.Collector 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 agent.Collector} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.Collector) - agent.CollectorOuterClass.CollectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_Collector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_Collector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.Collector.class, agent.CollectorOuterClass.Collector.Builder.class); - } - - // Construct using agent.CollectorOuterClass.Collector.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = 0; - status_ = 0; - collectorKey_ = ""; - ip_ = ""; - hostname_ = ""; - version_ = ""; - module_ = 0; - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); - } else { - groups_ = null; - groupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - lastSeen_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_Collector_descriptor; - } - - @java.lang.Override - public agent.CollectorOuterClass.Collector getDefaultInstanceForType() { - return agent.CollectorOuterClass.Collector.getDefaultInstance(); - } - - @java.lang.Override - public agent.CollectorOuterClass.Collector build() { - agent.CollectorOuterClass.Collector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public agent.CollectorOuterClass.Collector buildPartial() { - agent.CollectorOuterClass.Collector result = new agent.CollectorOuterClass.Collector(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(agent.CollectorOuterClass.Collector result) { - if (groupsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.groups_ = groups_; - } else { - result.groups_ = groupsBuilder_.build(); - } - } - - private void buildPartial0(agent.CollectorOuterClass.Collector result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.collectorKey_ = collectorKey_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.ip_ = ip_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.hostname_ = hostname_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.module_ = module_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.lastSeen_ = lastSeen_; - } - } - - @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 agent.CollectorOuterClass.Collector) { - return mergeFrom((agent.CollectorOuterClass.Collector)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(agent.CollectorOuterClass.Collector other) { - if (other == agent.CollectorOuterClass.Collector.getDefaultInstance()) return this; - if (other.getId() != 0) { - setId(other.getId()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getCollectorKey().isEmpty()) { - collectorKey_ = other.collectorKey_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getHostname().isEmpty()) { - hostname_ = other.hostname_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.module_ != 0) { - setModuleValue(other.getModuleValue()); - } - if (groupsBuilder_ == null) { - if (!other.groups_.isEmpty()) { - if (groups_.isEmpty()) { - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureGroupsIsMutable(); - groups_.addAll(other.groups_); - } - onChanged(); - } - } else { - if (!other.groups_.isEmpty()) { - if (groupsBuilder_.isEmpty()) { - groupsBuilder_.dispose(); - groupsBuilder_ = null; - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000080); - groupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupsFieldBuilder() : null; - } else { - groupsBuilder_.addAllMessages(other.groups_); - } - } - } - if (!other.getLastSeen().isEmpty()) { - lastSeen_ = other.lastSeen_; - bitField0_ |= 0x00000100; - 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: { - id_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - status_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - collectorKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - ip_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - module_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - agent.CollectorOuterClass.CollectorConfigGroup m = - input.readMessage( - agent.CollectorOuterClass.CollectorConfigGroup.parser(), - extensionRegistry); - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(m); - } else { - groupsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - lastSeen_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int id_ ; - /** - * int32 id = 1; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - /** - * int32 id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * .agent.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - * .agent.Status status = 2; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - status_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .agent.Status status = 2; - * @return The status. - */ - @java.lang.Override - public agent.Common.Status getStatus() { - agent.Common.Status result = agent.Common.Status.forNumber(status_); - return result == null ? agent.Common.Status.UNRECOGNIZED : result; - } - /** - * .agent.Status status = 2; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(agent.Common.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .agent.Status status = 2; - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object collectorKey_ = ""; - /** - * string collector_key = 3; - * @return The collectorKey. - */ - public java.lang.String getCollectorKey() { - java.lang.Object ref = collectorKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - collectorKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string collector_key = 3; - * @return The bytes for collectorKey. - */ - public com.google.protobuf.ByteString - getCollectorKeyBytes() { - java.lang.Object ref = collectorKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - collectorKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string collector_key = 3; - * @param value The collectorKey to set. - * @return This builder for chaining. - */ - public Builder setCollectorKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - collectorKey_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string collector_key = 3; - * @return This builder for chaining. - */ - public Builder clearCollectorKey() { - collectorKey_ = getDefaultInstance().getCollectorKey(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string collector_key = 3; - * @param value The bytes for collectorKey to set. - * @return This builder for chaining. - */ - public Builder setCollectorKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - collectorKey_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object ip_ = ""; - /** - * string ip = 4; - * @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 = 4; - * @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 = 4; - * @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_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string ip = 4; - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string ip = 4; - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object hostname_ = ""; - /** - * string hostname = 5; - * @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 = 5; - * @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 = 5; - * @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_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string hostname = 5; - * @return This builder for chaining. - */ - public Builder clearHostname() { - hostname_ = getDefaultInstance().getHostname(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string hostname = 5; - * @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_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 6; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 6; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 6; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - version_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string version = 6; - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string version = 6; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private int module_ = 0; - /** - * .agent.CollectorModule module = 7; - * @return The enum numeric value on the wire for module. - */ - @java.lang.Override public int getModuleValue() { - return module_; - } - /** - * .agent.CollectorModule module = 7; - * @param value The enum numeric value on the wire for module to set. - * @return This builder for chaining. - */ - public Builder setModuleValue(int value) { - module_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .agent.CollectorModule module = 7; - * @return The module. - */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; - } - /** - * .agent.CollectorModule module = 7; - * @param value The module to set. - * @return This builder for chaining. - */ - public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - module_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .agent.CollectorModule module = 7; - * @return This builder for chaining. - */ - public Builder clearModule() { - bitField0_ = (bitField0_ & ~0x00000040); - module_ = 0; - onChanged(); - return this; - } - - private java.util.List groups_ = - java.util.Collections.emptyList(); - private void ensureGroupsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - groups_ = new java.util.ArrayList(groups_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfigGroup, agent.CollectorOuterClass.CollectorConfigGroup.Builder, agent.CollectorOuterClass.CollectorConfigGroupOrBuilder> groupsBuilder_; - - /** - * repeated .agent.CollectorConfigGroup groups = 8; - */ - public java.util.List getGroupsList() { - if (groupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(groups_); - } else { - return groupsBuilder_.getMessageList(); + /** + * repeated .agent.CollectorConfigGroup groups = 2; + */ + public java.util.List getGroupsList() { + if (groupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groups_); + } else { + return groupsBuilder_.getMessageList(); } } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public int getGroupsCount() { if (groupsBuilder_ == null) { @@ -5939,7 +5009,7 @@ public int getGroupsCount() { } } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index) { if (groupsBuilder_ == null) { @@ -5949,7 +5019,7 @@ public agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index) { } } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder setGroups( int index, agent.CollectorOuterClass.CollectorConfigGroup value) { @@ -5966,7 +5036,7 @@ public Builder setGroups( return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder setGroups( int index, agent.CollectorOuterClass.CollectorConfigGroup.Builder builderForValue) { @@ -5980,7 +5050,7 @@ public Builder setGroups( return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder addGroups(agent.CollectorOuterClass.CollectorConfigGroup value) { if (groupsBuilder_ == null) { @@ -5996,7 +5066,7 @@ public Builder addGroups(agent.CollectorOuterClass.CollectorConfigGroup value) { return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder addGroups( int index, agent.CollectorOuterClass.CollectorConfigGroup value) { @@ -6013,7 +5083,7 @@ public Builder addGroups( return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder addGroups( agent.CollectorOuterClass.CollectorConfigGroup.Builder builderForValue) { @@ -6027,7 +5097,7 @@ public Builder addGroups( return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder addGroups( int index, agent.CollectorOuterClass.CollectorConfigGroup.Builder builderForValue) { @@ -6041,7 +5111,7 @@ public Builder addGroups( return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder addAllGroups( java.lang.Iterable values) { @@ -6056,12 +5126,12 @@ public Builder addAllGroups( return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder clearGroups() { if (groupsBuilder_ == null) { groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { groupsBuilder_.clear(); @@ -6069,7 +5139,7 @@ public Builder clearGroups() { return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public Builder removeGroups(int index) { if (groupsBuilder_ == null) { @@ -6082,14 +5152,14 @@ public Builder removeGroups(int index) { return this; } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public agent.CollectorOuterClass.CollectorConfigGroup.Builder getGroupsBuilder( int index) { return getGroupsFieldBuilder().getBuilder(index); } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( int index) { @@ -6099,7 +5169,7 @@ public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilde } } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public java.util.List getGroupsOrBuilderList() { @@ -6110,14 +5180,14 @@ public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilde } } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder() { return getGroupsFieldBuilder().addBuilder( agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance()); } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder( int index) { @@ -6125,7 +5195,7 @@ public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder( index, agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance()); } /** - * repeated .agent.CollectorConfigGroup groups = 8; + * repeated .agent.CollectorConfigGroup groups = 2; */ public java.util.List getGroupsBuilderList() { @@ -6138,7 +5208,7 @@ public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder( groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< agent.CollectorOuterClass.CollectorConfigGroup, agent.CollectorOuterClass.CollectorConfigGroup.Builder, agent.CollectorOuterClass.CollectorConfigGroupOrBuilder>( groups_, - ((bitField0_ & 0x00000080) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); groups_ = null; @@ -6146,74 +5216,74 @@ public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder( return groupsBuilder_; } - private java.lang.Object lastSeen_ = ""; + private java.lang.Object requestId_ = ""; /** - * string last_seen = 9; - * @return The lastSeen. + * string request_id = 3; + * @return The requestId. */ - public java.lang.String getLastSeen() { - java.lang.Object ref = lastSeen_; + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - lastSeen_ = s; + requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string last_seen = 9; - * @return The bytes for lastSeen. + * string request_id = 3; + * @return The bytes for requestId. */ public com.google.protobuf.ByteString - getLastSeenBytes() { - java.lang.Object ref = lastSeen_; + getRequestIdBytes() { + java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - lastSeen_ = b; + requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string last_seen = 9; - * @param value The lastSeen to set. + * string request_id = 3; + * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setLastSeen( + public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - lastSeen_ = value; - bitField0_ |= 0x00000100; + requestId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * string last_seen = 9; + * string request_id = 3; * @return This builder for chaining. */ - public Builder clearLastSeen() { - lastSeen_ = getDefaultInstance().getLastSeen(); - bitField0_ = (bitField0_ & ~0x00000100); + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** - * string last_seen = 9; - * @param value The bytes for lastSeen to set. + * string request_id = 3; + * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setLastSeenBytes( + public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - lastSeen_ = value; - bitField0_ |= 0x00000100; + requestId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6230,23 +5300,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.Collector) + // @@protoc_insertion_point(builder_scope:agent.CollectorConfig) } - // @@protoc_insertion_point(class_scope:agent.Collector) - private static final agent.CollectorOuterClass.Collector DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.CollectorConfig) + private static final agent.CollectorOuterClass.CollectorConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.Collector(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorConfig(); } - public static agent.CollectorOuterClass.Collector getDefaultInstance() { + public static agent.CollectorOuterClass.CollectorConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Collector parsePartialFrom( + public CollectorConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6265,229 +5335,263 @@ public Collector parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.Collector getDefaultInstanceForType() { + public agent.CollectorOuterClass.CollectorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CollectorConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorConfig) + public interface CollectorConfigGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.CollectorConfigGroup) com.google.protobuf.MessageOrBuilder { /** - * string collector_key = 1; - * @return The collectorKey. + * int32 id = 1; + * @return The id. */ - java.lang.String getCollectorKey(); + int getId(); + /** - * string collector_key = 1; - * @return The bytes for collectorKey. + * string group_name = 2; + * @return The groupName. + */ + java.lang.String getGroupName(); + /** + * string group_name = 2; + * @return The bytes for groupName. */ com.google.protobuf.ByteString - getCollectorKeyBytes(); + getGroupNameBytes(); /** - * repeated .agent.CollectorConfigGroup groups = 2; + * string group_description = 3; + * @return The groupDescription. */ - java.util.List - getGroupsList(); + java.lang.String getGroupDescription(); /** - * repeated .agent.CollectorConfigGroup groups = 2; + * string group_description = 3; + * @return The bytes for groupDescription. */ - agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index); + com.google.protobuf.ByteString + getGroupDescriptionBytes(); + /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - int getGroupsCount(); + java.util.List + getConfigurationsList(); /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - java.util.List - getGroupsOrBuilderList(); + agent.CollectorOuterClass.CollectorGroupConfigurations getConfigurations(int index); /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( - int index); - + int getConfigurationsCount(); /** - * string request_id = 3; - * @return The requestId. + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - java.lang.String getRequestId(); + java.util.List + getConfigurationsOrBuilderList(); /** - * string request_id = 3; - * @return The bytes for requestId. + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - com.google.protobuf.ByteString - getRequestIdBytes(); + agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder getConfigurationsOrBuilder( + int index); + + /** + * int32 collector_id = 5; + * @return The collectorId. + */ + int getCollectorId(); } /** - * Protobuf type {@code agent.CollectorConfig} + * Protobuf type {@code agent.CollectorConfigGroup} */ - public static final class CollectorConfig extends + public static final class CollectorConfigGroup extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorConfig) - CollectorConfigOrBuilder { + // @@protoc_insertion_point(message_implements:agent.CollectorConfigGroup) + CollectorConfigGroupOrBuilder { private static final long serialVersionUID = 0L; - // Use CollectorConfig.newBuilder() to construct. - private CollectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CollectorConfigGroup.newBuilder() to construct. + private CollectorConfigGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CollectorConfig() { - collectorKey_ = ""; - groups_ = java.util.Collections.emptyList(); - requestId_ = ""; + private CollectorConfigGroup() { + groupName_ = ""; + groupDescription_ = ""; + configurations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CollectorConfig(); + return new CollectorConfigGroup(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.CollectorOuterClass.CollectorConfigGroup.class, agent.CollectorOuterClass.CollectorConfigGroup.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private int id_ = 0; + /** + * int32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int GROUP_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object groupName_ = ""; + /** + * string group_name = 2; + * @return The groupName. + */ + @java.lang.Override + public java.lang.String getGroupName() { + java.lang.Object ref = groupName_; + 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(); + groupName_ = s; + return s; + } } - + /** + * string group_name = 2; + * @return The bytes for groupName. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorConfig.class, agent.CollectorOuterClass.CollectorConfig.Builder.class); + public com.google.protobuf.ByteString + getGroupNameBytes() { + java.lang.Object ref = groupName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int COLLECTOR_KEY_FIELD_NUMBER = 1; + public static final int GROUP_DESCRIPTION_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object collectorKey_ = ""; + private volatile java.lang.Object groupDescription_ = ""; /** - * string collector_key = 1; - * @return The collectorKey. + * string group_description = 3; + * @return The groupDescription. */ @java.lang.Override - public java.lang.String getCollectorKey() { - java.lang.Object ref = collectorKey_; + public java.lang.String getGroupDescription() { + java.lang.Object ref = groupDescription_; 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(); - collectorKey_ = s; + groupDescription_ = s; return s; } } /** - * string collector_key = 1; - * @return The bytes for collectorKey. + * string group_description = 3; + * @return The bytes for groupDescription. */ @java.lang.Override public com.google.protobuf.ByteString - getCollectorKeyBytes() { - java.lang.Object ref = collectorKey_; + getGroupDescriptionBytes() { + java.lang.Object ref = groupDescription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - collectorKey_ = b; + groupDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int GROUPS_FIELD_NUMBER = 2; + public static final int CONFIGURATIONS_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private java.util.List groups_; + private java.util.List configurations_; /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ @java.lang.Override - public java.util.List getGroupsList() { - return groups_; + public java.util.List getConfigurationsList() { + return configurations_; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ @java.lang.Override - public java.util.List - getGroupsOrBuilderList() { - return groups_; + public java.util.List + getConfigurationsOrBuilderList() { + return configurations_; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ @java.lang.Override - public int getGroupsCount() { - return groups_.size(); + public int getConfigurationsCount() { + return configurations_.size(); } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index) { - return groups_.get(index); + public agent.CollectorOuterClass.CollectorGroupConfigurations getConfigurations(int index) { + return configurations_.get(index); } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( + public agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder getConfigurationsOrBuilder( int index) { - return groups_.get(index); + return configurations_.get(index); } - public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - * string request_id = 3; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } + public static final int COLLECTOR_ID_FIELD_NUMBER = 5; + private int collectorId_ = 0; /** - * string request_id = 3; - * @return The bytes for requestId. + * int32 collector_id = 5; + * @return The collectorId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getCollectorId() { + return collectorId_; } private byte memoizedIsInitialized = -1; @@ -6504,14 +5608,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectorKey_); + if (id_ != 0) { + output.writeInt32(1, id_); } - for (int i = 0; i < groups_.size(); i++) { - output.writeMessage(2, groups_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupDescription_); + } + for (int i = 0; i < configurations_.size(); i++) { + output.writeMessage(4, configurations_.get(i)); + } + if (collectorId_ != 0) { + output.writeInt32(5, collectorId_); } getUnknownFields().writeTo(output); } @@ -6522,15 +5632,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectorKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectorKey_); + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, id_); } - for (int i = 0; i < groups_.size(); i++) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupDescription_); + } + for (int i = 0; i < configurations_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, groups_.get(i)); + .computeMessageSize(4, configurations_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + if (collectorId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, collectorId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6542,17 +5660,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.CollectorConfig)) { + if (!(obj instanceof agent.CollectorOuterClass.CollectorConfigGroup)) { return super.equals(obj); } - agent.CollectorOuterClass.CollectorConfig other = (agent.CollectorOuterClass.CollectorConfig) obj; + agent.CollectorOuterClass.CollectorConfigGroup other = (agent.CollectorOuterClass.CollectorConfigGroup) obj; - if (!getCollectorKey() - .equals(other.getCollectorKey())) return false; - if (!getGroupsList() - .equals(other.getGroupsList())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (getId() + != other.getId()) return false; + if (!getGroupName() + .equals(other.getGroupName())) return false; + if (!getGroupDescription() + .equals(other.getGroupDescription())) return false; + if (!getConfigurationsList() + .equals(other.getConfigurationsList())) return false; + if (getCollectorId() + != other.getCollectorId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6564,57 +5686,61 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLLECTOR_KEY_FIELD_NUMBER; - hash = (53 * hash) + getCollectorKey().hashCode(); - if (getGroupsCount() > 0) { - hash = (37 * hash) + GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getGroupsList().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + GROUP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGroupName().hashCode(); + hash = (37 * hash) + GROUP_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getGroupDescription().hashCode(); + if (getConfigurationsCount() > 0) { + hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurationsList().hashCode(); } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + COLLECTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getCollectorId(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom(byte[] data) + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6622,26 +5748,26 @@ public static agent.CollectorOuterClass.CollectorConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorConfig parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorConfigGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorConfig parseDelimitedFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup 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 agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorConfig parseFrom( + public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6654,7 +5780,7 @@ public static agent.CollectorOuterClass.CollectorConfig parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.CollectorConfig prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.CollectorConfigGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -6670,26 +5796,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.CollectorConfig} + * Protobuf type {@code agent.CollectorConfigGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorConfig) - agent.CollectorOuterClass.CollectorConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.CollectorConfigGroup) + agent.CollectorOuterClass.CollectorConfigGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorConfig.class, agent.CollectorOuterClass.CollectorConfig.Builder.class); + agent.CollectorOuterClass.CollectorConfigGroup.class, agent.CollectorOuterClass.CollectorConfigGroup.Builder.class); } - // Construct using agent.CollectorOuterClass.CollectorConfig.newBuilder() + // Construct using agent.CollectorOuterClass.CollectorConfigGroup.newBuilder() private Builder() { } @@ -6703,32 +5829,34 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - collectorKey_ = ""; - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); + id_ = 0; + groupName_ = ""; + groupDescription_ = ""; + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); } else { - groups_ = null; - groupsBuilder_.clear(); + configurations_ = null; + configurationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - requestId_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + collectorId_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfig_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.CollectorConfig getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorConfig.getDefaultInstance(); + public agent.CollectorOuterClass.CollectorConfigGroup getDefaultInstanceForType() { + return agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.CollectorConfig build() { - agent.CollectorOuterClass.CollectorConfig result = buildPartial(); + public agent.CollectorOuterClass.CollectorConfigGroup build() { + agent.CollectorOuterClass.CollectorConfigGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6736,33 +5864,39 @@ public agent.CollectorOuterClass.CollectorConfig build() { } @java.lang.Override - public agent.CollectorOuterClass.CollectorConfig buildPartial() { - agent.CollectorOuterClass.CollectorConfig result = new agent.CollectorOuterClass.CollectorConfig(this); + public agent.CollectorOuterClass.CollectorConfigGroup buildPartial() { + agent.CollectorOuterClass.CollectorConfigGroup result = new agent.CollectorOuterClass.CollectorConfigGroup(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(agent.CollectorOuterClass.CollectorConfig result) { - if (groupsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - bitField0_ = (bitField0_ & ~0x00000002); + private void buildPartialRepeatedFields(agent.CollectorOuterClass.CollectorConfigGroup result) { + if (configurationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + configurations_ = java.util.Collections.unmodifiableList(configurations_); + bitField0_ = (bitField0_ & ~0x00000008); } - result.groups_ = groups_; + result.configurations_ = configurations_; } else { - result.groups_ = groupsBuilder_.build(); + result.configurations_ = configurationsBuilder_.build(); } } - private void buildPartial0(agent.CollectorOuterClass.CollectorConfig result) { + private void buildPartial0(agent.CollectorOuterClass.CollectorConfigGroup result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.collectorKey_ = collectorKey_; + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupName_ = groupName_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.requestId_ = requestId_; + result.groupDescription_ = groupDescription_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.collectorId_ = collectorId_; } } @@ -6800,51 +5934,57 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.CollectorConfig) { - return mergeFrom((agent.CollectorOuterClass.CollectorConfig)other); + if (other instanceof agent.CollectorOuterClass.CollectorConfigGroup) { + return mergeFrom((agent.CollectorOuterClass.CollectorConfigGroup)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.CollectorConfig other) { - if (other == agent.CollectorOuterClass.CollectorConfig.getDefaultInstance()) return this; - if (!other.getCollectorKey().isEmpty()) { - collectorKey_ = other.collectorKey_; - bitField0_ |= 0x00000001; + public Builder mergeFrom(agent.CollectorOuterClass.CollectorConfigGroup other) { + if (other == agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance()) return this; + if (other.getId() != 0) { + setId(other.getId()); + } + if (!other.getGroupName().isEmpty()) { + groupName_ = other.groupName_; + bitField0_ |= 0x00000002; onChanged(); } - if (groupsBuilder_ == null) { - if (!other.groups_.isEmpty()) { - if (groups_.isEmpty()) { - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000002); + if (!other.getGroupDescription().isEmpty()) { + groupDescription_ = other.groupDescription_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (configurationsBuilder_ == null) { + if (!other.configurations_.isEmpty()) { + if (configurations_.isEmpty()) { + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000008); } else { - ensureGroupsIsMutable(); - groups_.addAll(other.groups_); + ensureConfigurationsIsMutable(); + configurations_.addAll(other.configurations_); } onChanged(); } } else { - if (!other.groups_.isEmpty()) { - if (groupsBuilder_.isEmpty()) { - groupsBuilder_.dispose(); - groupsBuilder_ = null; - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000002); - groupsBuilder_ = + if (!other.configurations_.isEmpty()) { + if (configurationsBuilder_.isEmpty()) { + configurationsBuilder_.dispose(); + configurationsBuilder_ = null; + configurations_ = other.configurations_; + bitField0_ = (bitField0_ & ~0x00000008); + configurationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupsFieldBuilder() : null; + getConfigurationsFieldBuilder() : null; } else { - groupsBuilder_.addAllMessages(other.groups_); + configurationsBuilder_.addAllMessages(other.configurations_); } } } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000004; - onChanged(); + if (other.getCollectorId() != 0) { + setCollectorId(other.getCollectorId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -6872,29 +6012,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - collectorKey_ = input.readStringRequireUtf8(); + case 8: { + id_ = input.readInt32(); bitField0_ |= 0x00000001; break; - } // case 10 + } // case 8 case 18: { - agent.CollectorOuterClass.CollectorConfigGroup m = - input.readMessage( - agent.CollectorOuterClass.CollectorConfigGroup.parser(), - extensionRegistry); - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(m); - } else { - groupsBuilder_.addMessage(m); - } + groupName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; break; } // case 18 case 26: { - requestId_ = input.readStringRequireUtf8(); + groupDescription_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 + case 34: { + agent.CollectorOuterClass.CollectorGroupConfigurations m = + input.readMessage( + agent.CollectorOuterClass.CollectorGroupConfigurations.parser(), + extensionRegistry); + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(m); + } else { + configurationsBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + collectorId_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -6912,386 +6062,450 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object collectorKey_ = ""; + private int id_ ; /** - * string collector_key = 1; - * @return The collectorKey. + * int32 id = 1; + * @return The id. */ - public java.lang.String getCollectorKey() { - java.lang.Object ref = collectorKey_; + @java.lang.Override + public int getId() { + return id_; + } + /** + * int32 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; + onChanged(); + return this; + } + + private java.lang.Object groupName_ = ""; + /** + * string group_name = 2; + * @return The groupName. + */ + public java.lang.String getGroupName() { + java.lang.Object ref = groupName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - collectorKey_ = s; + groupName_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string collector_key = 1; - * @return The bytes for collectorKey. + * string group_name = 2; + * @return The bytes for groupName. */ public com.google.protobuf.ByteString - getCollectorKeyBytes() { - java.lang.Object ref = collectorKey_; + getGroupNameBytes() { + java.lang.Object ref = groupName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - collectorKey_ = b; + groupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string collector_key = 1; - * @param value The collectorKey to set. + * string group_name = 2; + * @param value The groupName to set. * @return This builder for chaining. */ - public Builder setCollectorKey( + public Builder setGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - collectorKey_ = value; - bitField0_ |= 0x00000001; + groupName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string collector_key = 1; + * string group_name = 2; * @return This builder for chaining. */ - public Builder clearCollectorKey() { - collectorKey_ = getDefaultInstance().getCollectorKey(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearGroupName() { + groupName_ = getDefaultInstance().getGroupName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * string collector_key = 1; - * @param value The bytes for collectorKey to set. + * string group_name = 2; + * @param value The bytes for groupName to set. * @return This builder for chaining. */ - public Builder setCollectorKeyBytes( + public Builder setGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - collectorKey_ = value; - bitField0_ |= 0x00000001; + groupName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private java.util.List groups_ = + private java.lang.Object groupDescription_ = ""; + /** + * string group_description = 3; + * @return The groupDescription. + */ + public java.lang.String getGroupDescription() { + java.lang.Object ref = groupDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string group_description = 3; + * @return The bytes for groupDescription. + */ + public com.google.protobuf.ByteString + getGroupDescriptionBytes() { + java.lang.Object ref = groupDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + groupDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string group_description = 3; + * @param value The groupDescription to set. + * @return This builder for chaining. + */ + public Builder setGroupDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + groupDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string group_description = 3; + * @return This builder for chaining. + */ + public Builder clearGroupDescription() { + groupDescription_ = getDefaultInstance().getGroupDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string group_description = 3; + * @param value The bytes for groupDescription to set. + * @return This builder for chaining. + */ + public Builder setGroupDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + groupDescription_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List configurations_ = java.util.Collections.emptyList(); - private void ensureGroupsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - groups_ = new java.util.ArrayList(groups_); - bitField0_ |= 0x00000002; + private void ensureConfigurationsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + configurations_ = new java.util.ArrayList(configurations_); + bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfigGroup, agent.CollectorOuterClass.CollectorConfigGroup.Builder, agent.CollectorOuterClass.CollectorConfigGroupOrBuilder> groupsBuilder_; + agent.CollectorOuterClass.CollectorGroupConfigurations, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder, agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder> configurationsBuilder_; /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public java.util.List getGroupsList() { - if (groupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(groups_); + public java.util.List getConfigurationsList() { + if (configurationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(configurations_); } else { - return groupsBuilder_.getMessageList(); + return configurationsBuilder_.getMessageList(); } } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public int getGroupsCount() { - if (groupsBuilder_ == null) { - return groups_.size(); + public int getConfigurationsCount() { + if (configurationsBuilder_ == null) { + return configurations_.size(); } else { - return groupsBuilder_.getCount(); + return configurationsBuilder_.getCount(); } } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public agent.CollectorOuterClass.CollectorConfigGroup getGroups(int index) { - if (groupsBuilder_ == null) { - return groups_.get(index); + public agent.CollectorOuterClass.CollectorGroupConfigurations getConfigurations(int index) { + if (configurationsBuilder_ == null) { + return configurations_.get(index); } else { - return groupsBuilder_.getMessage(index); + return configurationsBuilder_.getMessage(index); } } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder setGroups( - int index, agent.CollectorOuterClass.CollectorConfigGroup value) { - if (groupsBuilder_ == null) { + public Builder setConfigurations( + int index, agent.CollectorOuterClass.CollectorGroupConfigurations value) { + if (configurationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroupsIsMutable(); - groups_.set(index, value); + ensureConfigurationsIsMutable(); + configurations_.set(index, value); onChanged(); } else { - groupsBuilder_.setMessage(index, value); + configurationsBuilder_.setMessage(index, value); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder setGroups( - int index, agent.CollectorOuterClass.CollectorConfigGroup.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.set(index, builderForValue.build()); + public Builder setConfigurations( + int index, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.set(index, builderForValue.build()); onChanged(); } else { - groupsBuilder_.setMessage(index, builderForValue.build()); + configurationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder addGroups(agent.CollectorOuterClass.CollectorConfigGroup value) { - if (groupsBuilder_ == null) { + public Builder addConfigurations(agent.CollectorOuterClass.CollectorGroupConfigurations value) { + if (configurationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroupsIsMutable(); - groups_.add(value); + ensureConfigurationsIsMutable(); + configurations_.add(value); onChanged(); } else { - groupsBuilder_.addMessage(value); + configurationsBuilder_.addMessage(value); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder addGroups( - int index, agent.CollectorOuterClass.CollectorConfigGroup value) { - if (groupsBuilder_ == null) { + public Builder addConfigurations( + int index, agent.CollectorOuterClass.CollectorGroupConfigurations value) { + if (configurationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroupsIsMutable(); - groups_.add(index, value); + ensureConfigurationsIsMutable(); + configurations_.add(index, value); onChanged(); } else { - groupsBuilder_.addMessage(index, value); + configurationsBuilder_.addMessage(index, value); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder addGroups( - agent.CollectorOuterClass.CollectorConfigGroup.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(builderForValue.build()); + public Builder addConfigurations( + agent.CollectorOuterClass.CollectorGroupConfigurations.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(builderForValue.build()); onChanged(); } else { - groupsBuilder_.addMessage(builderForValue.build()); + configurationsBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder addGroups( - int index, agent.CollectorOuterClass.CollectorConfigGroup.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(index, builderForValue.build()); + public Builder addConfigurations( + int index, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder builderForValue) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.add(index, builderForValue.build()); onChanged(); } else { - groupsBuilder_.addMessage(index, builderForValue.build()); + configurationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder addAllGroups( - java.lang.Iterable values) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); + public Builder addAllConfigurations( + java.lang.Iterable values) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groups_); + values, configurations_); onChanged(); } else { - groupsBuilder_.addAllMessages(values); + configurationsBuilder_.addAllMessages(values); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder clearGroups() { - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearConfigurations() { + if (configurationsBuilder_ == null) { + configurations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { - groupsBuilder_.clear(); + configurationsBuilder_.clear(); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public Builder removeGroups(int index) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.remove(index); + public Builder removeConfigurations(int index) { + if (configurationsBuilder_ == null) { + ensureConfigurationsIsMutable(); + configurations_.remove(index); onChanged(); } else { - groupsBuilder_.remove(index); + configurationsBuilder_.remove(index); } return this; } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public agent.CollectorOuterClass.CollectorConfigGroup.Builder getGroupsBuilder( + public agent.CollectorOuterClass.CollectorGroupConfigurations.Builder getConfigurationsBuilder( int index) { - return getGroupsFieldBuilder().getBuilder(index); + return getConfigurationsFieldBuilder().getBuilder(index); } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public agent.CollectorOuterClass.CollectorConfigGroupOrBuilder getGroupsOrBuilder( + public agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder getConfigurationsOrBuilder( int index) { - if (groupsBuilder_ == null) { - return groups_.get(index); } else { - return groupsBuilder_.getMessageOrBuilder(index); + if (configurationsBuilder_ == null) { + return configurations_.get(index); } else { + return configurationsBuilder_.getMessageOrBuilder(index); } } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public java.util.List - getGroupsOrBuilderList() { - if (groupsBuilder_ != null) { - return groupsBuilder_.getMessageOrBuilderList(); + public java.util.List + getConfigurationsOrBuilderList() { + if (configurationsBuilder_ != null) { + return configurationsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(groups_); + return java.util.Collections.unmodifiableList(configurations_); } } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder() { - return getGroupsFieldBuilder().addBuilder( - agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance()); + public agent.CollectorOuterClass.CollectorGroupConfigurations.Builder addConfigurationsBuilder() { + return getConfigurationsFieldBuilder().addBuilder( + agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance()); } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public agent.CollectorOuterClass.CollectorConfigGroup.Builder addGroupsBuilder( + public agent.CollectorOuterClass.CollectorGroupConfigurations.Builder addConfigurationsBuilder( int index) { - return getGroupsFieldBuilder().addBuilder( - index, agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance()); + return getConfigurationsFieldBuilder().addBuilder( + index, agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance()); } /** - * repeated .agent.CollectorConfigGroup groups = 2; + * repeated .agent.CollectorGroupConfigurations configurations = 4; */ - public java.util.List - getGroupsBuilderList() { - return getGroupsFieldBuilder().getBuilderList(); + public java.util.List + getConfigurationsBuilderList() { + return getConfigurationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfigGroup, agent.CollectorOuterClass.CollectorConfigGroup.Builder, agent.CollectorOuterClass.CollectorConfigGroupOrBuilder> - getGroupsFieldBuilder() { - if (groupsBuilder_ == null) { - groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorConfigGroup, agent.CollectorOuterClass.CollectorConfigGroup.Builder, agent.CollectorOuterClass.CollectorConfigGroupOrBuilder>( - groups_, - ((bitField0_ & 0x00000002) != 0), + agent.CollectorOuterClass.CollectorGroupConfigurations, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder, agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder> + getConfigurationsFieldBuilder() { + if (configurationsBuilder_ == null) { + configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + agent.CollectorOuterClass.CollectorGroupConfigurations, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder, agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder>( + configurations_, + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - groups_ = null; + configurations_ = null; } - return groupsBuilder_; + return configurationsBuilder_; } - private java.lang.Object requestId_ = ""; - /** - * string request_id = 3; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string request_id = 3; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private int collectorId_ ; /** - * string request_id = 3; - * @param value The requestId to set. - * @return This builder for chaining. + * int32 collector_id = 5; + * @return The collectorId. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - requestId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public int getCollectorId() { + return collectorId_; } /** - * string request_id = 3; + * int32 collector_id = 5; + * @param value The collectorId to set. * @return This builder for chaining. */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder setCollectorId(int value) { + + collectorId_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } /** - * string request_id = 3; - * @param value The bytes for requestId to set. + * int32 collector_id = 5; * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000004; + public Builder clearCollectorId() { + bitField0_ = (bitField0_ & ~0x00000010); + collectorId_ = 0; onChanged(); return this; } @@ -7308,23 +6522,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.CollectorConfig) + // @@protoc_insertion_point(builder_scope:agent.CollectorConfigGroup) } - // @@protoc_insertion_point(class_scope:agent.CollectorConfig) - private static final agent.CollectorOuterClass.CollectorConfig DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.CollectorConfigGroup) + private static final agent.CollectorOuterClass.CollectorConfigGroup DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorConfig(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorConfigGroup(); } - public static agent.CollectorOuterClass.CollectorConfig getDefaultInstance() { + public static agent.CollectorOuterClass.CollectorConfigGroup getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CollectorConfig parsePartialFrom( + public CollectorConfigGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7343,24 +6557,24 @@ public CollectorConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.CollectorConfig getDefaultInstanceForType() { + public agent.CollectorOuterClass.CollectorConfigGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CollectorConfigGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorConfigGroup) + public interface CollectorGroupConfigurationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.CollectorGroupConfigurations) com.google.protobuf.MessageOrBuilder { /** @@ -7370,95 +6584,115 @@ public interface CollectorConfigGroupOrBuilder extends int getId(); /** - * string group_name = 3; - * @return The groupName. + * int32 group_id = 2; + * @return The groupId. */ - java.lang.String getGroupName(); + int getGroupId(); + /** - * string group_name = 3; - * @return The bytes for groupName. + * string conf_key = 3; + * @return The confKey. + */ + java.lang.String getConfKey(); + /** + * string conf_key = 3; + * @return The bytes for confKey. */ com.google.protobuf.ByteString - getGroupNameBytes(); + getConfKeyBytes(); /** - * string group_description = 4; - * @return The groupDescription. + * string conf_value = 4; + * @return The confValue. */ - java.lang.String getGroupDescription(); + java.lang.String getConfValue(); /** - * string group_description = 4; - * @return The bytes for groupDescription. + * string conf_value = 4; + * @return The bytes for confValue. */ com.google.protobuf.ByteString - getGroupDescriptionBytes(); + getConfValueBytes(); /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string conf_name = 5; + * @return The confName. */ - java.util.List - getConfigurationsList(); + java.lang.String getConfName(); /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string conf_name = 5; + * @return The bytes for confName. */ - agent.CollectorOuterClass.CollectorGroupConfigurations getConfigurations(int index); + com.google.protobuf.ByteString + getConfNameBytes(); + /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string conf_description = 6; + * @return The confDescription. */ - int getConfigurationsCount(); + java.lang.String getConfDescription(); /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string conf_description = 6; + * @return The bytes for confDescription. */ - java.util.List - getConfigurationsOrBuilderList(); + com.google.protobuf.ByteString + getConfDescriptionBytes(); + /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string conf_data_type = 7; + * @return The confDataType. */ - agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder getConfigurationsOrBuilder( - int index); + java.lang.String getConfDataType(); + /** + * string conf_data_type = 7; + * @return The bytes for confDataType. + */ + com.google.protobuf.ByteString + getConfDataTypeBytes(); /** - * int32 collector_id = 6; - * @return The collectorId. + * bool conf_required = 8; + * @return The confRequired. */ - int getCollectorId(); + boolean getConfRequired(); } /** - * Protobuf type {@code agent.CollectorConfigGroup} + * Protobuf type {@code agent.CollectorGroupConfigurations} */ - public static final class CollectorConfigGroup extends + public static final class CollectorGroupConfigurations extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorConfigGroup) - CollectorConfigGroupOrBuilder { + // @@protoc_insertion_point(message_implements:agent.CollectorGroupConfigurations) + CollectorGroupConfigurationsOrBuilder { private static final long serialVersionUID = 0L; - // Use CollectorConfigGroup.newBuilder() to construct. - private CollectorConfigGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CollectorGroupConfigurations.newBuilder() to construct. + private CollectorGroupConfigurations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CollectorConfigGroup() { - groupName_ = ""; - groupDescription_ = ""; - configurations_ = java.util.Collections.emptyList(); + private CollectorGroupConfigurations() { + confKey_ = ""; + confValue_ = ""; + confName_ = ""; + confDescription_ = ""; + confDataType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CollectorConfigGroup(); + return new CollectorGroupConfigurations(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_descriptor; + return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorConfigGroup.class, agent.CollectorOuterClass.CollectorConfigGroup.Builder.class); + agent.CollectorOuterClass.CollectorGroupConfigurations.class, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @@ -7468,1052 +6702,1871 @@ protected java.lang.Object newInstance( * @return The id. */ @java.lang.Override - public int getId() { - return id_; + public int getId() { + return id_; + } + + public static final int GROUP_ID_FIELD_NUMBER = 2; + private int groupId_ = 0; + /** + * int32 group_id = 2; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + + public static final int CONF_KEY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object confKey_ = ""; + /** + * string conf_key = 3; + * @return The confKey. + */ + @java.lang.Override + public java.lang.String getConfKey() { + java.lang.Object ref = confKey_; + 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(); + confKey_ = s; + return s; + } + } + /** + * string conf_key = 3; + * @return The bytes for confKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfKeyBytes() { + java.lang.Object ref = confKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONF_VALUE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object confValue_ = ""; + /** + * string conf_value = 4; + * @return The confValue. + */ + @java.lang.Override + public java.lang.String getConfValue() { + java.lang.Object ref = confValue_; + 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(); + confValue_ = s; + return s; + } + } + /** + * string conf_value = 4; + * @return The bytes for confValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfValueBytes() { + java.lang.Object ref = confValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONF_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object confName_ = ""; + /** + * string conf_name = 5; + * @return The confName. + */ + @java.lang.Override + public java.lang.String getConfName() { + java.lang.Object ref = confName_; + 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(); + confName_ = s; + return s; + } + } + /** + * string conf_name = 5; + * @return The bytes for confName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfNameBytes() { + java.lang.Object ref = confName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int GROUP_NAME_FIELD_NUMBER = 3; + public static final int CONF_DESCRIPTION_FIELD_NUMBER = 6; @SuppressWarnings("serial") - private volatile java.lang.Object groupName_ = ""; + private volatile java.lang.Object confDescription_ = ""; /** - * string group_name = 3; - * @return The groupName. + * string conf_description = 6; + * @return The confDescription. */ @java.lang.Override - public java.lang.String getGroupName() { - java.lang.Object ref = groupName_; + public java.lang.String getConfDescription() { + java.lang.Object ref = confDescription_; 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(); - groupName_ = s; + confDescription_ = s; return s; } } /** - * string group_name = 3; - * @return The bytes for groupName. + * string conf_description = 6; + * @return The bytes for confDescription. */ @java.lang.Override public com.google.protobuf.ByteString - getGroupNameBytes() { - java.lang.Object ref = groupName_; + getConfDescriptionBytes() { + java.lang.Object ref = confDescription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - groupName_ = b; + confDescription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int GROUP_DESCRIPTION_FIELD_NUMBER = 4; + public static final int CONF_DATA_TYPE_FIELD_NUMBER = 7; @SuppressWarnings("serial") - private volatile java.lang.Object groupDescription_ = ""; + private volatile java.lang.Object confDataType_ = ""; /** - * string group_description = 4; - * @return The groupDescription. + * string conf_data_type = 7; + * @return The confDataType. */ @java.lang.Override - public java.lang.String getGroupDescription() { - java.lang.Object ref = groupDescription_; + public java.lang.String getConfDataType() { + java.lang.Object ref = confDataType_; 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(); - groupDescription_ = s; + confDataType_ = s; return s; } } - /** - * string group_description = 4; - * @return The bytes for groupDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGroupDescriptionBytes() { - java.lang.Object ref = groupDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * string conf_data_type = 7; + * @return The bytes for confDataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConfDataTypeBytes() { + java.lang.Object ref = confDataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confDataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONF_REQUIRED_FIELD_NUMBER = 8; + private boolean confRequired_ = false; + /** + * bool conf_required = 8; + * @return The confRequired. + */ + @java.lang.Override + public boolean getConfRequired() { + return confRequired_; + } + + 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 (id_ != 0) { + output.writeInt32(1, id_); + } + if (groupId_ != 0) { + output.writeInt32(2, groupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, confKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, confValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, confName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, confDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, confDataType_); + } + if (confRequired_ != false) { + output.writeBool(8, confRequired_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, id_); + } + if (groupId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, groupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, confKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, confValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, confName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, confDescription_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, confDataType_); + } + if (confRequired_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, confRequired_); + } + 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 agent.CollectorOuterClass.CollectorGroupConfigurations)) { + return super.equals(obj); + } + agent.CollectorOuterClass.CollectorGroupConfigurations other = (agent.CollectorOuterClass.CollectorGroupConfigurations) obj; + + if (getId() + != other.getId()) return false; + if (getGroupId() + != other.getGroupId()) return false; + if (!getConfKey() + .equals(other.getConfKey())) return false; + if (!getConfValue() + .equals(other.getConfValue())) return false; + if (!getConfName() + .equals(other.getConfName())) return false; + if (!getConfDescription() + .equals(other.getConfDescription())) return false; + if (!getConfDataType() + .equals(other.getConfDataType())) return false; + if (getConfRequired() + != other.getConfRequired()) 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(); + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId(); + hash = (37 * hash) + CONF_KEY_FIELD_NUMBER; + hash = (53 * hash) + getConfKey().hashCode(); + hash = (37 * hash) + CONF_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getConfValue().hashCode(); + hash = (37 * hash) + CONF_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConfName().hashCode(); + hash = (37 * hash) + CONF_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getConfDescription().hashCode(); + hash = (37 * hash) + CONF_DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConfDataType().hashCode(); + hash = (37 * hash) + CONF_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getConfRequired()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static agent.CollectorOuterClass.CollectorGroupConfigurations 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 agent.CollectorOuterClass.CollectorGroupConfigurations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static final int CONFIGURATIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List configurations_; - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - @java.lang.Override - public java.util.List getConfigurationsList() { - return configurations_; + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - @java.lang.Override - public java.util.List - getConfigurationsOrBuilderList() { - return configurations_; + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - @java.lang.Override - public int getConfigurationsCount() { - return configurations_.size(); + public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ + @java.lang.Override - public agent.CollectorOuterClass.CollectorGroupConfigurations getConfigurations(int index) { - return configurations_.get(index); + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder getConfigurationsOrBuilder( - int index) { - return configurations_.get(index); + public static Builder newBuilder(agent.CollectorOuterClass.CollectorGroupConfigurations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - - public static final int COLLECTOR_ID_FIELD_NUMBER = 6; - private int collectorId_ = 0; - /** - * int32 collector_id = 6; - * @return The collectorId. - */ @java.lang.Override - public int getCollectorId() { - return collectorId_; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - 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; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != 0) { - output.writeInt32(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, groupDescription_); - } - for (int i = 0; i < configurations_.size(); i++) { - output.writeMessage(5, configurations_.get(i)); + /** + * Protobuf type {@code agent.CollectorGroupConfigurations} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:agent.CollectorGroupConfigurations) + agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_descriptor; } - if (collectorId_ != 0) { - output.writeInt32(6, collectorId_); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.CollectorOuterClass.CollectorGroupConfigurations.class, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder.class); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // Construct using agent.CollectorOuterClass.CollectorGroupConfigurations.newBuilder() + private Builder() { - size = 0; - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, id_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupName_); + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, groupDescription_); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = 0; + groupId_ = 0; + confKey_ = ""; + confValue_ = ""; + confName_ = ""; + confDescription_ = ""; + confDataType_ = ""; + confRequired_ = false; + return this; } - for (int i = 0; i < configurations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, configurations_.get(i)); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_descriptor; } - if (collectorId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, collectorId_); + + @java.lang.Override + public agent.CollectorOuterClass.CollectorGroupConfigurations getDefaultInstanceForType() { + return agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance(); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @java.lang.Override + public agent.CollectorOuterClass.CollectorGroupConfigurations build() { + agent.CollectorOuterClass.CollectorGroupConfigurations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - if (!(obj instanceof agent.CollectorOuterClass.CollectorConfigGroup)) { - return super.equals(obj); + + @java.lang.Override + public agent.CollectorOuterClass.CollectorGroupConfigurations buildPartial() { + agent.CollectorOuterClass.CollectorGroupConfigurations result = new agent.CollectorOuterClass.CollectorGroupConfigurations(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; } - agent.CollectorOuterClass.CollectorConfigGroup other = (agent.CollectorOuterClass.CollectorConfigGroup) obj; - if (getId() - != other.getId()) return false; - if (!getGroupName() - .equals(other.getGroupName())) return false; - if (!getGroupDescription() - .equals(other.getGroupDescription())) return false; - if (!getConfigurationsList() - .equals(other.getConfigurationsList())) return false; - if (getCollectorId() - != other.getCollectorId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private void buildPartial0(agent.CollectorOuterClass.CollectorGroupConfigurations result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupId_ = groupId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confKey_ = confKey_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confValue_ = confValue_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confName_ = confName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.confDescription_ = confDescription_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.confDataType_ = confDataType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.confRequired_ = confRequired_; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @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); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - hash = (37 * hash) + GROUP_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGroupName().hashCode(); - hash = (37 * hash) + GROUP_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getGroupDescription().hashCode(); - if (getConfigurationsCount() > 0) { - hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; - hash = (53 * hash) + getConfigurationsList().hashCode(); + @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 agent.CollectorOuterClass.CollectorGroupConfigurations) { + return mergeFrom((agent.CollectorOuterClass.CollectorGroupConfigurations)other); + } else { + super.mergeFrom(other); + return this; + } } - hash = (37 * hash) + COLLECTOR_ID_FIELD_NUMBER; - hash = (53 * hash) + getCollectorId(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.CollectorConfigGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.CollectorConfigGroup 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 agent.CollectorOuterClass.CollectorConfigGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } + public Builder mergeFrom(agent.CollectorOuterClass.CollectorGroupConfigurations other) { + if (other == agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance()) return this; + if (other.getId() != 0) { + setId(other.getId()); + } + if (other.getGroupId() != 0) { + setGroupId(other.getGroupId()); + } + if (!other.getConfKey().isEmpty()) { + confKey_ = other.confKey_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getConfValue().isEmpty()) { + confValue_ = other.confValue_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getConfName().isEmpty()) { + confName_ = other.confName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getConfDescription().isEmpty()) { + confDescription_ = other.confDescription_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getConfDataType().isEmpty()) { + confDataType_ = other.confDataType_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getConfRequired() != false) { + setConfRequired(other.getConfRequired()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static agent.CollectorOuterClass.CollectorConfigGroup 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 agent.CollectorOuterClass.CollectorConfigGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.CollectorConfigGroup 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 final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(agent.CollectorOuterClass.CollectorConfigGroup 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 + 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: { + id_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + groupId_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + confKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + confValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + confName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + confDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + confDataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + confRequired_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code agent.CollectorConfigGroup} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorConfigGroup) - agent.CollectorOuterClass.CollectorConfigGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_descriptor; + private int id_ ; + /** + * int32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; } + /** + * int32 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorConfigGroup.class, agent.CollectorOuterClass.CollectorConfigGroup.Builder.class); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; + onChanged(); + return this; } - // Construct using agent.CollectorOuterClass.CollectorConfigGroup.newBuilder() - private Builder() { + private int groupId_ ; + /** + * int32 group_id = 2; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + /** + * int32 group_id = 2; + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(int value) { + groupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 group_id = 2; + * @return This builder for chaining. + */ + public Builder clearGroupId() { + bitField0_ = (bitField0_ & ~0x00000002); + groupId_ = 0; + onChanged(); + return this; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + private java.lang.Object confKey_ = ""; + /** + * string conf_key = 3; + * @return The confKey. + */ + public java.lang.String getConfKey() { + java.lang.Object ref = confKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string conf_key = 3; + * @return The bytes for confKey. + */ + public com.google.protobuf.ByteString + getConfKeyBytes() { + java.lang.Object ref = confKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string conf_key = 3; + * @param value The confKey to set. + * @return This builder for chaining. + */ + public Builder setConfKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + confKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string conf_key = 3; + * @return This builder for chaining. + */ + public Builder clearConfKey() { + confKey_ = getDefaultInstance().getConfKey(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string conf_key = 3; + * @param value The bytes for confKey to set. + * @return This builder for chaining. + */ + public Builder setConfKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + confKey_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object confValue_ = ""; + /** + * string conf_value = 4; + * @return The confValue. + */ + public java.lang.String getConfValue() { + java.lang.Object ref = confValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = 0; - groupName_ = ""; - groupDescription_ = ""; - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); + /** + * string conf_value = 4; + * @return The bytes for confValue. + */ + public com.google.protobuf.ByteString + getConfValueBytes() { + java.lang.Object ref = confValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confValue_ = b; + return b; } else { - configurations_ = null; - configurationsBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } + } + /** + * string conf_value = 4; + * @param value The confValue to set. + * @return This builder for chaining. + */ + public Builder setConfValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + confValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string conf_value = 4; + * @return This builder for chaining. + */ + public Builder clearConfValue() { + confValue_ = getDefaultInstance().getConfValue(); bitField0_ = (bitField0_ & ~0x00000008); - collectorId_ = 0; + onChanged(); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorConfigGroup_descriptor; + /** + * string conf_value = 4; + * @param value The bytes for confValue to set. + * @return This builder for chaining. + */ + public Builder setConfValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + confValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroup getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance(); + private java.lang.Object confName_ = ""; + /** + * string conf_name = 5; + * @return The confName. + */ + public java.lang.String getConfName() { + java.lang.Object ref = confName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroup build() { - agent.CollectorOuterClass.CollectorConfigGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * string conf_name = 5; + * @return The bytes for confName. + */ + public com.google.protobuf.ByteString + getConfNameBytes() { + java.lang.Object ref = confName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return result; } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroup buildPartial() { - agent.CollectorOuterClass.CollectorConfigGroup result = new agent.CollectorOuterClass.CollectorConfigGroup(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; + /** + * string conf_name = 5; + * @param value The confName to set. + * @return This builder for chaining. + */ + public Builder setConfName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + confName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string conf_name = 5; + * @return This builder for chaining. + */ + public Builder clearConfName() { + confName_ = getDefaultInstance().getConfName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string conf_name = 5; + * @param value The bytes for confName to set. + * @return This builder for chaining. + */ + public Builder setConfNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + confName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } - private void buildPartialRepeatedFields(agent.CollectorOuterClass.CollectorConfigGroup result) { - if (configurationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.configurations_ = configurations_; + private java.lang.Object confDescription_ = ""; + /** + * string conf_description = 6; + * @return The confDescription. + */ + public java.lang.String getConfDescription() { + java.lang.Object ref = confDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confDescription_ = s; + return s; } else { - result.configurations_ = configurationsBuilder_.build(); + return (java.lang.String) ref; } } - - private void buildPartial0(agent.CollectorOuterClass.CollectorConfigGroup result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.groupName_ = groupName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.groupDescription_ = groupDescription_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.collectorId_ = collectorId_; + /** + * string conf_description = 6; + * @return The bytes for confDescription. + */ + public com.google.protobuf.ByteString + getConfDescriptionBytes() { + java.lang.Object ref = confDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - - @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); + /** + * string conf_description = 6; + * @param value The confDescription to set. + * @return This builder for chaining. + */ + public Builder setConfDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + confDescription_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * string conf_description = 6; + * @return This builder for chaining. + */ + public Builder clearConfDescription() { + confDescription_ = getDefaultInstance().getConfDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * string conf_description = 6; + * @param value The bytes for confDescription to set. + * @return This builder for chaining. + */ + public Builder setConfDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + confDescription_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.CollectorConfigGroup) { - return mergeFrom((agent.CollectorOuterClass.CollectorConfigGroup)other); + + private java.lang.Object confDataType_ = ""; + /** + * string conf_data_type = 7; + * @return The confDataType. + */ + public java.lang.String getConfDataType() { + java.lang.Object ref = confDataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confDataType_ = s; + return s; } else { - super.mergeFrom(other); - return this; + return (java.lang.String) ref; } } - - public Builder mergeFrom(agent.CollectorOuterClass.CollectorConfigGroup other) { - if (other == agent.CollectorOuterClass.CollectorConfigGroup.getDefaultInstance()) return this; - if (other.getId() != 0) { - setId(other.getId()); - } - if (!other.getGroupName().isEmpty()) { - groupName_ = other.groupName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getGroupDescription().isEmpty()) { - groupDescription_ = other.groupDescription_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (configurationsBuilder_ == null) { - if (!other.configurations_.isEmpty()) { - if (configurations_.isEmpty()) { - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureConfigurationsIsMutable(); - configurations_.addAll(other.configurations_); - } - onChanged(); - } + /** + * string conf_data_type = 7; + * @return The bytes for confDataType. + */ + public com.google.protobuf.ByteString + getConfDataTypeBytes() { + java.lang.Object ref = confDataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + confDataType_ = b; + return b; } else { - if (!other.configurations_.isEmpty()) { - if (configurationsBuilder_.isEmpty()) { - configurationsBuilder_.dispose(); - configurationsBuilder_ = null; - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000008); - configurationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigurationsFieldBuilder() : null; - } else { - configurationsBuilder_.addAllMessages(other.configurations_); - } - } - } - if (other.getCollectorId() != 0) { - setCollectorId(other.getCollectorId()); + return (com.google.protobuf.ByteString) ref; } - this.mergeUnknownFields(other.getUnknownFields()); + } + /** + * string conf_data_type = 7; + * @param value The confDataType to set. + * @return This builder for chaining. + */ + public Builder setConfDataType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + confDataType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string conf_data_type = 7; + * @return This builder for chaining. + */ + public Builder clearConfDataType() { + confDataType_ = getDefaultInstance().getConfDataType(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string conf_data_type = 7; + * @param value The bytes for confDataType to set. + * @return This builder for chaining. + */ + public Builder setConfDataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + confDataType_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } + private boolean confRequired_ ; + /** + * bool conf_required = 8; + * @return The confRequired. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public boolean getConfRequired() { + return confRequired_; + } + /** + * bool conf_required = 8; + * @param value The confRequired to set. + * @return This builder for chaining. + */ + public Builder setConfRequired(boolean value) { + + confRequired_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * bool conf_required = 8; + * @return This builder for chaining. + */ + public Builder clearConfRequired() { + bitField0_ = (bitField0_ & ~0x00000080); + confRequired_ = 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 Builder mergeFrom( + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:agent.CollectorGroupConfigurations) + } + + // @@protoc_insertion_point(class_scope:agent.CollectorGroupConfigurations) + private static final agent.CollectorOuterClass.CollectorGroupConfigurations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorGroupConfigurations(); + } + + public static agent.CollectorOuterClass.CollectorGroupConfigurations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectorGroupConfigurations parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - id_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 26: { - groupName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - groupDescription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - agent.CollectorOuterClass.CollectorGroupConfigurations m = - input.readMessage( - agent.CollectorOuterClass.CollectorGroupConfigurations.parser(), - extensionRegistry); - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(m); - } else { - configurationsBuilder_.addMessage(m); - } - break; - } // case 42 - case 48: { - collectorId_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) + builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + 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 agent.CollectorOuterClass.CollectorGroupConfigurations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConfigKnowledgeOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.ConfigKnowledge) + com.google.protobuf.MessageOrBuilder { + + /** + * string accepted = 1; + * @return The accepted. + */ + java.lang.String getAccepted(); + /** + * string accepted = 1; + * @return The bytes for accepted. + */ + com.google.protobuf.ByteString + getAcceptedBytes(); + + /** + * string request_id = 2; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * string request_id = 2; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + } + /** + * Protobuf type {@code agent.ConfigKnowledge} + */ + public static final class ConfigKnowledge extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:agent.ConfigKnowledge) + ConfigKnowledgeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigKnowledge.newBuilder() to construct. + private ConfigKnowledge(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConfigKnowledge() { + accepted_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConfigKnowledge(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.CollectorOuterClass.ConfigKnowledge.class, agent.CollectorOuterClass.ConfigKnowledge.Builder.class); + } + + public static final int ACCEPTED_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object accepted_ = ""; + /** + * string accepted = 1; + * @return The accepted. + */ + @java.lang.Override + public java.lang.String getAccepted() { + java.lang.Object ref = accepted_; + 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(); + accepted_ = s; + return s; + } + } + /** + * string accepted = 1; + * @return The bytes for accepted. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAcceptedBytes() { + java.lang.Object ref = accepted_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accepted_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - private int bitField0_; + } - private int id_ ; - /** - * int32 id = 1; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; + public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * string request_id = 2; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; } - /** - * int32 id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { + } + /** + * string request_id = 2; + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + 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(accepted_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accepted_); } - /** - * int32 id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); } + getUnknownFields().writeTo(output); + } - private java.lang.Object groupName_ = ""; - /** - * string group_name = 3; - * @return The groupName. - */ - public java.lang.String getGroupName() { - java.lang.Object ref = groupName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accepted_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accepted_); } - /** - * string group_name = 3; - * @return The bytes for groupName. - */ - public com.google.protobuf.ByteString - getGroupNameBytes() { - java.lang.Object ref = groupName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } - /** - * string group_name = 3; - * @param value The groupName to set. - * @return This builder for chaining. - */ - public Builder setGroupName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - groupName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - * string group_name = 3; - * @return This builder for chaining. - */ - public Builder clearGroupName() { - groupName_ = getDefaultInstance().getGroupName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + if (!(obj instanceof agent.CollectorOuterClass.ConfigKnowledge)) { + return super.equals(obj); + } + agent.CollectorOuterClass.ConfigKnowledge other = (agent.CollectorOuterClass.ConfigKnowledge) obj; + + if (!getAccepted() + .equals(other.getAccepted())) return false; + if (!getRequestId() + .equals(other.getRequestId())) 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) + ACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + getAccepted().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.CollectorOuterClass.ConfigKnowledge parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static agent.CollectorOuterClass.ConfigKnowledge 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 agent.CollectorOuterClass.ConfigKnowledge parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static agent.CollectorOuterClass.ConfigKnowledge 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 agent.CollectorOuterClass.ConfigKnowledge parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static agent.CollectorOuterClass.ConfigKnowledge 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(agent.CollectorOuterClass.ConfigKnowledge 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 agent.ConfigKnowledge} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:agent.ConfigKnowledge) + agent.CollectorOuterClass.ConfigKnowledgeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_descriptor; } - /** - * string group_name = 3; - * @param value The bytes for groupName to set. - * @return This builder for chaining. - */ - public Builder setGroupNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - groupName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.CollectorOuterClass.ConfigKnowledge.class, agent.CollectorOuterClass.ConfigKnowledge.Builder.class); } - private java.lang.Object groupDescription_ = ""; - /** - * string group_description = 4; - * @return The groupDescription. - */ - public java.lang.String getGroupDescription() { - java.lang.Object ref = groupDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } + // Construct using agent.CollectorOuterClass.ConfigKnowledge.newBuilder() + private Builder() { + } - /** - * string group_description = 4; - * @return The bytes for groupDescription. - */ - public com.google.protobuf.ByteString - getGroupDescriptionBytes() { - java.lang.Object ref = groupDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - /** - * string group_description = 4; - * @param value The groupDescription to set. - * @return This builder for chaining. - */ - public Builder setGroupDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - groupDescription_ = value; - bitField0_ |= 0x00000004; - onChanged(); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accepted_ = ""; + requestId_ = ""; return this; } - /** - * string group_description = 4; - * @return This builder for chaining. - */ - public Builder clearGroupDescription() { - groupDescription_ = getDefaultInstance().getGroupDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return agent.CollectorOuterClass.internal_static_agent_ConfigKnowledge_descriptor; } - /** - * string group_description = 4; - * @param value The bytes for groupDescription to set. - * @return This builder for chaining. - */ - public Builder setGroupDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - groupDescription_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + + @java.lang.Override + public agent.CollectorOuterClass.ConfigKnowledge getDefaultInstanceForType() { + return agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance(); } - private java.util.List configurations_ = - java.util.Collections.emptyList(); - private void ensureConfigurationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - configurations_ = new java.util.ArrayList(configurations_); - bitField0_ |= 0x00000008; - } + @java.lang.Override + public agent.CollectorOuterClass.ConfigKnowledge build() { + agent.CollectorOuterClass.ConfigKnowledge result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorGroupConfigurations, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder, agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder> configurationsBuilder_; + @java.lang.Override + public agent.CollectorOuterClass.ConfigKnowledge buildPartial() { + agent.CollectorOuterClass.ConfigKnowledge result = new agent.CollectorOuterClass.ConfigKnowledge(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public java.util.List getConfigurationsList() { - if (configurationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(configurations_); - } else { - return configurationsBuilder_.getMessageList(); + private void buildPartial0(agent.CollectorOuterClass.ConfigKnowledge result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accepted_ = accepted_; } - } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public int getConfigurationsCount() { - if (configurationsBuilder_ == null) { - return configurations_.size(); - } else { - return configurationsBuilder_.getCount(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; } } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public agent.CollectorOuterClass.CollectorGroupConfigurations getConfigurations(int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); - } else { - return configurationsBuilder_.getMessage(index); - } + + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public Builder setConfigurations( - int index, agent.CollectorOuterClass.CollectorGroupConfigurations value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.set(index, value); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, value); - } - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public Builder setConfigurations( - int index, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.set(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public Builder addConfigurations(agent.CollectorOuterClass.CollectorGroupConfigurations value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(value); - onChanged(); + @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 agent.CollectorOuterClass.ConfigKnowledge) { + return mergeFrom((agent.CollectorOuterClass.ConfigKnowledge)other); } else { - configurationsBuilder_.addMessage(value); + super.mergeFrom(other); + return this; } - return this; } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public Builder addConfigurations( - int index, agent.CollectorOuterClass.CollectorGroupConfigurations value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(index, value); + + public Builder mergeFrom(agent.CollectorOuterClass.ConfigKnowledge other) { + if (other == agent.CollectorOuterClass.ConfigKnowledge.getDefaultInstance()) return this; + if (!other.getAccepted().isEmpty()) { + accepted_ = other.accepted_; + bitField0_ |= 0x00000001; onChanged(); - } else { - configurationsBuilder_.addMessage(index, value); } - return this; - } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public Builder addConfigurations( - agent.CollectorOuterClass.CollectorGroupConfigurations.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(builderForValue.build()); + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; onChanged(); - } else { - configurationsBuilder_.addMessage(builderForValue.build()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public Builder addConfigurations( - int index, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, builderForValue.build()); + + @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: { + accepted_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private java.lang.Object accepted_ = ""; /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string accepted = 1; + * @return The accepted. */ - public Builder addAllConfigurations( - java.lang.Iterable values) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, configurations_); - onChanged(); + public java.lang.String getAccepted() { + java.lang.Object ref = accepted_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accepted_ = s; + return s; } else { - configurationsBuilder_.addAllMessages(values); + return (java.lang.String) ref; } - return this; } /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string accepted = 1; + * @return The bytes for accepted. */ - public Builder clearConfigurations() { - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); + public com.google.protobuf.ByteString + getAcceptedBytes() { + java.lang.Object ref = accepted_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accepted_ = b; + return b; } else { - configurationsBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string accepted = 1; + * @param value The accepted to set. + * @return This builder for chaining. */ - public Builder removeConfigurations(int index) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.remove(index); - onChanged(); - } else { - configurationsBuilder_.remove(index); - } + public Builder setAccepted( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + accepted_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string accepted = 1; + * @return This builder for chaining. */ - public agent.CollectorOuterClass.CollectorGroupConfigurations.Builder getConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().getBuilder(index); + public Builder clearAccepted() { + accepted_ = getDefaultInstance().getAccepted(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string accepted = 1; + * @param value The bytes for accepted to set. + * @return This builder for chaining. */ - public agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder getConfigurationsOrBuilder( - int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); } else { - return configurationsBuilder_.getMessageOrBuilder(index); - } + public Builder setAcceptedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + accepted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } + + private java.lang.Object requestId_ = ""; /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string request_id = 2; + * @return The requestId. */ - public java.util.List - getConfigurationsOrBuilderList() { - if (configurationsBuilder_ != null) { - return configurationsBuilder_.getMessageOrBuilderList(); + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; } else { - return java.util.Collections.unmodifiableList(configurations_); + return (java.lang.String) ref; } } /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public agent.CollectorOuterClass.CollectorGroupConfigurations.Builder addConfigurationsBuilder() { - return getConfigurationsFieldBuilder().addBuilder( - agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance()); - } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; - */ - public agent.CollectorOuterClass.CollectorGroupConfigurations.Builder addConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().addBuilder( - index, agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance()); - } - /** - * repeated .agent.CollectorGroupConfigurations configurations = 5; + * string request_id = 2; + * @return The bytes for requestId. */ - public java.util.List - getConfigurationsBuilderList() { - return getConfigurationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorGroupConfigurations, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder, agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder> - getConfigurationsFieldBuilder() { - if (configurationsBuilder_ == null) { - configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.CollectorGroupConfigurations, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder, agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder>( - configurations_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - configurations_ = null; + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return configurationsBuilder_; } - - private int collectorId_ ; /** - * int32 collector_id = 6; - * @return The collectorId. + * string request_id = 2; + * @param value The requestId to set. + * @return This builder for chaining. */ - @java.lang.Override - public int getCollectorId() { - return collectorId_; + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** - * int32 collector_id = 6; - * @param value The collectorId to set. + * string request_id = 2; * @return This builder for chaining. */ - public Builder setCollectorId(int value) { - - collectorId_ = value; - bitField0_ |= 0x00000010; + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * int32 collector_id = 6; + * string request_id = 2; + * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder clearCollectorId() { - bitField0_ = (bitField0_ & ~0x00000010); - collectorId_ = 0; + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8530,23 +8583,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.CollectorConfigGroup) + // @@protoc_insertion_point(builder_scope:agent.ConfigKnowledge) } - // @@protoc_insertion_point(class_scope:agent.CollectorConfigGroup) - private static final agent.CollectorOuterClass.CollectorConfigGroup DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.ConfigKnowledge) + private static final agent.CollectorOuterClass.ConfigKnowledge DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorConfigGroup(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.ConfigKnowledge(); } - public static agent.CollectorOuterClass.CollectorConfigGroup getDefaultInstance() { + public static agent.CollectorOuterClass.ConfigKnowledge getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CollectorConfigGroup parsePartialFrom( + public ConfigKnowledge parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8565,353 +8618,123 @@ public CollectorConfigGroup parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.CollectorConfigGroup getDefaultInstanceForType() { + public agent.CollectorOuterClass.ConfigKnowledge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CollectorGroupConfigurationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorGroupConfigurations) + public interface CollectorHostnamesOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.CollectorHostnames) com.google.protobuf.MessageOrBuilder { /** - * int32 group_id = 2; - * @return The groupId. - */ - int getGroupId(); - - /** - * string conf_key = 3; - * @return The confKey. - */ - java.lang.String getConfKey(); - /** - * string conf_key = 3; - * @return The bytes for confKey. - */ - com.google.protobuf.ByteString - getConfKeyBytes(); - - /** - * string conf_value = 4; - * @return The confValue. - */ - java.lang.String getConfValue(); - /** - * string conf_value = 4; - * @return The bytes for confValue. - */ - com.google.protobuf.ByteString - getConfValueBytes(); - - /** - * string conf_name = 5; - * @return The confName. - */ - java.lang.String getConfName(); - /** - * string conf_name = 5; - * @return The bytes for confName. - */ - com.google.protobuf.ByteString - getConfNameBytes(); - - /** - * string conf_description = 6; - * @return The confDescription. + * repeated string hostname = 1; + * @return A list containing the hostname. */ - java.lang.String getConfDescription(); + java.util.List + getHostnameList(); /** - * string conf_description = 6; - * @return The bytes for confDescription. + * repeated string hostname = 1; + * @return The count of hostname. */ - com.google.protobuf.ByteString - getConfDescriptionBytes(); - + int getHostnameCount(); /** - * string conf_data_type = 7; - * @return The confDataType. + * repeated string hostname = 1; + * @param index The index of the element to return. + * @return The hostname at the given index. */ - java.lang.String getConfDataType(); + java.lang.String getHostname(int index); /** - * string conf_data_type = 7; - * @return The bytes for confDataType. + * repeated string hostname = 1; + * @param index The index of the value to return. + * @return The bytes of the hostname at the given index. */ com.google.protobuf.ByteString - getConfDataTypeBytes(); - - /** - * bool conf_required = 8; - * @return The confRequired. - */ - boolean getConfRequired(); + getHostnameBytes(int index); } /** - * Protobuf type {@code agent.CollectorGroupConfigurations} + * Protobuf type {@code agent.CollectorHostnames} */ - public static final class CollectorGroupConfigurations extends + public static final class CollectorHostnames extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorGroupConfigurations) - CollectorGroupConfigurationsOrBuilder { + // @@protoc_insertion_point(message_implements:agent.CollectorHostnames) + CollectorHostnamesOrBuilder { private static final long serialVersionUID = 0L; - // Use CollectorGroupConfigurations.newBuilder() to construct. - private CollectorGroupConfigurations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CollectorGroupConfigurations() { - confKey_ = ""; - confValue_ = ""; - confName_ = ""; - confDescription_ = ""; - confDataType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CollectorGroupConfigurations(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorGroupConfigurations.class, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder.class); - } - - public static final int GROUP_ID_FIELD_NUMBER = 2; - private int groupId_ = 0; - /** - * int32 group_id = 2; - * @return The groupId. - */ - @java.lang.Override - public int getGroupId() { - return groupId_; - } - - public static final int CONF_KEY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object confKey_ = ""; - /** - * string conf_key = 3; - * @return The confKey. - */ - @java.lang.Override - public java.lang.String getConfKey() { - java.lang.Object ref = confKey_; - 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(); - confKey_ = s; - return s; - } - } - /** - * string conf_key = 3; - * @return The bytes for confKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConfKeyBytes() { - java.lang.Object ref = confKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONF_VALUE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object confValue_ = ""; - /** - * string conf_value = 4; - * @return The confValue. - */ - @java.lang.Override - public java.lang.String getConfValue() { - java.lang.Object ref = confValue_; - 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(); - confValue_ = s; - return s; - } - } - /** - * string conf_value = 4; - * @return The bytes for confValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConfValueBytes() { - java.lang.Object ref = confValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + // Use CollectorHostnames.newBuilder() to construct. + private CollectorHostnames(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CollectorHostnames() { + hostname_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } - public static final int CONF_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object confName_ = ""; - /** - * string conf_name = 5; - * @return The confName. - */ @java.lang.Override - public java.lang.String getConfName() { - java.lang.Object ref = confName_; - 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(); - confName_ = s; - return s; - } + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CollectorHostnames(); } - /** - * string conf_name = 5; - * @return The bytes for confName. - */ + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; + } + @java.lang.Override - public com.google.protobuf.ByteString - getConfNameBytes() { - java.lang.Object ref = confName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.CollectorOuterClass.CollectorHostnames.class, agent.CollectorOuterClass.CollectorHostnames.Builder.class); } - public static final int CONF_DESCRIPTION_FIELD_NUMBER = 6; + public static final int HOSTNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object confDescription_ = ""; + private com.google.protobuf.LazyStringArrayList hostname_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** - * string conf_description = 6; - * @return The confDescription. + * repeated string hostname = 1; + * @return A list containing the hostname. */ - @java.lang.Override - public java.lang.String getConfDescription() { - java.lang.Object ref = confDescription_; - 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(); - confDescription_ = s; - return s; - } + public com.google.protobuf.ProtocolStringList + getHostnameList() { + return hostname_; } /** - * string conf_description = 6; - * @return The bytes for confDescription. + * repeated string hostname = 1; + * @return The count of hostname. */ - @java.lang.Override - public com.google.protobuf.ByteString - getConfDescriptionBytes() { - java.lang.Object ref = confDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getHostnameCount() { + return hostname_.size(); } - - public static final int CONF_DATA_TYPE_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object confDataType_ = ""; /** - * string conf_data_type = 7; - * @return The confDataType. + * repeated string hostname = 1; + * @param index The index of the element to return. + * @return The hostname at the given index. */ - @java.lang.Override - public java.lang.String getConfDataType() { - java.lang.Object ref = confDataType_; - 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(); - confDataType_ = s; - return s; - } + public java.lang.String getHostname(int index) { + return hostname_.get(index); } /** - * string conf_data_type = 7; - * @return The bytes for confDataType. + * repeated string hostname = 1; + * @param index The index of the value to return. + * @return The bytes of the hostname at the given index. */ - @java.lang.Override public com.google.protobuf.ByteString - getConfDataTypeBytes() { - java.lang.Object ref = confDataType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confDataType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONF_REQUIRED_FIELD_NUMBER = 8; - private boolean confRequired_ = false; - /** - * bool conf_required = 8; - * @return The confRequired. - */ - @java.lang.Override - public boolean getConfRequired() { - return confRequired_; + getHostnameBytes(int index) { + return hostname_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -8928,26 +8751,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (groupId_ != 0) { - output.writeInt32(2, groupId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, confKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, confValue_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, confName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, confDescription_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDataType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, confDataType_); - } - if (confRequired_ != false) { - output.writeBool(8, confRequired_); + for (int i = 0; i < hostname_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -8958,28 +8763,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (groupId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, groupId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, confKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, confValue_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, confName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, confDescription_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(confDataType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, confDataType_); - } - if (confRequired_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, confRequired_); + { + int dataSize = 0; + for (int i = 0; i < hostname_.size(); i++) { + dataSize += computeStringSizeNoTag(hostname_.getRaw(i)); + } + size += dataSize; + size += 1 * getHostnameList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8991,25 +8781,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.CollectorGroupConfigurations)) { + if (!(obj instanceof agent.CollectorOuterClass.CollectorHostnames)) { return super.equals(obj); } - agent.CollectorOuterClass.CollectorGroupConfigurations other = (agent.CollectorOuterClass.CollectorGroupConfigurations) obj; + agent.CollectorOuterClass.CollectorHostnames other = (agent.CollectorOuterClass.CollectorHostnames) obj; - if (getGroupId() - != other.getGroupId()) return false; - if (!getConfKey() - .equals(other.getConfKey())) return false; - if (!getConfValue() - .equals(other.getConfValue())) return false; - if (!getConfName() - .equals(other.getConfName())) return false; - if (!getConfDescription() - .equals(other.getConfDescription())) return false; - if (!getConfDataType() - .equals(other.getConfDataType())) return false; - if (getConfRequired() - != other.getConfRequired()) return false; + if (!getHostnameList() + .equals(other.getHostnameList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9021,64 +8799,53 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId(); - hash = (37 * hash) + CONF_KEY_FIELD_NUMBER; - hash = (53 * hash) + getConfKey().hashCode(); - hash = (37 * hash) + CONF_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getConfValue().hashCode(); - hash = (37 * hash) + CONF_NAME_FIELD_NUMBER; - hash = (53 * hash) + getConfName().hashCode(); - hash = (37 * hash) + CONF_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getConfDescription().hashCode(); - hash = (37 * hash) + CONF_DATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getConfDataType().hashCode(); - hash = (37 * hash) + CONF_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getConfRequired()); + if (getHostnameCount() > 0) { + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostnameList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom(byte[] data) + public static agent.CollectorOuterClass.CollectorHostnames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorHostnames parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9086,26 +8853,26 @@ public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.CollectorHostnames parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseDelimitedFrom( + public static agent.CollectorOuterClass.CollectorHostnames 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 agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( + public static agent.CollectorOuterClass.CollectorHostnames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9118,7 +8885,7 @@ public static agent.CollectorOuterClass.CollectorGroupConfigurations parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.CollectorGroupConfigurations prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.CollectorHostnames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -9134,675 +8901,290 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.CollectorGroupConfigurations} + * Protobuf type {@code agent.CollectorHostnames} */ public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorGroupConfigurations) - agent.CollectorOuterClass.CollectorGroupConfigurationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorGroupConfigurations.class, agent.CollectorOuterClass.CollectorGroupConfigurations.Builder.class); - } - - // Construct using agent.CollectorOuterClass.CollectorGroupConfigurations.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - groupId_ = 0; - confKey_ = ""; - confValue_ = ""; - confName_ = ""; - confDescription_ = ""; - confDataType_ = ""; - confRequired_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorGroupConfigurations_descriptor; - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorGroupConfigurations getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance(); - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorGroupConfigurations build() { - agent.CollectorOuterClass.CollectorGroupConfigurations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorGroupConfigurations buildPartial() { - agent.CollectorOuterClass.CollectorGroupConfigurations result = new agent.CollectorOuterClass.CollectorGroupConfigurations(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(agent.CollectorOuterClass.CollectorGroupConfigurations result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.groupId_ = groupId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.confKey_ = confKey_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.confValue_ = confValue_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.confName_ = confName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.confDescription_ = confDescription_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.confDataType_ = confDataType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.confRequired_ = confRequired_; - } - } - - @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 agent.CollectorOuterClass.CollectorGroupConfigurations) { - return mergeFrom((agent.CollectorOuterClass.CollectorGroupConfigurations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(agent.CollectorOuterClass.CollectorGroupConfigurations other) { - if (other == agent.CollectorOuterClass.CollectorGroupConfigurations.getDefaultInstance()) return this; - if (other.getGroupId() != 0) { - setGroupId(other.getGroupId()); - } - if (!other.getConfKey().isEmpty()) { - confKey_ = other.confKey_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getConfValue().isEmpty()) { - confValue_ = other.confValue_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getConfName().isEmpty()) { - confName_ = other.confName_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getConfDescription().isEmpty()) { - confDescription_ = other.confDescription_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getConfDataType().isEmpty()) { - confDataType_ = other.confDataType_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.getConfRequired() != false) { - setConfRequired(other.getConfRequired()); - } - 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 16: { - groupId_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 26: { - confKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - confValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - confName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - confDescription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: { - confDataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 64: { - confRequired_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - 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; + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:agent.CollectorHostnames) + agent.CollectorOuterClass.CollectorHostnamesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; } - private int bitField0_; - private int groupId_ ; - /** - * int32 group_id = 2; - * @return The groupId. - */ @java.lang.Override - public int getGroupId() { - return groupId_; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.CollectorOuterClass.CollectorHostnames.class, agent.CollectorOuterClass.CollectorHostnames.Builder.class); } - /** - * int32 group_id = 2; - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(int value) { - groupId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 group_id = 2; - * @return This builder for chaining. - */ - public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000001); - groupId_ = 0; - onChanged(); - return this; - } + // Construct using agent.CollectorOuterClass.CollectorHostnames.newBuilder() + private Builder() { - private java.lang.Object confKey_ = ""; - /** - * string conf_key = 3; - * @return The confKey. - */ - public java.lang.String getConfKey() { - java.lang.Object ref = confKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - confKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } } - /** - * string conf_key = 3; - * @return The bytes for confKey. - */ - public com.google.protobuf.ByteString - getConfKeyBytes() { - java.lang.Object ref = confKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - /** - * string conf_key = 3; - * @param value The confKey to set. - * @return This builder for chaining. - */ - public Builder setConfKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - confKey_ = value; - bitField0_ |= 0x00000002; - onChanged(); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hostname_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } - /** - * string conf_key = 3; - * @return This builder for chaining. - */ - public Builder clearConfKey() { - confKey_ = getDefaultInstance().getConfKey(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; } - /** - * string conf_key = 3; - * @param value The bytes for confKey to set. - * @return This builder for chaining. - */ - public Builder setConfKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - confKey_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + + @java.lang.Override + public agent.CollectorOuterClass.CollectorHostnames getDefaultInstanceForType() { + return agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance(); } - private java.lang.Object confValue_ = ""; - /** - * string conf_value = 4; - * @return The confValue. - */ - public java.lang.String getConfValue() { - java.lang.Object ref = confValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - confValue_ = s; - return s; - } else { - return (java.lang.String) ref; + @java.lang.Override + public agent.CollectorOuterClass.CollectorHostnames build() { + agent.CollectorOuterClass.CollectorHostnames result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * string conf_value = 4; - * @return The bytes for confValue. - */ - public com.google.protobuf.ByteString - getConfValueBytes() { - java.lang.Object ref = confValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + public agent.CollectorOuterClass.CollectorHostnames buildPartial() { + agent.CollectorOuterClass.CollectorHostnames result = new agent.CollectorOuterClass.CollectorHostnames(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(agent.CollectorOuterClass.CollectorHostnames result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + hostname_.makeImmutable(); + result.hostname_ = hostname_; } } - /** - * string conf_value = 4; - * @param value The confValue to set. - * @return This builder for chaining. - */ - public Builder setConfValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - confValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + + @java.lang.Override + public Builder clone() { + return super.clone(); } - /** - * string conf_value = 4; - * @return This builder for chaining. - */ - public Builder clearConfValue() { - confValue_ = getDefaultInstance().getConfValue(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); } - /** - * string conf_value = 4; - * @param value The bytes for confValue to set. - * @return This builder for chaining. - */ - public Builder setConfValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - confValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - - private java.lang.Object confName_ = ""; - /** - * string conf_name = 5; - * @return The confName. - */ - public java.lang.String getConfName() { - java.lang.Object ref = confName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - confName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @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); } - /** - * string conf_name = 5; - * @return The bytes for confName. - */ - public com.google.protobuf.ByteString - getConfNameBytes() { - java.lang.Object ref = confName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confName_ = b; - return b; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof agent.CollectorOuterClass.CollectorHostnames) { + return mergeFrom((agent.CollectorOuterClass.CollectorHostnames)other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - /** - * string conf_name = 5; - * @param value The confName to set. - * @return This builder for chaining. - */ - public Builder setConfName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - confName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string conf_name = 5; - * @return This builder for chaining. - */ - public Builder clearConfName() { - confName_ = getDefaultInstance().getConfName(); - bitField0_ = (bitField0_ & ~0x00000008); + + public Builder mergeFrom(agent.CollectorOuterClass.CollectorHostnames other) { + if (other == agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance()) return this; + if (!other.hostname_.isEmpty()) { + if (hostname_.isEmpty()) { + hostname_ = other.hostname_; + bitField0_ |= 0x00000001; + } else { + ensureHostnameIsMutable(); + hostname_.addAll(other.hostname_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - /** - * string conf_name = 5; - * @param value The bytes for confName to set. - * @return This builder for chaining. - */ - public Builder setConfNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - confName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + + @java.lang.Override + public final boolean isInitialized() { + return true; } - private java.lang.Object confDescription_ = ""; - /** - * string conf_description = 6; - * @return The confDescription. - */ - public java.lang.String getConfDescription() { - java.lang.Object ref = confDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - confDescription_ = s; - return s; - } else { - return (java.lang.String) ref; + @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(); + ensureHostnameIsMutable(); + hostname_.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; } - /** - * string conf_description = 6; - * @return The bytes for confDescription. - */ - public com.google.protobuf.ByteString - getConfDescriptionBytes() { - java.lang.Object ref = confDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList hostname_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureHostnameIsMutable() { + if (!hostname_.isModifiable()) { + hostname_ = new com.google.protobuf.LazyStringArrayList(hostname_); } + bitField0_ |= 0x00000001; } /** - * string conf_description = 6; - * @param value The confDescription to set. - * @return This builder for chaining. - */ - public Builder setConfDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - confDescription_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string conf_description = 6; - * @return This builder for chaining. + * repeated string hostname = 1; + * @return A list containing the hostname. */ - public Builder clearConfDescription() { - confDescription_ = getDefaultInstance().getConfDescription(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; + public com.google.protobuf.ProtocolStringList + getHostnameList() { + hostname_.makeImmutable(); + return hostname_; } /** - * string conf_description = 6; - * @param value The bytes for confDescription to set. - * @return This builder for chaining. + * repeated string hostname = 1; + * @return The count of hostname. */ - public Builder setConfDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - confDescription_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + public int getHostnameCount() { + return hostname_.size(); } - - private java.lang.Object confDataType_ = ""; /** - * string conf_data_type = 7; - * @return The confDataType. + * repeated string hostname = 1; + * @param index The index of the element to return. + * @return The hostname at the given index. */ - public java.lang.String getConfDataType() { - java.lang.Object ref = confDataType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - confDataType_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public java.lang.String getHostname(int index) { + return hostname_.get(index); } /** - * string conf_data_type = 7; - * @return The bytes for confDataType. + * repeated string hostname = 1; + * @param index The index of the value to return. + * @return The bytes of the hostname at the given index. */ public com.google.protobuf.ByteString - getConfDataTypeBytes() { - java.lang.Object ref = confDataType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confDataType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + getHostnameBytes(int index) { + return hostname_.getByteString(index); } /** - * string conf_data_type = 7; - * @param value The confDataType to set. + * repeated string hostname = 1; + * @param index The index to set the value at. + * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setConfDataType( - java.lang.String value) { + public Builder setHostname( + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - confDataType_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string conf_data_type = 7; - * @return This builder for chaining. - */ - public Builder clearConfDataType() { - confDataType_ = getDefaultInstance().getConfDataType(); - bitField0_ = (bitField0_ & ~0x00000020); + ensureHostnameIsMutable(); + hostname_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string conf_data_type = 7; - * @param value The bytes for confDataType to set. + * repeated string hostname = 1; + * @param value The hostname to add. * @return This builder for chaining. */ - public Builder setConfDataTypeBytes( - com.google.protobuf.ByteString value) { + public Builder addHostname( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - confDataType_ = value; - bitField0_ |= 0x00000020; + ensureHostnameIsMutable(); + hostname_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } - - private boolean confRequired_ ; /** - * bool conf_required = 8; - * @return The confRequired. + * repeated string hostname = 1; + * @param values The hostname to add. + * @return This builder for chaining. */ - @java.lang.Override - public boolean getConfRequired() { - return confRequired_; + public Builder addAllHostname( + java.lang.Iterable values) { + ensureHostnameIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hostname_); + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** - * bool conf_required = 8; - * @param value The confRequired to set. + * repeated string hostname = 1; * @return This builder for chaining. */ - public Builder setConfRequired(boolean value) { - - confRequired_ = value; - bitField0_ |= 0x00000040; + public Builder clearHostname() { + hostname_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * bool conf_required = 8; + * repeated string hostname = 1; + * @param value The bytes of the hostname to add. * @return This builder for chaining. */ - public Builder clearConfRequired() { - bitField0_ = (bitField0_ & ~0x00000040); - confRequired_ = false; + public Builder addHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureHostnameIsMutable(); + hostname_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -9819,23 +9201,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.CollectorGroupConfigurations) + // @@protoc_insertion_point(builder_scope:agent.CollectorHostnames) } - // @@protoc_insertion_point(class_scope:agent.CollectorGroupConfigurations) - private static final agent.CollectorOuterClass.CollectorGroupConfigurations DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.CollectorHostnames) + private static final agent.CollectorOuterClass.CollectorHostnames DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorGroupConfigurations(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorHostnames(); } - public static agent.CollectorOuterClass.CollectorGroupConfigurations getDefaultInstance() { + public static agent.CollectorOuterClass.CollectorHostnames getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CollectorGroupConfigurations parsePartialFrom( + public CollectorHostnames parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9854,113 +9236,143 @@ public CollectorGroupConfigurations parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.CollectorGroupConfigurations getDefaultInstanceForType() { + public agent.CollectorOuterClass.CollectorHostnames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface CollectorDeleteOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorDelete) + public interface FilterByHostAndModuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.FilterByHostAndModule) com.google.protobuf.MessageOrBuilder { /** - * string deleted_by = 1; - * @return The deletedBy. + * string hostname = 1; + * @return The hostname. */ - java.lang.String getDeletedBy(); + java.lang.String getHostname(); /** - * string deleted_by = 1; - * @return The bytes for deletedBy. + * string hostname = 1; + * @return The bytes for hostname. */ com.google.protobuf.ByteString - getDeletedByBytes(); + getHostnameBytes(); + + /** + * .agent.CollectorModule module = 2; + * @return The enum numeric value on the wire for module. + */ + int getModuleValue(); + /** + * .agent.CollectorModule module = 2; + * @return The module. + */ + agent.CollectorOuterClass.CollectorModule getModule(); } /** - * Protobuf type {@code agent.CollectorDelete} + * Protobuf type {@code agent.FilterByHostAndModule} */ - public static final class CollectorDelete extends + public static final class FilterByHostAndModule extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorDelete) - CollectorDeleteOrBuilder { + // @@protoc_insertion_point(message_implements:agent.FilterByHostAndModule) + FilterByHostAndModuleOrBuilder { private static final long serialVersionUID = 0L; - // Use CollectorDelete.newBuilder() to construct. - private CollectorDelete(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FilterByHostAndModule.newBuilder() to construct. + private FilterByHostAndModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CollectorDelete() { - deletedBy_ = ""; + private FilterByHostAndModule() { + hostname_ = ""; + module_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CollectorDelete(); + return new FilterByHostAndModule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorDelete_descriptor; + return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorDelete_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorDelete.class, agent.CollectorOuterClass.CollectorDelete.Builder.class); + agent.CollectorOuterClass.FilterByHostAndModule.class, agent.CollectorOuterClass.FilterByHostAndModule.Builder.class); } - public static final int DELETED_BY_FIELD_NUMBER = 1; + public static final int HOSTNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object deletedBy_ = ""; + private volatile java.lang.Object hostname_ = ""; /** - * string deleted_by = 1; - * @return The deletedBy. + * string hostname = 1; + * @return The hostname. */ @java.lang.Override - public java.lang.String getDeletedBy() { - java.lang.Object ref = deletedBy_; + 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(); - deletedBy_ = s; + hostname_ = s; return s; } } /** - * string deleted_by = 1; - * @return The bytes for deletedBy. + * string hostname = 1; + * @return The bytes for hostname. */ @java.lang.Override public com.google.protobuf.ByteString - getDeletedByBytes() { - java.lang.Object ref = deletedBy_; + 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); - deletedBy_ = b; + hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int MODULE_FIELD_NUMBER = 2; + private int module_ = 0; + /** + * .agent.CollectorModule module = 2; + * @return The enum numeric value on the wire for module. + */ + @java.lang.Override public int getModuleValue() { + return module_; + } + /** + * .agent.CollectorModule module = 2; + * @return The module. + */ + @java.lang.Override public agent.CollectorOuterClass.CollectorModule getModule() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); + return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -9975,8 +9387,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deletedBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deletedBy_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); + } + if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { + output.writeEnum(2, module_); } getUnknownFields().writeTo(output); } @@ -9987,8 +9402,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deletedBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deletedBy_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, module_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10000,13 +9419,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.CollectorDelete)) { + if (!(obj instanceof agent.CollectorOuterClass.FilterByHostAndModule)) { return super.equals(obj); } - agent.CollectorOuterClass.CollectorDelete other = (agent.CollectorOuterClass.CollectorDelete) obj; + agent.CollectorOuterClass.FilterByHostAndModule other = (agent.CollectorOuterClass.FilterByHostAndModule) obj; - if (!getDeletedBy() - .equals(other.getDeletedBy())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (module_ != other.module_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10018,51 +9438,53 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DELETED_BY_FIELD_NUMBER; - hash = (53 * hash) + getDeletedBy().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + MODULE_FIELD_NUMBER; + hash = (53 * hash) + module_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom(byte[] data) + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10070,26 +9492,26 @@ public static agent.CollectorOuterClass.CollectorDelete parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.CollectorDelete parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.FilterByHostAndModule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorDelete parseDelimitedFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule 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 agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.CollectorDelete parseFrom( + public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10102,7 +9524,7 @@ public static agent.CollectorOuterClass.CollectorDelete parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.CollectorDelete prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.FilterByHostAndModule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -10118,26 +9540,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.CollectorDelete} + * Protobuf type {@code agent.FilterByHostAndModule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorDelete) - agent.CollectorOuterClass.CollectorDeleteOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.FilterByHostAndModule) + agent.CollectorOuterClass.FilterByHostAndModuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorDelete_descriptor; + return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorDelete_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorDelete.class, agent.CollectorOuterClass.CollectorDelete.Builder.class); + agent.CollectorOuterClass.FilterByHostAndModule.class, agent.CollectorOuterClass.FilterByHostAndModule.Builder.class); } - // Construct using agent.CollectorOuterClass.CollectorDelete.newBuilder() + // Construct using agent.CollectorOuterClass.FilterByHostAndModule.newBuilder() private Builder() { } @@ -10151,24 +9573,25 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - deletedBy_ = ""; + hostname_ = ""; + module_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorDelete_descriptor; + return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.CollectorDelete getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorDelete.getDefaultInstance(); + public agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstanceForType() { + return agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.CollectorDelete build() { - agent.CollectorOuterClass.CollectorDelete result = buildPartial(); + public agent.CollectorOuterClass.FilterByHostAndModule build() { + agent.CollectorOuterClass.FilterByHostAndModule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10176,17 +9599,20 @@ public agent.CollectorOuterClass.CollectorDelete build() { } @java.lang.Override - public agent.CollectorOuterClass.CollectorDelete buildPartial() { - agent.CollectorOuterClass.CollectorDelete result = new agent.CollectorOuterClass.CollectorDelete(this); + public agent.CollectorOuterClass.FilterByHostAndModule buildPartial() { + agent.CollectorOuterClass.FilterByHostAndModule result = new agent.CollectorOuterClass.FilterByHostAndModule(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(agent.CollectorOuterClass.CollectorDelete result) { + private void buildPartial0(agent.CollectorOuterClass.FilterByHostAndModule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.deletedBy_ = deletedBy_; + result.hostname_ = hostname_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.module_ = module_; } } @@ -10224,21 +9650,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.CollectorDelete) { - return mergeFrom((agent.CollectorOuterClass.CollectorDelete)other); + if (other instanceof agent.CollectorOuterClass.FilterByHostAndModule) { + return mergeFrom((agent.CollectorOuterClass.FilterByHostAndModule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.CollectorDelete other) { - if (other == agent.CollectorOuterClass.CollectorDelete.getDefaultInstance()) return this; - if (!other.getDeletedBy().isEmpty()) { - deletedBy_ = other.deletedBy_; + public Builder mergeFrom(agent.CollectorOuterClass.FilterByHostAndModule other) { + if (other == agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance()) return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; bitField0_ |= 0x00000001; onChanged(); } + if (other.module_ != 0) { + setModuleValue(other.getModuleValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -10266,10 +9695,15 @@ public Builder mergeFrom( done = true; break; case 10: { - deletedBy_ = input.readStringRequireUtf8(); + hostname_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 + case 16: { + module_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -10287,74 +9721,127 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object deletedBy_ = ""; + private java.lang.Object hostname_ = ""; /** - * string deleted_by = 1; - * @return The deletedBy. + * string hostname = 1; + * @return The hostname. */ - public java.lang.String getDeletedBy() { - java.lang.Object ref = deletedBy_; + 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(); - deletedBy_ = s; + hostname_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string deleted_by = 1; - * @return The bytes for deletedBy. + * string hostname = 1; + * @return The bytes for hostname. */ public com.google.protobuf.ByteString - getDeletedByBytes() { - java.lang.Object ref = deletedBy_; + getHostnameBytes() { + java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - deletedBy_ = b; + hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string deleted_by = 1; - * @param value The deletedBy to set. + * string hostname = 1; + * @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 = 1; + * @return This builder for chaining. + */ + public Builder clearHostname() { + hostname_ = getDefaultInstance().getHostname(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string hostname = 1; + * @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 int module_ = 0; + /** + * .agent.CollectorModule module = 2; + * @return The enum numeric value on the wire for module. + */ + @java.lang.Override public int getModuleValue() { + return module_; + } + /** + * .agent.CollectorModule module = 2; + * @param value The enum numeric value on the wire for module to set. * @return This builder for chaining. */ - public Builder setDeletedBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - deletedBy_ = value; - bitField0_ |= 0x00000001; + public Builder setModuleValue(int value) { + module_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string deleted_by = 1; + * .agent.CollectorModule module = 2; + * @return The module. + */ + @java.lang.Override + public agent.CollectorOuterClass.CollectorModule getModule() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); + return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; + } + /** + * .agent.CollectorModule module = 2; + * @param value The module to set. * @return This builder for chaining. */ - public Builder clearDeletedBy() { - deletedBy_ = getDefaultInstance().getDeletedBy(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + module_ = value.getNumber(); onChanged(); return this; } /** - * string deleted_by = 1; - * @param value The bytes for deletedBy to set. + * .agent.CollectorModule module = 2; * @return This builder for chaining. */ - public Builder setDeletedByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - deletedBy_ = value; - bitField0_ |= 0x00000001; + public Builder clearModule() { + bitField0_ = (bitField0_ & ~0x00000002); + module_ = 0; onChanged(); return this; } @@ -10371,23 +9858,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.CollectorDelete) + // @@protoc_insertion_point(builder_scope:agent.FilterByHostAndModule) } - // @@protoc_insertion_point(class_scope:agent.CollectorDelete) - private static final agent.CollectorOuterClass.CollectorDelete DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.FilterByHostAndModule) + private static final agent.CollectorOuterClass.FilterByHostAndModule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorDelete(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.FilterByHostAndModule(); } - public static agent.CollectorOuterClass.CollectorDelete getDefaultInstance() { + public static agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CollectorDelete parsePartialFrom( + public FilterByHostAndModule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10406,142 +9893,89 @@ public CollectorDelete parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.CollectorDelete getDefaultInstanceForType() { + public agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ListCollectorResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.ListCollectorResponse) + public interface ConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.ConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * repeated .agent.Collector rows = 1; - */ - java.util.List - getRowsList(); - /** - * repeated .agent.Collector rows = 1; - */ - agent.CollectorOuterClass.Collector getRows(int index); - /** - * repeated .agent.Collector rows = 1; - */ - int getRowsCount(); - /** - * repeated .agent.Collector rows = 1; - */ - java.util.List - getRowsOrBuilderList(); - /** - * repeated .agent.Collector rows = 1; + * .agent.CollectorModule module = 1; + * @return The enum numeric value on the wire for module. */ - agent.CollectorOuterClass.CollectorOrBuilder getRowsOrBuilder( - int index); - + int getModuleValue(); /** - * int32 total = 2; - * @return The total. + * .agent.CollectorModule module = 1; + * @return The module. */ - int getTotal(); + agent.CollectorOuterClass.CollectorModule getModule(); } /** - * Protobuf type {@code agent.ListCollectorResponse} + * Protobuf type {@code agent.ConfigRequest} */ - public static final class ListCollectorResponse extends + public static final class ConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.ListCollectorResponse) - ListCollectorResponseOrBuilder { + // @@protoc_insertion_point(message_implements:agent.ConfigRequest) + ConfigRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListCollectorResponse.newBuilder() to construct. - private ListCollectorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfigRequest.newBuilder() to construct. + private ConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCollectorResponse() { - rows_ = java.util.Collections.emptyList(); + private ConfigRequest() { + module_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ListCollectorResponse(); + return new ConfigRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_descriptor; + return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.ListCollectorResponse.class, agent.CollectorOuterClass.ListCollectorResponse.Builder.class); + agent.CollectorOuterClass.ConfigRequest.class, agent.CollectorOuterClass.ConfigRequest.Builder.class); } - public static final int ROWS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List rows_; - /** - * repeated .agent.Collector rows = 1; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - * repeated .agent.Collector rows = 1; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - * repeated .agent.Collector rows = 1; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - * repeated .agent.Collector rows = 1; - */ - @java.lang.Override - public agent.CollectorOuterClass.Collector getRows(int index) { - return rows_.get(index); - } + public static final int MODULE_FIELD_NUMBER = 1; + private int module_ = 0; /** - * repeated .agent.Collector rows = 1; + * .agent.CollectorModule module = 1; + * @return The enum numeric value on the wire for module. */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorOrBuilder getRowsOrBuilder( - int index) { - return rows_.get(index); + @java.lang.Override public int getModuleValue() { + return module_; } - - public static final int TOTAL_FIELD_NUMBER = 2; - private int total_ = 0; /** - * int32 total = 2; - * @return The total. + * .agent.CollectorModule module = 1; + * @return The module. */ - @java.lang.Override - public int getTotal() { - return total_; + @java.lang.Override public agent.CollectorOuterClass.CollectorModule getModule() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); + return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -10558,11 +9992,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(1, rows_.get(i)); - } - if (total_ != 0) { - output.writeInt32(2, total_); + if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { + output.writeEnum(1, module_); } getUnknownFields().writeTo(output); } @@ -10573,13 +10004,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rows_.get(i)); - } - if (total_ != 0) { + if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, total_); + .computeEnumSize(1, module_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10591,15 +10018,12 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof agent.CollectorOuterClass.ListCollectorResponse)) { + if (!(obj instanceof agent.CollectorOuterClass.ConfigRequest)) { return super.equals(obj); } - agent.CollectorOuterClass.ListCollectorResponse other = (agent.CollectorOuterClass.ListCollectorResponse) obj; + agent.CollectorOuterClass.ConfigRequest other = (agent.CollectorOuterClass.ConfigRequest) obj; - if (!getRowsList() - .equals(other.getRowsList())) return false; - if (getTotal() - != other.getTotal()) return false; + if (module_ != other.module_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10611,55 +10035,51 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + getTotal(); + hash = (37 * hash) + MODULE_FIELD_NUMBER; + hash = (53 * hash) + module_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom(byte[] data) + public static agent.CollectorOuterClass.ConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.ConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10667,26 +10087,26 @@ public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - public static agent.CollectorOuterClass.ListCollectorResponse parseDelimitedFrom(java.io.InputStream input) + public static agent.CollectorOuterClass.ConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.ListCollectorResponse parseDelimitedFrom( + public static agent.CollectorOuterClass.ConfigRequest 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 agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( + public static agent.CollectorOuterClass.ConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10699,7 +10119,7 @@ public static agent.CollectorOuterClass.ListCollectorResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(agent.CollectorOuterClass.ListCollectorResponse prototype) { + public static Builder newBuilder(agent.CollectorOuterClass.ConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -10715,26 +10135,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code agent.ListCollectorResponse} + * Protobuf type {@code agent.ConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.ListCollectorResponse) - agent.CollectorOuterClass.ListCollectorResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:agent.ConfigRequest) + agent.CollectorOuterClass.ConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_descriptor; + return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_fieldAccessorTable + return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.ListCollectorResponse.class, agent.CollectorOuterClass.ListCollectorResponse.Builder.class); + agent.CollectorOuterClass.ConfigRequest.class, agent.CollectorOuterClass.ConfigRequest.Builder.class); } - // Construct using agent.CollectorOuterClass.ListCollectorResponse.newBuilder() + // Construct using agent.CollectorOuterClass.ConfigRequest.newBuilder() private Builder() { } @@ -10748,31 +10168,24 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - total_ = 0; + module_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_ListCollectorResponse_descriptor; + return agent.CollectorOuterClass.internal_static_agent_ConfigRequest_descriptor; } @java.lang.Override - public agent.CollectorOuterClass.ListCollectorResponse getDefaultInstanceForType() { - return agent.CollectorOuterClass.ListCollectorResponse.getDefaultInstance(); + public agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { + return agent.CollectorOuterClass.ConfigRequest.getDefaultInstance(); } @java.lang.Override - public agent.CollectorOuterClass.ListCollectorResponse build() { - agent.CollectorOuterClass.ListCollectorResponse result = buildPartial(); + public agent.CollectorOuterClass.ConfigRequest build() { + agent.CollectorOuterClass.ConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10780,30 +10193,17 @@ public agent.CollectorOuterClass.ListCollectorResponse build() { } @java.lang.Override - public agent.CollectorOuterClass.ListCollectorResponse buildPartial() { - agent.CollectorOuterClass.ListCollectorResponse result = new agent.CollectorOuterClass.ListCollectorResponse(this); - buildPartialRepeatedFields(result); + public agent.CollectorOuterClass.ConfigRequest buildPartial() { + agent.CollectorOuterClass.ConfigRequest result = new agent.CollectorOuterClass.ConfigRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields(agent.CollectorOuterClass.ListCollectorResponse result) { - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - } - - private void buildPartial0(agent.CollectorOuterClass.ListCollectorResponse result) { + private void buildPartial0(agent.CollectorOuterClass.ConfigRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.total_ = total_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.module_ = module_; } } @@ -10841,44 +10241,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof agent.CollectorOuterClass.ListCollectorResponse) { - return mergeFrom((agent.CollectorOuterClass.ListCollectorResponse)other); + if (other instanceof agent.CollectorOuterClass.ConfigRequest) { + return mergeFrom((agent.CollectorOuterClass.ConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(agent.CollectorOuterClass.ListCollectorResponse other) { - if (other == agent.CollectorOuterClass.ListCollectorResponse.getDefaultInstance()) return this; - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000001); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowsFieldBuilder() : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (other.getTotal() != 0) { - setTotal(other.getTotal()); + public Builder mergeFrom(agent.CollectorOuterClass.ConfigRequest other) { + if (other == agent.CollectorOuterClass.ConfigRequest.getDefaultInstance()) return this; + if (other.module_ != 0) { + setModuleValue(other.getModuleValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -10906,24 +10280,11 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - agent.CollectorOuterClass.Collector m = - input.readMessage( - agent.CollectorOuterClass.Collector.parser(), - extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - total_ = input.readInt32(); - bitField0_ |= 0x00000002; + case 8: { + module_ = input.readEnum(); + bitField0_ |= 0x00000001; break; - } // case 16 + } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -10933,282 +10294,63 @@ public Builder mergeFrom( } // 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 rows_ = - java.util.Collections.emptyList(); - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.Collector, agent.CollectorOuterClass.Collector.Builder, agent.CollectorOuterClass.CollectorOrBuilder> rowsBuilder_; - - /** - * repeated .agent.Collector rows = 1; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - * repeated .agent.Collector rows = 1; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - * repeated .agent.Collector rows = 1; - */ - public agent.CollectorOuterClass.Collector getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder setRows( - int index, agent.CollectorOuterClass.Collector value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder setRows( - int index, agent.CollectorOuterClass.Collector.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder addRows(agent.CollectorOuterClass.Collector value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder addRows( - int index, agent.CollectorOuterClass.Collector value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder addRows( - agent.CollectorOuterClass.Collector.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder addRows( - int index, agent.CollectorOuterClass.Collector.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - * repeated .agent.Collector rows = 1; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); + throw e.unwrapIOException(); + } finally { onChanged(); - } else { - rowsBuilder_.remove(index); - } + } // finally return this; } + private int bitField0_; + + private int module_ = 0; /** - * repeated .agent.Collector rows = 1; - */ - public agent.CollectorOuterClass.Collector.Builder getRowsBuilder( - int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * repeated .agent.Collector rows = 1; - */ - public agent.CollectorOuterClass.CollectorOrBuilder getRowsOrBuilder( - int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .agent.Collector rows = 1; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - * repeated .agent.Collector rows = 1; - */ - public agent.CollectorOuterClass.Collector.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - agent.CollectorOuterClass.Collector.getDefaultInstance()); - } - /** - * repeated .agent.Collector rows = 1; + * .agent.CollectorModule module = 1; + * @return The enum numeric value on the wire for module. */ - public agent.CollectorOuterClass.Collector.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, agent.CollectorOuterClass.Collector.getDefaultInstance()); + @java.lang.Override public int getModuleValue() { + return module_; } /** - * repeated .agent.Collector rows = 1; + * .agent.CollectorModule module = 1; + * @param value The enum numeric value on the wire for module to set. + * @return This builder for chaining. */ - public java.util.List - getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.Collector, agent.CollectorOuterClass.Collector.Builder, agent.CollectorOuterClass.CollectorOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - agent.CollectorOuterClass.Collector, agent.CollectorOuterClass.Collector.Builder, agent.CollectorOuterClass.CollectorOrBuilder>( - rows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rows_ = null; - } - return rowsBuilder_; + public Builder setModuleValue(int value) { + module_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - - private int total_ ; /** - * int32 total = 2; - * @return The total. + * .agent.CollectorModule module = 1; + * @return The module. */ @java.lang.Override - public int getTotal() { - return total_; + public agent.CollectorOuterClass.CollectorModule getModule() { + agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); + return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; } /** - * int32 total = 2; - * @param value The total to set. + * .agent.CollectorModule module = 1; + * @param value The module to set. * @return This builder for chaining. */ - public Builder setTotal(int value) { - - total_ = value; - bitField0_ |= 0x00000002; + public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + module_ = value.getNumber(); onChanged(); return this; } /** - * int32 total = 2; + * .agent.CollectorModule module = 1; * @return This builder for chaining. */ - public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000002); - total_ = 0; + public Builder clearModule() { + bitField0_ = (bitField0_ & ~0x00000001); + module_ = 0; onChanged(); return this; } @@ -11225,23 +10367,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:agent.ListCollectorResponse) + // @@protoc_insertion_point(builder_scope:agent.ConfigRequest) } - // @@protoc_insertion_point(class_scope:agent.ListCollectorResponse) - private static final agent.CollectorOuterClass.ListCollectorResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:agent.ConfigRequest) + private static final agent.CollectorOuterClass.ConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.ListCollectorResponse(); + DEFAULT_INSTANCE = new agent.CollectorOuterClass.ConfigRequest(); } - public static agent.CollectorOuterClass.ListCollectorResponse getDefaultInstance() { + public static agent.CollectorOuterClass.ConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListCollectorResponse parsePartialFrom( + public ConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11260,57 +10402,42 @@ public ListCollectorResponse parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public agent.CollectorOuterClass.ListCollectorResponse getDefaultInstanceForType() { + public agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_CollectorMessages_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_CollectorMessages_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_CollectorHostnames_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_CollectorHostnames_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_FilterByHostAndModule_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_FilterByHostAndModule_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_ConfigKnowledge_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_ConfigKnowledge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_agent_RegisterRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_agent_RegisterRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_ConfigRequest_descriptor; + internal_static_agent_ListCollectorResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_ConfigRequest_fieldAccessorTable; + internal_static_agent_ListCollectorResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_agent_Collector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_agent_Collector_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_agent_CollectorMessages_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_agent_CollectorMessages_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_agent_CollectorConfig_descriptor; private static final @@ -11327,15 +10454,25 @@ public agent.CollectorOuterClass.ListCollectorResponse getDefaultInstanceForType com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_agent_CollectorGroupConfigurations_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_CollectorDelete_descriptor; + internal_static_agent_ConfigKnowledge_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_CollectorDelete_fieldAccessorTable; + internal_static_agent_ConfigKnowledge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_ListCollectorResponse_descriptor; + internal_static_agent_CollectorHostnames_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_ListCollectorResponse_fieldAccessorTable; + internal_static_agent_CollectorHostnames_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_agent_FilterByHostAndModule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_agent_FilterByHostAndModule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_agent_ConfigRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_agent_ConfigRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -11345,136 +10482,128 @@ public agent.CollectorOuterClass.ListCollectorResponse getDefaultInstanceForType descriptor; static { java.lang.String[] descriptorData = { - "\n\017collector.proto\022\005agent\032\014common.proto\"y" + - "\n\021CollectorMessages\022(\n\006config\030\001 \001(\0132\026.ag" + - "ent.CollectorConfigH\000\022(\n\006result\030\002 \001(\0132\026." + - "agent.ConfigKnowledgeH\000B\020\n\016stream_messag" + - "e\"&\n\022CollectorHostnames\022\020\n\010hostname\030\001 \003(" + - "\t\"Q\n\025FilterByHostAndModule\022\020\n\010hostname\030\001" + - " \001(\t\022&\n\006module\030\002 \001(\0162\026.agent.CollectorMo" + - "dule\"7\n\017ConfigKnowledge\022\020\n\010accepted\030\001 \001(" + - "\t\022\022\n\nrequest_id\030\002 \001(\t\"k\n\017RegisterRequest" + - "\022\n\n\002ip\030\001 \001(\t\022\020\n\010hostname\030\002 \001(\t\022\017\n\007versio" + - "n\030\003 \001(\t\022)\n\tcollector\030\004 \001(\0162\026.agent.Colle" + - "ctorModule\"7\n\rConfigRequest\022&\n\006module\030\001 " + - "\001(\0162\026.agent.CollectorModule\"\344\001\n\tCollecto" + - "r\022\n\n\002id\030\001 \001(\005\022\035\n\006status\030\002 \001(\0162\r.agent.St" + - "atus\022\025\n\rcollector_key\030\003 \001(\t\022\n\n\002ip\030\004 \001(\t\022" + - "\020\n\010hostname\030\005 \001(\t\022\017\n\007version\030\006 \001(\t\022&\n\006mo" + - "dule\030\007 \001(\0162\026.agent.CollectorModule\022+\n\006gr" + - "oups\030\010 \003(\0132\033.agent.CollectorConfigGroup\022" + - "\021\n\tlast_seen\030\t \001(\t\"i\n\017CollectorConfig\022\025\n" + - "\rcollector_key\030\001 \001(\t\022+\n\006groups\030\002 \003(\0132\033.a" + - "gent.CollectorConfigGroup\022\022\n\nrequest_id\030" + - "\003 \001(\t\"\244\001\n\024CollectorConfigGroup\022\n\n\002id\030\001 \001" + - "(\005\022\022\n\ngroup_name\030\003 \001(\t\022\031\n\021group_descript" + - "ion\030\004 \001(\t\022;\n\016configurations\030\005 \003(\0132#.agen" + - "t.CollectorGroupConfigurations\022\024\n\014collec" + - "tor_id\030\006 \001(\005\"\262\001\n\034CollectorGroupConfigura" + - "tions\022\020\n\010group_id\030\002 \001(\005\022\020\n\010conf_key\030\003 \001(" + - "\t\022\022\n\nconf_value\030\004 \001(\t\022\021\n\tconf_name\030\005 \001(\t" + - "\022\030\n\020conf_description\030\006 \001(\t\022\026\n\016conf_data_" + - "type\030\007 \001(\t\022\025\n\rconf_required\030\010 \001(\010\"%\n\017Col" + - "lectorDelete\022\022\n\ndeleted_by\030\001 \001(\t\"F\n\025List" + - "CollectorResponse\022\036\n\004rows\030\001 \003(\0132\020.agent." + - "Collector\022\r\n\005total\030\002 \001(\005*\035\n\017CollectorMod" + - "ule\022\n\n\006AS_400\020\0002\235\004\n\020CollectorService\022B\n\021" + - "RegisterCollector\022\026.agent.RegisterReques" + - "t\032\023.agent.AuthResponse\"\000\022@\n\017DeleteCollec" + - "tor\022\026.agent.CollectorDelete\032\023.agent.Auth" + - "Response\"\000\022C\n\rListCollector\022\022.agent.List" + - "Request\032\034.agent.ListCollectorResponse\"\000\022" + - "K\n\017CollectorStream\022\030.agent.CollectorMess" + - "ages\032\030.agent.CollectorMessages\"\000(\0010\001\022I\n\026" + - "ListCollectorHostnames\022\022.agent.ListReque" + - "st\032\031.agent.CollectorHostnames\"\000\022`\n GetCo" + - "llectorsByHostnameAndModule\022\034.agent.Filt" + - "erByHostAndModule\032\034.agent.ListCollectorR" + - "esponse\"\000\022D\n\022GetCollectorConfig\022\024.agent." + - "ConfigRequest\032\026.agent.CollectorConfig\"\0002" + - "d\n\025PanelCollectorService\022K\n\027RegisterColl" + - "ectorConfig\022\026.agent.CollectorConfig\032\026.ag" + - "ent.ConfigKnowledge\"\000B2Z0github.com/utms" + - "tack/UTMStack/agent-manager/agentb\006proto" + - "3" + "\n\017collector.proto\022\005agent\032\014common.proto\"k" + + "\n\017RegisterRequest\022\n\n\002ip\030\001 \001(\t\022\020\n\010hostnam" + + "e\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022)\n\tcollector\030\004 " + + "\001(\0162\026.agent.CollectorModule\"F\n\025ListColle" + + "ctorResponse\022\036\n\004rows\030\001 \003(\0132\020.agent.Colle" + + "ctor\022\r\n\005total\030\002 \001(\005\"\267\001\n\tCollector\022\n\n\002id\030" + + "\001 \001(\005\022\035\n\006status\030\002 \001(\0162\r.agent.Status\022\025\n\r" + + "collector_key\030\003 \001(\t\022\n\n\002ip\030\004 \001(\t\022\020\n\010hostn" + + "ame\030\005 \001(\t\022\017\n\007version\030\006 \001(\t\022&\n\006module\030\007 \001" + + "(\0162\026.agent.CollectorModule\022\021\n\tlast_seen\030" + + "\010 \001(\t\"y\n\021CollectorMessages\022(\n\006config\030\001 \001" + + "(\0132\026.agent.CollectorConfigH\000\022(\n\006result\030\002" + + " \001(\0132\026.agent.ConfigKnowledgeH\000B\020\n\016stream" + + "_message\"h\n\017CollectorConfig\022\024\n\014collector" + + "_id\030\001 \001(\t\022+\n\006groups\030\002 \003(\0132\033.agent.Collec" + + "torConfigGroup\022\022\n\nrequest_id\030\003 \001(\t\"\244\001\n\024C" + + "ollectorConfigGroup\022\n\n\002id\030\001 \001(\005\022\022\n\ngroup" + + "_name\030\002 \001(\t\022\031\n\021group_description\030\003 \001(\t\022;" + + "\n\016configurations\030\004 \003(\0132#.agent.Collector" + + "GroupConfigurations\022\024\n\014collector_id\030\005 \001(" + + "\005\"\276\001\n\034CollectorGroupConfigurations\022\n\n\002id" + + "\030\001 \001(\005\022\020\n\010group_id\030\002 \001(\005\022\020\n\010conf_key\030\003 \001" + + "(\t\022\022\n\nconf_value\030\004 \001(\t\022\021\n\tconf_name\030\005 \001(" + + "\t\022\030\n\020conf_description\030\006 \001(\t\022\026\n\016conf_data" + + "_type\030\007 \001(\t\022\025\n\rconf_required\030\010 \001(\010\"7\n\017Co" + + "nfigKnowledge\022\020\n\010accepted\030\001 \001(\t\022\022\n\nreque" + + "st_id\030\002 \001(\t\"&\n\022CollectorHostnames\022\020\n\010hos" + + "tname\030\001 \003(\t\"Q\n\025FilterByHostAndModule\022\020\n\010" + + "hostname\030\001 \001(\t\022&\n\006module\030\002 \001(\0162\026.agent.C" + + "ollectorModule\"7\n\rConfigRequest\022&\n\006modul" + + "e\030\001 \001(\0162\026.agent.CollectorModule*\035\n\017Colle" + + "ctorModule\022\n\n\006AS_400\020\0002\233\004\n\020CollectorServ" + + "ice\022B\n\021RegisterCollector\022\026.agent.Registe" + + "rRequest\032\023.agent.AuthResponse\"\000\022>\n\017Delet" + + "eCollector\022\024.agent.DeleteRequest\032\023.agent" + + ".AuthResponse\"\000\022C\n\rListCollector\022\022.agent" + + ".ListRequest\032\034.agent.ListCollectorRespon" + + "se\"\000\022K\n\017CollectorStream\022\030.agent.Collecto" + + "rMessages\032\030.agent.CollectorMessages\"\000(\0010" + + "\001\022I\n\026ListCollectorHostnames\022\022.agent.List" + + "Request\032\031.agent.CollectorHostnames\"\000\022`\n " + + "GetCollectorsByHostnameAndModule\022\034.agent" + + ".FilterByHostAndModule\032\034.agent.ListColle" + + "ctorResponse\"\000\022D\n\022GetCollectorConfig\022\024.a" + + "gent.ConfigRequest\032\026.agent.CollectorConf" + + "ig\"\0002d\n\025PanelCollectorService\022K\n\027Registe" + + "rCollectorConfig\022\026.agent.CollectorConfig" + + "\032\026.agent.ConfigKnowledge\"\000B2Z0github.com" + + "/utmstack/UTMStack/agent-manager/agentb\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { agent.Common.getDescriptor(), }); - internal_static_agent_CollectorMessages_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_agent_CollectorMessages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_CollectorMessages_descriptor, - new java.lang.String[] { "Config", "Result", "StreamMessage", }); - internal_static_agent_CollectorHostnames_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_agent_CollectorHostnames_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_CollectorHostnames_descriptor, - new java.lang.String[] { "Hostname", }); - internal_static_agent_FilterByHostAndModule_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_agent_FilterByHostAndModule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_FilterByHostAndModule_descriptor, - new java.lang.String[] { "Hostname", "Module", }); - internal_static_agent_ConfigKnowledge_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_agent_ConfigKnowledge_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_ConfigKnowledge_descriptor, - new java.lang.String[] { "Accepted", "RequestId", }); internal_static_agent_RegisterRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(0); internal_static_agent_RegisterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_RegisterRequest_descriptor, new java.lang.String[] { "Ip", "Hostname", "Version", "Collector", }); - internal_static_agent_ConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_agent_ConfigRequest_fieldAccessorTable = new + internal_static_agent_ListCollectorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_agent_ListCollectorResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_ConfigRequest_descriptor, - new java.lang.String[] { "Module", }); + internal_static_agent_ListCollectorResponse_descriptor, + new java.lang.String[] { "Rows", "Total", }); internal_static_agent_Collector_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(2); internal_static_agent_Collector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_Collector_descriptor, - new java.lang.String[] { "Id", "Status", "CollectorKey", "Ip", "Hostname", "Version", "Module", "Groups", "LastSeen", }); + new java.lang.String[] { "Id", "Status", "CollectorKey", "Ip", "Hostname", "Version", "Module", "LastSeen", }); + internal_static_agent_CollectorMessages_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_agent_CollectorMessages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_agent_CollectorMessages_descriptor, + new java.lang.String[] { "Config", "Result", "StreamMessage", }); internal_static_agent_CollectorConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(4); internal_static_agent_CollectorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_CollectorConfig_descriptor, - new java.lang.String[] { "CollectorKey", "Groups", "RequestId", }); + new java.lang.String[] { "CollectorId", "Groups", "RequestId", }); internal_static_agent_CollectorConfigGroup_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(5); internal_static_agent_CollectorConfigGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_CollectorConfigGroup_descriptor, new java.lang.String[] { "Id", "GroupName", "GroupDescription", "Configurations", "CollectorId", }); internal_static_agent_CollectorGroupConfigurations_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(6); internal_static_agent_CollectorGroupConfigurations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_CollectorGroupConfigurations_descriptor, - new java.lang.String[] { "GroupId", "ConfKey", "ConfValue", "ConfName", "ConfDescription", "ConfDataType", "ConfRequired", }); - internal_static_agent_CollectorDelete_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_agent_CollectorDelete_fieldAccessorTable = new + new java.lang.String[] { "Id", "GroupId", "ConfKey", "ConfValue", "ConfName", "ConfDescription", "ConfDataType", "ConfRequired", }); + internal_static_agent_ConfigKnowledge_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_agent_ConfigKnowledge_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_CollectorDelete_descriptor, - new java.lang.String[] { "DeletedBy", }); - internal_static_agent_ListCollectorResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_agent_ListCollectorResponse_fieldAccessorTable = new + internal_static_agent_ConfigKnowledge_descriptor, + new java.lang.String[] { "Accepted", "RequestId", }); + internal_static_agent_CollectorHostnames_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_agent_CollectorHostnames_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_ListCollectorResponse_descriptor, - new java.lang.String[] { "Rows", "Total", }); + internal_static_agent_CollectorHostnames_descriptor, + new java.lang.String[] { "Hostname", }); + internal_static_agent_FilterByHostAndModule_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_agent_FilterByHostAndModule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_agent_FilterByHostAndModule_descriptor, + new java.lang.String[] { "Hostname", "Module", }); + internal_static_agent_ConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_agent_ConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_agent_ConfigRequest_descriptor, + new java.lang.String[] { "Module", }); agent.Common.getDescriptor(); } diff --git a/src/main/java/agent/CollectorServiceGrpc.java b/src/main/java/agent/CollectorServiceGrpc.java index 245a07d..e7d20b9 100644 --- a/src/main/java/agent/CollectorServiceGrpc.java +++ b/src/main/java/agent/CollectorServiceGrpc.java @@ -46,27 +46,27 @@ agent.Common.AuthResponse> getRegisterCollectorMethod() { return getRegisterCollectorMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteCollectorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteCollector", - requestType = agent.CollectorOuterClass.CollectorDelete.class, + requestType = agent.Common.DeleteRequest.class, responseType = agent.Common.AuthResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCollectorMethod() { - io.grpc.MethodDescriptor getDeleteCollectorMethod; + io.grpc.MethodDescriptor getDeleteCollectorMethod; if ((getDeleteCollectorMethod = CollectorServiceGrpc.getDeleteCollectorMethod) == null) { synchronized (CollectorServiceGrpc.class) { if ((getDeleteCollectorMethod = CollectorServiceGrpc.getDeleteCollectorMethod) == null) { CollectorServiceGrpc.getDeleteCollectorMethod = getDeleteCollectorMethod = - io.grpc.MethodDescriptor.newBuilder() + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCollector")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - agent.CollectorOuterClass.CollectorDelete.getDefaultInstance())) + agent.Common.DeleteRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( agent.Common.AuthResponse.getDefaultInstance())) .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("DeleteCollector")) @@ -289,7 +289,7 @@ default void registerCollector(agent.CollectorOuterClass.RegisterRequest request /** */ - default void deleteCollector(agent.CollectorOuterClass.CollectorDelete request, + default void deleteCollector(agent.Common.DeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCollectorMethod(), responseObserver); } @@ -367,7 +367,7 @@ public void registerCollector(agent.CollectorOuterClass.RegisterRequest request, /** */ - public void deleteCollector(agent.CollectorOuterClass.CollectorDelete request, + public void deleteCollector(agent.Common.DeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteCollectorMethod(), getCallOptions()), request, responseObserver); @@ -439,7 +439,7 @@ public agent.Common.AuthResponse registerCollector(agent.CollectorOuterClass.Reg /** */ - public agent.Common.AuthResponse deleteCollector(agent.CollectorOuterClass.CollectorDelete request) { + public agent.Common.AuthResponse deleteCollector(agent.Common.DeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteCollectorMethod(), getCallOptions(), request); } @@ -500,7 +500,7 @@ public com.google.common.util.concurrent.ListenableFuture deleteCollector( - agent.CollectorOuterClass.CollectorDelete request) { + agent.Common.DeleteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteCollectorMethod(), getCallOptions()), request); } @@ -568,7 +568,7 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_COLLECTOR: - serviceImpl.deleteCollector((agent.CollectorOuterClass.CollectorDelete) request, + serviceImpl.deleteCollector((agent.Common.DeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_COLLECTOR: @@ -619,7 +619,7 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser getDeleteCollectorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - agent.CollectorOuterClass.CollectorDelete, + agent.Common.DeleteRequest, agent.Common.AuthResponse>( service, METHODID_DELETE_COLLECTOR))) .addMethod( diff --git a/src/main/java/agent/Common.java b/src/main/java/agent/Common.java index c8b4b10..f02cb00 100644 --- a/src/main/java/agent/Common.java +++ b/src/main/java/agent/Common.java @@ -2259,6 +2259,558 @@ public agent.Common.Hostname getDefaultInstanceForType() { } + public interface DeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:agent.DeleteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string deleted_by = 1; + * @return The deletedBy. + */ + java.lang.String getDeletedBy(); + /** + * string deleted_by = 1; + * @return The bytes for deletedBy. + */ + com.google.protobuf.ByteString + getDeletedByBytes(); + } + /** + * Protobuf type {@code agent.DeleteRequest} + */ + public static final class DeleteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:agent.DeleteRequest) + DeleteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRequest.newBuilder() to construct. + private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteRequest() { + deletedBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.Common.internal_static_agent_DeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.Common.internal_static_agent_DeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.Common.DeleteRequest.class, agent.Common.DeleteRequest.Builder.class); + } + + public static final int DELETED_BY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object deletedBy_ = ""; + /** + * string deleted_by = 1; + * @return The deletedBy. + */ + @java.lang.Override + public java.lang.String getDeletedBy() { + java.lang.Object ref = deletedBy_; + 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(); + deletedBy_ = s; + return s; + } + } + /** + * string deleted_by = 1; + * @return The bytes for deletedBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeletedByBytes() { + java.lang.Object ref = deletedBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deletedBy_ = 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(deletedBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deletedBy_); + } + 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(deletedBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deletedBy_); + } + 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 agent.Common.DeleteRequest)) { + return super.equals(obj); + } + agent.Common.DeleteRequest other = (agent.Common.DeleteRequest) obj; + + if (!getDeletedBy() + .equals(other.getDeletedBy())) 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) + DELETED_BY_FIELD_NUMBER; + hash = (53 * hash) + getDeletedBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static agent.Common.DeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.Common.DeleteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.Common.DeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.Common.DeleteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.Common.DeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static agent.Common.DeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static agent.Common.DeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static agent.Common.DeleteRequest 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 agent.Common.DeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static agent.Common.DeleteRequest 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 agent.Common.DeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static agent.Common.DeleteRequest 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(agent.Common.DeleteRequest 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 agent.DeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:agent.DeleteRequest) + agent.Common.DeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return agent.Common.internal_static_agent_DeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return agent.Common.internal_static_agent_DeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + agent.Common.DeleteRequest.class, agent.Common.DeleteRequest.Builder.class); + } + + // Construct using agent.Common.DeleteRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deletedBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return agent.Common.internal_static_agent_DeleteRequest_descriptor; + } + + @java.lang.Override + public agent.Common.DeleteRequest getDefaultInstanceForType() { + return agent.Common.DeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public agent.Common.DeleteRequest build() { + agent.Common.DeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public agent.Common.DeleteRequest buildPartial() { + agent.Common.DeleteRequest result = new agent.Common.DeleteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(agent.Common.DeleteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deletedBy_ = deletedBy_; + } + } + + @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 agent.Common.DeleteRequest) { + return mergeFrom((agent.Common.DeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(agent.Common.DeleteRequest other) { + if (other == agent.Common.DeleteRequest.getDefaultInstance()) return this; + if (!other.getDeletedBy().isEmpty()) { + deletedBy_ = other.deletedBy_; + 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: { + deletedBy_ = 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 deletedBy_ = ""; + /** + * string deleted_by = 1; + * @return The deletedBy. + */ + public java.lang.String getDeletedBy() { + java.lang.Object ref = deletedBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deletedBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string deleted_by = 1; + * @return The bytes for deletedBy. + */ + public com.google.protobuf.ByteString + getDeletedByBytes() { + java.lang.Object ref = deletedBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deletedBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string deleted_by = 1; + * @param value The deletedBy to set. + * @return This builder for chaining. + */ + public Builder setDeletedBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + deletedBy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string deleted_by = 1; + * @return This builder for chaining. + */ + public Builder clearDeletedBy() { + deletedBy_ = getDefaultInstance().getDeletedBy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string deleted_by = 1; + * @param value The bytes for deletedBy to set. + * @return This builder for chaining. + */ + public Builder setDeletedByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + deletedBy_ = 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:agent.DeleteRequest) + } + + // @@protoc_insertion_point(class_scope:agent.DeleteRequest) + private static final agent.Common.DeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new agent.Common.DeleteRequest(); + } + + public static agent.Common.DeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRequest 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 agent.Common.DeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_agent_ListRequest_descriptor; private static final @@ -2274,6 +2826,11 @@ public agent.Common.Hostname getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_agent_Hostname_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_agent_DeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_agent_DeleteRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2287,11 +2844,12 @@ public agent.Common.Hostname getDefaultInstanceForType() { "page_number\030\001 \001(\005\022\021\n\tpage_size\030\002 \001(\005\022\024\n\014" + "search_query\030\003 \001(\t\022\017\n\007sort_by\030\004 \001(\t\"\'\n\014A" + "uthResponse\022\n\n\002id\030\001 \001(\r\022\013\n\003key\030\002 \001(\t\"\034\n\010" + - "Hostname\022\020\n\010hostname\030\001 \001(\t*.\n\006Status\022\n\n\006" + - "ONLINE\020\000\022\013\n\007OFFLINE\020\001\022\013\n\007UNKNOWN\020\002*)\n\rCo" + - "nnectorType\022\t\n\005AGENT\020\000\022\r\n\tCOLLECTOR\020\001B2Z" + - "0github.com/utmstack/UTMStack/agent-mana" + - "ger/agentb\006proto3" + "Hostname\022\020\n\010hostname\030\001 \001(\t\"#\n\rDeleteRequ" + + "est\022\022\n\ndeleted_by\030\001 \001(\t*.\n\006Status\022\n\n\006ONL" + + "INE\020\000\022\013\n\007OFFLINE\020\001\022\013\n\007UNKNOWN\020\002*)\n\rConne" + + "ctorType\022\t\n\005AGENT\020\000\022\r\n\tCOLLECTOR\020\001B2Z0gi" + + "thub.com/utmstack/UTMStack/agent-manager" + + "/agentb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -2315,6 +2873,12 @@ public agent.Common.Hostname getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_Hostname_descriptor, new java.lang.String[] { "Hostname", }); + internal_static_agent_DeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_agent_DeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_agent_DeleteRequest_descriptor, + new java.lang.String[] { "DeletedBy", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/plugins/Plugins.java b/src/main/java/plugins/Plugins.java index 8335135..53d4694 100644 --- a/src/main/java/plugins/Plugins.java +++ b/src/main/java/plugins/Plugins.java @@ -607,12 +607,12 @@ public interface LogOrBuilder extends getDataSourceBytes(); /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return The timestamp. */ java.lang.String getTimestamp(); /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return The bytes for timestamp. */ com.google.protobuf.ByteString @@ -804,7 +804,7 @@ public java.lang.String getDataSource() { @SuppressWarnings("serial") private volatile java.lang.Object timestamp_ = ""; /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return The timestamp. */ @java.lang.Override @@ -821,7 +821,7 @@ public java.lang.String getTimestamp() { } } /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return The bytes for timestamp. */ @java.lang.Override @@ -1581,7 +1581,7 @@ public Builder setDataSourceBytes( private java.lang.Object timestamp_ = ""; /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return The timestamp. */ public java.lang.String getTimestamp() { @@ -1597,7 +1597,7 @@ public java.lang.String getTimestamp() { } } /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return The bytes for timestamp. */ public com.google.protobuf.ByteString @@ -1614,7 +1614,7 @@ public java.lang.String getTimestamp() { } } /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @param value The timestamp to set. * @return This builder for chaining. */ @@ -1627,7 +1627,7 @@ public Builder setTimestamp( return this; } /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @return This builder for chaining. */ public Builder clearTimestamp() { @@ -1637,7 +1637,7 @@ public Builder clearTimestamp() { return this; } /** - * string timestamp = 4; + * string timestamp = 4 [json_name = "@timestamp"]; * @param value The bytes for timestamp to set. * @return This builder for chaining. */ @@ -1879,13 +1879,13 @@ public plugins.Plugins.Log getDefaultInstanceForType() { java.lang.String[] descriptorData = { "\n\rplugins.proto\022\007plugins\032\033google/protobu" + "f/empty.proto\032\034google/protobuf/struct.pr" + - "oto\"\025\n\003Ack\022\016\n\006lastId\030\001 \001(\t\"i\n\003Log\022\n\n\002id\030" + + "oto\"\025\n\003Ack\022\016\n\006lastId\030\001 \001(\t\"u\n\003Log\022\n\n\002id\030" + "\001 \001(\t\022\020\n\010dataType\030\002 \001(\t\022\022\n\ndataSource\030\003 " + - "\001(\t\022\021\n\ttimestamp\030\004 \001(\t\022\020\n\010tenantId\030\005 \001(\t" + - "\022\013\n\003raw\030\006 \001(\t2;\n\013Integration\022,\n\nProcessL" + - "og\022\014.plugins.Log\032\014.plugins.Ack(\0010\001B\'Z%gi" + - "thub.com/threatwinds/go-sdk/pluginsP\000P\001b" + - "\006proto3" + "\001(\t\022\035\n\ttimestamp\030\004 \001(\tR\n@timestamp\022\020\n\010te" + + "nantId\030\005 \001(\t\022\013\n\003raw\030\006 \001(\t2;\n\013Integration" + + "\022,\n\nProcessLog\022\014.plugins.Log\032\014.plugins.A" + + "ck(\0010\001B\'Z%github.com/threatwinds/go-sdk/" + + "pluginsP\000P\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/proto/collector.proto b/src/main/proto/collector.proto index 92a3ecb..c54ed98 100644 --- a/src/main/proto/collector.proto +++ b/src/main/proto/collector.proto @@ -7,7 +7,7 @@ package agent; service CollectorService { rpc RegisterCollector(RegisterRequest) returns (AuthResponse) {} - rpc DeleteCollector(CollectorDelete) returns (AuthResponse) {} + rpc DeleteCollector(DeleteRequest) returns (AuthResponse) {} rpc ListCollector (ListRequest) returns (ListCollectorResponse) {} rpc CollectorStream(stream CollectorMessages) returns (stream CollectorMessages) {} rpc ListCollectorHostnames (ListRequest) returns (CollectorHostnames) {} @@ -23,27 +23,6 @@ enum CollectorModule{ AS_400 = 0; } -message CollectorMessages { - oneof stream_message { - CollectorConfig config = 1; - ConfigKnowledge result = 2; - } -} - -message CollectorHostnames{ - repeated string hostname = 1; -} - -message FilterByHostAndModule{ - string hostname = 1; - CollectorModule module = 2; -} - -message ConfigKnowledge{ - string accepted = 1; - string request_id = 2; -} - message RegisterRequest { string ip = 1; string hostname = 2; @@ -51,8 +30,9 @@ message RegisterRequest { CollectorModule collector = 4; } -message ConfigRequest { - CollectorModule module = 1; +message ListCollectorResponse { + repeated Collector rows = 1; + int32 total = 2; } message Collector { @@ -63,25 +43,32 @@ message Collector { string hostname = 5; string version = 6; CollectorModule module = 7; - repeated CollectorConfigGroup groups = 8; - string last_seen = 9; + string last_seen = 8; +} + +message CollectorMessages { + oneof stream_message { + CollectorConfig config = 1; + ConfigKnowledge result = 2; + } } message CollectorConfig { - string collector_key = 1; + string collector_id = 1; repeated CollectorConfigGroup groups = 2; string request_id = 3; } message CollectorConfigGroup { int32 id = 1; - string group_name = 3; - string group_description = 4; - repeated CollectorGroupConfigurations configurations = 5; - int32 collector_id = 6; + string group_name = 2; + string group_description = 3; + repeated CollectorGroupConfigurations configurations = 4; + int32 collector_id = 5; } message CollectorGroupConfigurations { + int32 id = 1; int32 group_id = 2; string conf_key = 3; string conf_value = 4; @@ -91,11 +78,20 @@ message CollectorGroupConfigurations { bool conf_required = 8; } -message CollectorDelete { - string deleted_by = 1; +message ConfigKnowledge{ + string accepted = 1; + string request_id = 2; } -message ListCollectorResponse { - repeated Collector rows = 1; - int32 total = 2; +message CollectorHostnames{ + repeated string hostname = 1; +} + +message FilterByHostAndModule{ + string hostname = 1; + CollectorModule module = 2; +} + +message ConfigRequest { + CollectorModule module = 1; } diff --git a/src/main/proto/common.proto b/src/main/proto/common.proto index 94d695a..0a53c8c 100644 --- a/src/main/proto/common.proto +++ b/src/main/proto/common.proto @@ -30,3 +30,7 @@ message AuthResponse { message Hostname{ string hostname = 1; } + +message DeleteRequest { + string deleted_by = 1; +} \ No newline at end of file diff --git a/src/main/proto/plugins.proto b/src/main/proto/plugins.proto index bbe7e47..0d40599 100644 --- a/src/main/proto/plugins.proto +++ b/src/main/proto/plugins.proto @@ -15,7 +15,7 @@ message Log { string id = 1; string dataType = 2; string dataSource = 3; - string timestamp = 4; + string timestamp = 4 [json_name="@timestamp"]; string tenantId = 5; string raw = 6; } From b9c7deaa7227126dd6b5a65915384437fd99cf85 Mon Sep 17 00:00:00 2001 From: "Freddy R. Laffita Almaguer" Date: Mon, 26 Aug 2024 18:04:26 +0300 Subject: [PATCH 2/6] Updating grpc services with new proto changes, adding format error method to improve the code. --- .../grpc/service/CollectorService.java | 32 +++++++++---------- .../grpc/service/PanelCollectorService.java | 6 ++-- .../utmstack/grpc/service/PingService.java | 4 +-- .../com/utmstack/grpc/util/StringUtil.java | 8 +++-- 4 files changed, 26 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/utmstack/grpc/service/CollectorService.java b/src/main/java/com/utmstack/grpc/service/CollectorService.java index 5614082..9e9ee99 100644 --- a/src/main/java/com/utmstack/grpc/service/CollectorService.java +++ b/src/main/java/com/utmstack/grpc/service/CollectorService.java @@ -2,7 +2,6 @@ import agent.CollectorOuterClass.ConfigRequest; import agent.CollectorOuterClass.CollectorHostnames; -import agent.CollectorOuterClass.CollectorDelete; import agent.CollectorOuterClass.RegisterRequest; import agent.CollectorOuterClass.CollectorMessages; import agent.CollectorOuterClass.CollectorConfig; @@ -11,12 +10,14 @@ import agent.Common.ListRequest; import agent.CollectorServiceGrpc; import agent.Common.AuthResponse; +import agent.Common.DeleteRequest; import com.utmstack.grpc.connection.GrpcConnection; import com.utmstack.grpc.exception.CollectorServiceGrpcException; import com.utmstack.grpc.exception.GrpcConnectionException; import com.utmstack.grpc.jclient.config.interceptors.impl.*; import com.utmstack.grpc.service.iface.IExecuteActionOnError; import com.utmstack.grpc.service.iface.IExecuteActionOnNext; +import com.utmstack.grpc.util.StringUtil; import io.grpc.*; import io.grpc.stub.StreamObserver; import org.apache.logging.log4j.LogManager; @@ -59,8 +60,8 @@ public AuthResponse registerCollector(RegisterRequest request, String connection new GrpcTypeInterceptor()) .registerCollector(request); } catch (Exception e) { - String msg = "Error registering collector: " + e.getMessage().replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); - throw new CollectorServiceGrpcException(msg); + String msg = "Error registering collector: " + e.getMessage(); + throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); } } @@ -79,9 +80,8 @@ public CollectorConfig requestCollectorConfig(ConfigRequest request, AuthRespons new GrpcTypeInterceptor()) .getCollectorConfig(request); } catch (Exception e) { - String msg = "Error getting collector configuration: " + e.getMessage() - .replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); - throw new CollectorServiceGrpcException(msg); + String msg = "Error getting collector configuration: " + e.getMessage(); + throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); } } @@ -92,7 +92,7 @@ public CollectorConfig requestCollectorConfig(ConfigRequest request, AuthRespons * @param collector is the information of the collector to delete. * @throws CollectorServiceGrpcException if the action can't be performed. */ - public AuthResponse deleteCollector(CollectorDelete request, AuthResponse collector) throws CollectorServiceGrpcException { + public AuthResponse deleteCollector(DeleteRequest request, AuthResponse collector) throws CollectorServiceGrpcException { try { return blockingStub.withInterceptors(new GrpcKeyInterceptor() .withCollectorKey(collector.getKey()), @@ -101,7 +101,7 @@ public AuthResponse deleteCollector(CollectorDelete request, AuthResponse collec .deleteCollector(request); } catch (Exception e) { String msg = "Error removing collector: " + e.getMessage(); - throw new CollectorServiceGrpcException(msg); + throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); } } @@ -123,7 +123,7 @@ public StreamObserver getCollectorStreamObserver(IExecuteActi new GrpcTypeInterceptor() ).collectorStream(getCollectorMessagesObserver(toDoAction, errorAction)); } catch (Exception e) { - throw new CollectorServiceGrpcException(e.getMessage().replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE")); + throw new CollectorServiceGrpcException(StringUtil.formatError(e.getMessage())); } } @@ -140,9 +140,8 @@ public ListCollectorResponse listCollector(ListRequest request, String internalK return blockingStub.withInterceptors(new GrpcInternalKeyInterceptor().withInternalKey(internalKey), new GrpcTypeInterceptor()).listCollector(request); } catch (Exception e) { - String msg = "Error listing collectors: " + e.getMessage() - .replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); - throw new CollectorServiceGrpcException(msg); + String msg = "Error listing collectors: " + e.getMessage(); + throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); } } @@ -161,8 +160,8 @@ public CollectorHostnames ListCollectorHostnames(ListRequest request, String int return blockingStub.withInterceptors(new GrpcInternalKeyInterceptor().withInternalKey(internalKey), new GrpcTypeInterceptor()).listCollectorHostnames(request); } catch (Exception e) { - String msg = "Error listing collectors hostnames: " + e.getMessage().replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); - throw new CollectorServiceGrpcException(msg); + String msg = "Error listing collectors hostnames: " + e.getMessage(); + throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); } } @@ -178,9 +177,8 @@ public ListCollectorResponse GetCollectorsByHostnameAndModule(FilterByHostAndMod return blockingStub.withInterceptors(new GrpcInternalKeyInterceptor().withInternalKey(internalKey), new GrpcTypeInterceptor()).getCollectorsByHostnameAndModule(request); } catch (Exception e) { - String msg = "Error listing collectors by hostname and module: " + e.getMessage() - .replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); - throw new CollectorServiceGrpcException(msg); + String msg = "Error listing collectors by hostname and module: " + e.getMessage(); + throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); } } diff --git a/src/main/java/com/utmstack/grpc/service/PanelCollectorService.java b/src/main/java/com/utmstack/grpc/service/PanelCollectorService.java index 051209c..1561b5d 100644 --- a/src/main/java/com/utmstack/grpc/service/PanelCollectorService.java +++ b/src/main/java/com/utmstack/grpc/service/PanelCollectorService.java @@ -9,6 +9,7 @@ import com.utmstack.grpc.exception.GrpcConnectionException; import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcInternalKeyInterceptor; import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcTypeInterceptor; +import com.utmstack.grpc.util.StringUtil; import io.grpc.ManagedChannel; import io.grpc.stub.StreamObserver; import org.apache.logging.log4j.LogManager; @@ -42,9 +43,8 @@ public ConfigKnowledge insertCollectorConfig(CollectorConfig config, String inte return blockingStub.withInterceptors(new GrpcInternalKeyInterceptor().withInternalKey(internalKey), new GrpcTypeInterceptor()).registerCollectorConfig(config); } catch (Exception e) { - String msg = "Error inserting collector configuration: " + e.getMessage() - .replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); - throw new CollectorConfigurationGrpcException(msg); + String msg = "Error inserting collector configuration: " + e.getMessage(); + throw new CollectorConfigurationGrpcException(StringUtil.formatError(msg)); } } } diff --git a/src/main/java/com/utmstack/grpc/service/PingService.java b/src/main/java/com/utmstack/grpc/service/PingService.java index d6da451..5120638 100644 --- a/src/main/java/com/utmstack/grpc/service/PingService.java +++ b/src/main/java/com/utmstack/grpc/service/PingService.java @@ -10,6 +10,7 @@ import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcIdInterceptor; import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcKeyInterceptor; import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcTypeInterceptor; +import com.utmstack.grpc.util.StringUtil; import io.grpc.ManagedChannel; import io.grpc.stub.StreamObserver; import org.apache.logging.log4j.LogManager; @@ -84,8 +85,7 @@ public void onNext(PingResponse pingResponse) { @Override public void onError(Throwable cause) { - logger.error("Executing ping request to server: " + cause.getMessage() - .replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE")); + logger.error("Executing ping request to server: " + StringUtil.formatError(cause.getMessage())); try { // Wait 10 seconds before try again finishLatch.await(30, TimeUnit.SECONDS); diff --git a/src/main/java/com/utmstack/grpc/util/StringUtil.java b/src/main/java/com/utmstack/grpc/util/StringUtil.java index 9d71ab7..1b817be 100644 --- a/src/main/java/com/utmstack/grpc/util/StringUtil.java +++ b/src/main/java/com/utmstack/grpc/util/StringUtil.java @@ -1,7 +1,5 @@ package com.utmstack.grpc.util; -import com.utmstack.grpc.jclient.config.Constants; - /** * @author Freddy R. Laffita Almaguer. * This class handle useful functions related to String operations @@ -11,4 +9,10 @@ public class StringUtil { public static boolean hasText(String str) { return (str != null && !str.trim().isEmpty()); } + + public static String formatError(String error) { + if (hasText(error)){ + return error.replace("UNAVAILABLE: io exception","SERVER UNAVAILABLE"); + } else return ""; + } } From df26663568854eddd430c74a691bf03761385403 Mon Sep 17 00:00:00 2001 From: "Freddy R. Laffita Almaguer" Date: Mon, 26 Aug 2024 22:56:31 +0300 Subject: [PATCH 3/6] Updating README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b089a3a..4edf2aa 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ This method is used to remove all information of a collector, including its conf ~~~ import com.utmstack.grpc.service.CollectorService; import com.utmstack.grpc.exception.CollectorServiceGrpcException; -import agent.CollectorOuterClass.CollectorDelete; +import agent.Common.DeleteRequest; import agent.Common.AuthResponse; import com.utmstack.grpc.connection.GrpcConnection; import com.utmstack.grpc.exception.GrpcConnectionException; @@ -200,7 +200,7 @@ String collectorKey = "the collector key"; int collectorId = 1; // the collector's database id String deletedBy = "a user name, or IP, or hostname"; // Something that indicates who performed the action -CollectorDelete req = CollectorDelete.newBuilder() +DeleteRequest req = DeleteRequest.newBuilder() .setDeletedBy(deletedBy) .build(); AuthResponse collector = AuthResponse.newBuilder().setKey(collectorKey) From 656ab3225a2a012b43e9806b000fe67e00149b03 Mon Sep 17 00:00:00 2001 From: "Freddy R. Laffita Almaguer" Date: Tue, 27 Aug 2024 18:40:19 +0300 Subject: [PATCH 4/6] Updating README.md --- README.md | 119 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 76 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 4edf2aa..b6b3508 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ con.getConnectionChannel().shutdown(); [Back to Contents](#contents)
This method is a bidirectional stream used to receive collector's configurations asynchronously from the server and send confirmation back when received. This method is more complex than the others because needs that you implement you own action when receiving -a configuration, to do that you must create a class that implements the `IExecuteActionOnNext` interface. +a configuration, to do that you must create a class that implements the `IExecuteActionOnNext` and `IExecuteActionOnError` interfaces. This method try to recover itself after server reconnections, so, you don't have to worry about connect to server do all over again, but we strongly **_recommend to execute the code below in a separated thread_** to avoid unwanted interruptions. @@ -241,11 +241,16 @@ import com.utmstack.grpc.connection.GrpcConnection; import com.utmstack.grpc.exception.GrpcConnectionException; import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcEmptyAuthInterceptor; import com.utmstack.grpc.service.iface.IExecuteActionOnNext; +import com.utmstack.grpc.service.iface.IExecuteActionOnError; + +import com.utmstack.grpc.util.StringUtil; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import io.grpc.stub.StreamObserver; ~~~
**Usage**
-Create a class that holds the action to execute when a configuration is received, see an example below. +Create a class that holds the action to execute when a configuration is received and other when stream has errors, see an example below. ~~~ public class OnNextConfiguration implements IExecuteActionOnNext { @@ -267,6 +272,23 @@ public class OnNextConfiguration implements IExecuteActionOnNext { } ~~~ ~~~ +public class OnErrorCollectorMessagesStream implements IExecuteActionOnError { + private static final Logger logger = LogManager.getLogger(OnErrorCollectorMessagesStream.class); + + @Override + public void executeOnError(String message) { + // Log the error message, check if it is server UNAVAILABLE, if true -> try to request configuration on the next execution + if (message.contains("UNAVAILABLE")) { + logger.error("Connecting to the collector configuration stream: " + StringUtil.formatError(message)); + } else if (message.contains("ALREADY_EXISTS")) { + logger.info("Collector configuration stream is connected, reconnection is not needed."); + } else { + logger.error("Connecting to the collector configuration stream, server responded with unusual error: " + StringUtil.formatError(message)); + } + } +} +~~~ +~~~ try { GrpcConnection con = new GrpcConnection(); con.createChannel(AGENT_MANAGER_HOST, AGENT_MANAGER_PORT, new GrpcEmptyAuthInterceptor()); @@ -277,6 +299,8 @@ try { // Authentication information String collectorKey = "the collector key"; int collectorId = 1; // the collector's database id + AuthResponse collector = AuthResponse.newBuilder().setKey(collectorKey) + .setId(collectorId).build(); // Creating the stream StreamObserver collectorStreamObserver; @@ -286,7 +310,7 @@ try { while (true) { try { // Connecting to the stream - collectorStreamObserver = s.getCollectorStreamObserver(new OnNextConfiguration(),collector); + collectorStreamObserver = s.getCollectorStreamObserver(new OnNextConfiguration(), new OnErrorCollectorMessagesStream(),collector); // Wait for server response finishLatch.await(10, TimeUnit.SECONDS); @@ -462,7 +486,13 @@ con.getConnectionChannel().shutdown(); #### Send logs to log-auth-proxy [Back to Contents](#contents)
-This method is used to send logs from a collector to [log-auth-proxy](#description). +This method is used to send logs from a collector to [log-auth-proxy](#description). This method is a bidirectional stream used to + send logs to server and receive the acknowledgment when received by server. +This method is more complex than the others because needs that you implement you own action for the acknowledgment, to do +that you must create a class that implements the `OnNextLogsAck` interface. +We strongly **_recommend to execute the code below in a separated thread_** +to avoid unwanted interruptions. +
**Imports** ~~~ import agent.Common; @@ -489,7 +519,10 @@ LogMessagingService serv = new LogMessagingService(con); // Authentication information -String collectorKey = "the collector's key"; + String collectorKey = "the collector key"; + int collectorId = 1; // the collector's database id + AuthResponse collector = AuthResponse.newBuilder().setKey(collectorKey) + .setId(collectorId).build(); // Creating the stream used to send logs to server StreamObserver logStreamObserver = serv.getLogsStreamObserver(new OnNextLogsAck(),collector); @@ -503,7 +536,6 @@ String collectorKey = "the collector's key"; .setId(UUID.randomUUID().toString()) .setDataSource("hostname, IP or some datasource identifier") .setDataType(DATA_TYPE) - .setTimestamp(ConfigVerification.getActualTime()) .setRaw(message) .build(); logStreamObserver.onNext(log); @@ -706,7 +738,7 @@ package agent; service CollectorService { rpc RegisterCollector(RegisterRequest) returns (AuthResponse) {} - rpc DeleteCollector(CollectorDelete) returns (AuthResponse) {} + rpc DeleteCollector(DeleteRequest) returns (AuthResponse) {} rpc ListCollector (ListRequest) returns (ListCollectorResponse) {} rpc CollectorStream(stream CollectorMessages) returns (stream CollectorMessages) {} rpc ListCollectorHostnames (ListRequest) returns (CollectorHostnames) {} @@ -722,27 +754,6 @@ enum CollectorModule{ AS_400 = 0; } -message CollectorMessages { - oneof stream_message { - CollectorConfig config = 1; - ConfigKnowledge result = 2; - } -} - -message CollectorHostnames{ - repeated string hostname = 1; -} - -message FilterByHostAndModule{ - string hostname = 1; - CollectorModule module = 2; -} - -message ConfigKnowledge{ - string accepted = 1; - string request_id = 2; -} - message RegisterRequest { string ip = 1; string hostname = 2; @@ -750,8 +761,9 @@ message RegisterRequest { CollectorModule collector = 4; } -message ConfigRequest { - CollectorModule module = 1; +message ListCollectorResponse { + repeated Collector rows = 1; + int32 total = 2; } message Collector { @@ -762,25 +774,32 @@ message Collector { string hostname = 5; string version = 6; CollectorModule module = 7; - repeated CollectorConfigGroup groups = 8; - string last_seen = 9; + string last_seen = 8; +} + +message CollectorMessages { + oneof stream_message { + CollectorConfig config = 1; + ConfigKnowledge result = 2; + } } message CollectorConfig { - string collector_key = 1; + string collector_id = 1; repeated CollectorConfigGroup groups = 2; string request_id = 3; } message CollectorConfigGroup { int32 id = 1; - string group_name = 3; - string group_description = 4; - repeated CollectorGroupConfigurations configurations = 5; - int32 collector_id = 6; + string group_name = 2; + string group_description = 3; + repeated CollectorGroupConfigurations configurations = 4; + int32 collector_id = 5; } message CollectorGroupConfigurations { + int32 id = 1; int32 group_id = 2; string conf_key = 3; string conf_value = 4; @@ -790,14 +809,24 @@ message CollectorGroupConfigurations { bool conf_required = 8; } -message CollectorDelete { - string deleted_by = 1; +message ConfigKnowledge{ + string accepted = 1; + string request_id = 2; } -message ListCollectorResponse { - repeated Collector rows = 1; - int32 total = 2; +message CollectorHostnames{ + repeated string hostname = 1; +} + +message FilterByHostAndModule{ + string hostname = 1; + CollectorModule module = 2; } + +message ConfigRequest { + CollectorModule module = 1; +} + ~~~ #### Logs @@ -821,7 +850,7 @@ message Log { string id = 1; string dataType = 2; string dataSource = 3; - string timestamp = 4; + string timestamp = 4 [json_name="@timestamp"]; string tenantId = 5; string raw = 6; } @@ -893,4 +922,8 @@ message AuthResponse { message Hostname{ string hostname = 1; } + +message DeleteRequest { + string deleted_by = 1; +} ~~~ From ce0bc350299de4e28758b5c4a6fe63d77fb8f9f4 Mon Sep 17 00:00:00 2001 From: "Freddy R. Laffita Almaguer" Date: Fri, 30 Aug 2024 18:12:14 +0300 Subject: [PATCH 5/6] Removing ListCollectorHostnames and GetCollectorsByHostnameAndModule methods from collector service, updating README.md and rebuild grpc classes. Updating POM to version 1.2.12 --- README.md | 114 +- pom.xml | 2 +- src/main/java/agent/CollectorOuterClass.java | 1339 +---------------- src/main/java/agent/CollectorServiceGrpc.java | 152 +- src/main/java/agent/Common.java | 578 +------ .../grpc/service/CollectorService.java | 39 - src/main/proto/collector.proto | 11 - src/main/proto/common.proto | 6 +- 8 files changed, 29 insertions(+), 2212 deletions(-) diff --git a/README.md b/README.md index b6b3508..048db43 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ responsible for the authentication of the logs and forwarding to UTMStack platfo + [Remove collector](#remove-collector) + [Configuration stream](#configuration-stream) + [List collectors](#list-collectors) - + [List collector's hostnames](#list-collectors-hostnames) - + [Collector by hostname and module](#collector-by-hostname-and-module) + [Send logs to log-auth-proxy](#send-logs-to-log-auth-proxy) + [Upsert collector configuration](#upsert-collector-configuration) - [Important classes](#important-classes) @@ -387,102 +385,6 @@ ListCollectorResponse response = serv.listCollector(req, internalKey); con.getConnectionChannel().shutdown(); ~~~ -#### List collector's hostnames -[Back to Contents](#contents)
-This method is similar than the list collector but only return the hostnames of collectors, the request can be filtered and sorted as needed. -
**Imports** -~~~ -import com.utmstack.grpc.service.CollectorService; -import com.utmstack.grpc.exception.CollectorServiceGrpcException; -import agent.CollectorOuterClass.CollectorModule; -import agent.CollectorOuterClass.CollectorHostnames; -import agent.Common.ListRequest; -import com.utmstack.grpc.connection.GrpcConnection; -import com.utmstack.grpc.exception.GrpcConnectionException; -import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcEmptyAuthInterceptor; -~~~ -
**Usage**
-~~~ -try { -GrpcConnection con = new GrpcConnection(); -con.createChannel(AGENT_MANAGER_HOST, AGENT_MANAGER_PORT, new GrpcEmptyAuthInterceptor()); - -// Instantiating the collector service with a connection to the agent manager -CollectorService serv = new CollectorService(con); - -// Authentication information -String internalKey = "the UTMStack's internal key"; - -ListRequest req = ListRequest.newBuilder() - .setPageNumber(0) - .setPageSize(1000) - .setSearchQuery("module.Is=" + CollectorModule.AS_400.name()) - .setSortBy("") - .build() - -// List collector's hostnames according to the filters -// CollectorHostnames is an array of Strings containing the hostnames -CollectorHostnames response = serv.ListCollectorHostnames(req, internalKey); - -} catch (GrpcConnectionException e) { -// Your exception handling here when the channel can't be created -} catch (CollectorServiceGrpcException e) { -// Your exception handling here when the collector's hostnames can't be listed -} -~~~ -**Note:** When you use non-streaming methods like before, ensure that you close the channel with: -~~~ -// Close the connection channel -con.getConnectionChannel().shutdown(); -~~~ - - -#### Collector by hostname and module -[Back to Contents](#contents)
-This method is used to get a collector with its configuration by hostname and module. -
**Imports** -~~~ -import com.utmstack.grpc.service.CollectorService; -import com.utmstack.grpc.exception.CollectorServiceGrpcException; -import agent.CollectorOuterClass.CollectorModule; -import agent.CollectorOuterClass.CollectorHostnames; -import agent.CollectorOuterClass.FilterByHostAndModule -import agent.Common.ListRequest; -import com.utmstack.grpc.connection.GrpcConnection; -import com.utmstack.grpc.exception.GrpcConnectionException; -import com.utmstack.grpc.jclient.config.interceptors.impl.GrpcEmptyAuthInterceptor; -~~~ -
**Usage**
-~~~ -try { -GrpcConnection con = new GrpcConnection(); -con.createChannel(AGENT_MANAGER_HOST, AGENT_MANAGER_PORT, new GrpcEmptyAuthInterceptor()); - -// Instantiating the collector service with a connection to the agent manager -CollectorService serv = new CollectorService(con); - -// Authentication information -String internalKey = "the UTMStack's internal key"; - -FilterByHostAndModule req = FilterByHostAndModule.newBuilder() - .setHostname("Collector's hostname") - .setModule(CollectorModule.AS_400).build(); - -// Receiving the collector information, including configurations -ListCollectorResponse response = serv.GetCollectorsByHostnameAndModule(req, internalKey); - -} catch (GrpcConnectionException e) { -// Your exception handling here when the channel can't be created -} catch (CollectorServiceGrpcException e) { -// Your exception handling here when the collector's information can't be listed -} -~~~ -**Note:** When you use non-streaming methods like before, ensure that you close the channel with: -~~~ -// Close the connection channel -con.getConnectionChannel().shutdown(); -~~~ - #### Send logs to log-auth-proxy [Back to Contents](#contents)
@@ -741,8 +643,6 @@ service CollectorService { rpc DeleteCollector(DeleteRequest) returns (AuthResponse) {} rpc ListCollector (ListRequest) returns (ListCollectorResponse) {} rpc CollectorStream(stream CollectorMessages) returns (stream CollectorMessages) {} - rpc ListCollectorHostnames (ListRequest) returns (CollectorHostnames) {} - rpc GetCollectorsByHostnameAndModule (FilterByHostAndModule) returns (ListCollectorResponse) {} rpc GetCollectorConfig (ConfigRequest) returns (CollectorConfig) {} } @@ -814,15 +714,6 @@ message ConfigKnowledge{ string request_id = 2; } -message CollectorHostnames{ - repeated string hostname = 1; -} - -message FilterByHostAndModule{ - string hostname = 1; - CollectorModule module = 2; -} - message ConfigRequest { CollectorModule module = 1; } @@ -919,11 +810,8 @@ message AuthResponse { string key = 2; } -message Hostname{ - string hostname = 1; -} - message DeleteRequest { string deleted_by = 1; } + ~~~ diff --git a/pom.xml b/pom.xml index caa45d0..577f01b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.utmstack.grpc.jclient collector-client-4j - 1.2.11 + 1.2.12 jar UTMStack Agent Collector Client for Java projects diff --git a/src/main/java/agent/CollectorOuterClass.java b/src/main/java/agent/CollectorOuterClass.java index 2322aac..0329d2d 100644 --- a/src/main/java/agent/CollectorOuterClass.java +++ b/src/main/java/agent/CollectorOuterClass.java @@ -8634,1281 +8634,6 @@ public agent.CollectorOuterClass.ConfigKnowledge getDefaultInstanceForType() { } - public interface CollectorHostnamesOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.CollectorHostnames) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string hostname = 1; - * @return A list containing the hostname. - */ - java.util.List - getHostnameList(); - /** - * repeated string hostname = 1; - * @return The count of hostname. - */ - int getHostnameCount(); - /** - * repeated string hostname = 1; - * @param index The index of the element to return. - * @return The hostname at the given index. - */ - java.lang.String getHostname(int index); - /** - * repeated string hostname = 1; - * @param index The index of the value to return. - * @return The bytes of the hostname at the given index. - */ - com.google.protobuf.ByteString - getHostnameBytes(int index); - } - /** - * Protobuf type {@code agent.CollectorHostnames} - */ - public static final class CollectorHostnames extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.CollectorHostnames) - CollectorHostnamesOrBuilder { - private static final long serialVersionUID = 0L; - // Use CollectorHostnames.newBuilder() to construct. - private CollectorHostnames(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CollectorHostnames() { - hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CollectorHostnames(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorHostnames.class, agent.CollectorOuterClass.CollectorHostnames.Builder.class); - } - - public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string hostname = 1; - * @return A list containing the hostname. - */ - public com.google.protobuf.ProtocolStringList - getHostnameList() { - return hostname_; - } - /** - * repeated string hostname = 1; - * @return The count of hostname. - */ - public int getHostnameCount() { - return hostname_.size(); - } - /** - * repeated string hostname = 1; - * @param index The index of the element to return. - * @return The hostname at the given index. - */ - public java.lang.String getHostname(int index) { - return hostname_.get(index); - } - /** - * repeated string hostname = 1; - * @param index The index of the value to return. - * @return The bytes of the hostname at the given index. - */ - public com.google.protobuf.ByteString - getHostnameBytes(int index) { - return hostname_.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 < hostname_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_.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 < hostname_.size(); i++) { - dataSize += computeStringSizeNoTag(hostname_.getRaw(i)); - } - size += dataSize; - size += 1 * getHostnameList().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 agent.CollectorOuterClass.CollectorHostnames)) { - return super.equals(obj); - } - agent.CollectorOuterClass.CollectorHostnames other = (agent.CollectorOuterClass.CollectorHostnames) obj; - - if (!getHostnameList() - .equals(other.getHostnameList())) 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 (getHostnameCount() > 0) { - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostnameList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.CollectorHostnames parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.CollectorHostnames 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 agent.CollectorOuterClass.CollectorHostnames parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static agent.CollectorOuterClass.CollectorHostnames 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 agent.CollectorOuterClass.CollectorHostnames parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.CollectorHostnames 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(agent.CollectorOuterClass.CollectorHostnames 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 agent.CollectorHostnames} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.CollectorHostnames) - agent.CollectorOuterClass.CollectorHostnamesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.CollectorHostnames.class, agent.CollectorOuterClass.CollectorHostnames.Builder.class); - } - - // Construct using agent.CollectorOuterClass.CollectorHostnames.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_CollectorHostnames_descriptor; - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames getDefaultInstanceForType() { - return agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance(); - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames build() { - agent.CollectorOuterClass.CollectorHostnames result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public agent.CollectorOuterClass.CollectorHostnames buildPartial() { - agent.CollectorOuterClass.CollectorHostnames result = new agent.CollectorOuterClass.CollectorHostnames(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(agent.CollectorOuterClass.CollectorHostnames result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - hostname_.makeImmutable(); - 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 agent.CollectorOuterClass.CollectorHostnames) { - return mergeFrom((agent.CollectorOuterClass.CollectorHostnames)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(agent.CollectorOuterClass.CollectorHostnames other) { - if (other == agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance()) return this; - if (!other.hostname_.isEmpty()) { - if (hostname_.isEmpty()) { - hostname_ = other.hostname_; - bitField0_ |= 0x00000001; - } else { - ensureHostnameIsMutable(); - hostname_.addAll(other.hostname_); - } - 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(); - ensureHostnameIsMutable(); - hostname_.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.LazyStringArrayList hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureHostnameIsMutable() { - if (!hostname_.isModifiable()) { - hostname_ = new com.google.protobuf.LazyStringArrayList(hostname_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string hostname = 1; - * @return A list containing the hostname. - */ - public com.google.protobuf.ProtocolStringList - getHostnameList() { - hostname_.makeImmutable(); - return hostname_; - } - /** - * repeated string hostname = 1; - * @return The count of hostname. - */ - public int getHostnameCount() { - return hostname_.size(); - } - /** - * repeated string hostname = 1; - * @param index The index of the element to return. - * @return The hostname at the given index. - */ - public java.lang.String getHostname(int index) { - return hostname_.get(index); - } - /** - * repeated string hostname = 1; - * @param index The index of the value to return. - * @return The bytes of the hostname at the given index. - */ - public com.google.protobuf.ByteString - getHostnameBytes(int index) { - return hostname_.getByteString(index); - } - /** - * repeated string hostname = 1; - * @param index The index to set the value at. - * @param value The hostname to set. - * @return This builder for chaining. - */ - public Builder setHostname( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureHostnameIsMutable(); - hostname_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string hostname = 1; - * @param value The hostname to add. - * @return This builder for chaining. - */ - public Builder addHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureHostnameIsMutable(); - hostname_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string hostname = 1; - * @param values The hostname to add. - * @return This builder for chaining. - */ - public Builder addAllHostname( - java.lang.Iterable values) { - ensureHostnameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hostname_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string hostname = 1; - * @return This builder for chaining. - */ - public Builder clearHostname() { - hostname_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string hostname = 1; - * @param value The bytes of the hostname to add. - * @return This builder for chaining. - */ - public Builder addHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureHostnameIsMutable(); - hostname_.add(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:agent.CollectorHostnames) - } - - // @@protoc_insertion_point(class_scope:agent.CollectorHostnames) - private static final agent.CollectorOuterClass.CollectorHostnames DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.CollectorHostnames(); - } - - public static agent.CollectorOuterClass.CollectorHostnames getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectorHostnames 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 agent.CollectorOuterClass.CollectorHostnames getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FilterByHostAndModuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.FilterByHostAndModule) - com.google.protobuf.MessageOrBuilder { - - /** - * string hostname = 1; - * @return The hostname. - */ - java.lang.String getHostname(); - /** - * string hostname = 1; - * @return The bytes for hostname. - */ - com.google.protobuf.ByteString - getHostnameBytes(); - - /** - * .agent.CollectorModule module = 2; - * @return The enum numeric value on the wire for module. - */ - int getModuleValue(); - /** - * .agent.CollectorModule module = 2; - * @return The module. - */ - agent.CollectorOuterClass.CollectorModule getModule(); - } - /** - * Protobuf type {@code agent.FilterByHostAndModule} - */ - public static final class FilterByHostAndModule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.FilterByHostAndModule) - FilterByHostAndModuleOrBuilder { - private static final long serialVersionUID = 0L; - // Use FilterByHostAndModule.newBuilder() to construct. - private FilterByHostAndModule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FilterByHostAndModule() { - hostname_ = ""; - module_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FilterByHostAndModule(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.FilterByHostAndModule.class, agent.CollectorOuterClass.FilterByHostAndModule.Builder.class); - } - - public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object hostname_ = ""; - /** - * string hostname = 1; - * @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 = 1; - * @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 MODULE_FIELD_NUMBER = 2; - private int module_ = 0; - /** - * .agent.CollectorModule module = 2; - * @return The enum numeric value on the wire for module. - */ - @java.lang.Override public int getModuleValue() { - return module_; - } - /** - * .agent.CollectorModule module = 2; - * @return The module. - */ - @java.lang.Override public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); - } - if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - output.writeEnum(2, module_); - } - 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(1, hostname_); - } - if (module_ != agent.CollectorOuterClass.CollectorModule.AS_400.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, module_); - } - 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 agent.CollectorOuterClass.FilterByHostAndModule)) { - return super.equals(obj); - } - agent.CollectorOuterClass.FilterByHostAndModule other = (agent.CollectorOuterClass.FilterByHostAndModule) obj; - - if (!getHostname() - .equals(other.getHostname())) return false; - if (module_ != other.module_) 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) + MODULE_FIELD_NUMBER; - hash = (53 * hash) + module_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.CollectorOuterClass.FilterByHostAndModule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.FilterByHostAndModule 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 agent.CollectorOuterClass.FilterByHostAndModule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static agent.CollectorOuterClass.FilterByHostAndModule 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 agent.CollectorOuterClass.FilterByHostAndModule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.CollectorOuterClass.FilterByHostAndModule 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(agent.CollectorOuterClass.FilterByHostAndModule 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 agent.FilterByHostAndModule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.FilterByHostAndModule) - agent.CollectorOuterClass.FilterByHostAndModuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.CollectorOuterClass.FilterByHostAndModule.class, agent.CollectorOuterClass.FilterByHostAndModule.Builder.class); - } - - // Construct using agent.CollectorOuterClass.FilterByHostAndModule.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - hostname_ = ""; - module_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.CollectorOuterClass.internal_static_agent_FilterByHostAndModule_descriptor; - } - - @java.lang.Override - public agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstanceForType() { - return agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance(); - } - - @java.lang.Override - public agent.CollectorOuterClass.FilterByHostAndModule build() { - agent.CollectorOuterClass.FilterByHostAndModule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public agent.CollectorOuterClass.FilterByHostAndModule buildPartial() { - agent.CollectorOuterClass.FilterByHostAndModule result = new agent.CollectorOuterClass.FilterByHostAndModule(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(agent.CollectorOuterClass.FilterByHostAndModule result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.hostname_ = hostname_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.module_ = module_; - } - } - - @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 agent.CollectorOuterClass.FilterByHostAndModule) { - return mergeFrom((agent.CollectorOuterClass.FilterByHostAndModule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(agent.CollectorOuterClass.FilterByHostAndModule other) { - if (other == agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance()) return this; - if (!other.getHostname().isEmpty()) { - hostname_ = other.hostname_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.module_ != 0) { - setModuleValue(other.getModuleValue()); - } - 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: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - module_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object hostname_ = ""; - /** - * string hostname = 1; - * @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 = 1; - * @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 = 1; - * @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 = 1; - * @return This builder for chaining. - */ - public Builder clearHostname() { - hostname_ = getDefaultInstance().getHostname(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string hostname = 1; - * @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 int module_ = 0; - /** - * .agent.CollectorModule module = 2; - * @return The enum numeric value on the wire for module. - */ - @java.lang.Override public int getModuleValue() { - return module_; - } - /** - * .agent.CollectorModule module = 2; - * @param value The enum numeric value on the wire for module to set. - * @return This builder for chaining. - */ - public Builder setModuleValue(int value) { - module_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .agent.CollectorModule module = 2; - * @return The module. - */ - @java.lang.Override - public agent.CollectorOuterClass.CollectorModule getModule() { - agent.CollectorOuterClass.CollectorModule result = agent.CollectorOuterClass.CollectorModule.forNumber(module_); - return result == null ? agent.CollectorOuterClass.CollectorModule.UNRECOGNIZED : result; - } - /** - * .agent.CollectorModule module = 2; - * @param value The module to set. - * @return This builder for chaining. - */ - public Builder setModule(agent.CollectorOuterClass.CollectorModule value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - module_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .agent.CollectorModule module = 2; - * @return This builder for chaining. - */ - public Builder clearModule() { - bitField0_ = (bitField0_ & ~0x00000002); - module_ = 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:agent.FilterByHostAndModule) - } - - // @@protoc_insertion_point(class_scope:agent.FilterByHostAndModule) - private static final agent.CollectorOuterClass.FilterByHostAndModule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new agent.CollectorOuterClass.FilterByHostAndModule(); - } - - public static agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilterByHostAndModule 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 agent.CollectorOuterClass.FilterByHostAndModule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface ConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:agent.ConfigRequest) com.google.protobuf.MessageOrBuilder { @@ -10458,16 +9183,6 @@ public agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_agent_ConfigKnowledge_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_CollectorHostnames_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_CollectorHostnames_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_FilterByHostAndModule_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_FilterByHostAndModule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_agent_ConfigRequest_descriptor; private static final @@ -10508,30 +9223,22 @@ public agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { "\t\022\030\n\020conf_description\030\006 \001(\t\022\026\n\016conf_data" + "_type\030\007 \001(\t\022\025\n\rconf_required\030\010 \001(\010\"7\n\017Co" + "nfigKnowledge\022\020\n\010accepted\030\001 \001(\t\022\022\n\nreque" + - "st_id\030\002 \001(\t\"&\n\022CollectorHostnames\022\020\n\010hos" + - "tname\030\001 \003(\t\"Q\n\025FilterByHostAndModule\022\020\n\010" + - "hostname\030\001 \001(\t\022&\n\006module\030\002 \001(\0162\026.agent.C" + - "ollectorModule\"7\n\rConfigRequest\022&\n\006modul" + - "e\030\001 \001(\0162\026.agent.CollectorModule*\035\n\017Colle" + - "ctorModule\022\n\n\006AS_400\020\0002\233\004\n\020CollectorServ" + - "ice\022B\n\021RegisterCollector\022\026.agent.Registe" + - "rRequest\032\023.agent.AuthResponse\"\000\022>\n\017Delet" + - "eCollector\022\024.agent.DeleteRequest\032\023.agent" + - ".AuthResponse\"\000\022C\n\rListCollector\022\022.agent" + - ".ListRequest\032\034.agent.ListCollectorRespon" + - "se\"\000\022K\n\017CollectorStream\022\030.agent.Collecto" + - "rMessages\032\030.agent.CollectorMessages\"\000(\0010" + - "\001\022I\n\026ListCollectorHostnames\022\022.agent.List" + - "Request\032\031.agent.CollectorHostnames\"\000\022`\n " + - "GetCollectorsByHostnameAndModule\022\034.agent" + - ".FilterByHostAndModule\032\034.agent.ListColle" + - "ctorResponse\"\000\022D\n\022GetCollectorConfig\022\024.a" + - "gent.ConfigRequest\032\026.agent.CollectorConf" + - "ig\"\0002d\n\025PanelCollectorService\022K\n\027Registe" + - "rCollectorConfig\022\026.agent.CollectorConfig" + - "\032\026.agent.ConfigKnowledge\"\000B2Z0github.com" + - "/utmstack/UTMStack/agent-manager/agentb\006" + - "proto3" + "st_id\030\002 \001(\t\"7\n\rConfigRequest\022&\n\006module\030\001" + + " \001(\0162\026.agent.CollectorModule*\035\n\017Collecto" + + "rModule\022\n\n\006AS_400\020\0002\356\002\n\020CollectorService" + + "\022B\n\021RegisterCollector\022\026.agent.RegisterRe" + + "quest\032\023.agent.AuthResponse\"\000\022>\n\017DeleteCo" + + "llector\022\024.agent.DeleteRequest\032\023.agent.Au" + + "thResponse\"\000\022C\n\rListCollector\022\022.agent.Li" + + "stRequest\032\034.agent.ListCollectorResponse\"" + + "\000\022K\n\017CollectorStream\022\030.agent.CollectorMe" + + "ssages\032\030.agent.CollectorMessages\"\000(\0010\001\022D" + + "\n\022GetCollectorConfig\022\024.agent.ConfigReque" + + "st\032\026.agent.CollectorConfig\"\0002d\n\025PanelCol" + + "lectorService\022K\n\027RegisterCollectorConfig" + + "\022\026.agent.CollectorConfig\032\026.agent.ConfigK" + + "nowledge\"\000B2Z0github.com/utmstack/UTMSta" + + "ck/agent-manager/agentb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -10586,20 +9293,8 @@ public agent.CollectorOuterClass.ConfigRequest getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_ConfigKnowledge_descriptor, new java.lang.String[] { "Accepted", "RequestId", }); - internal_static_agent_CollectorHostnames_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_agent_CollectorHostnames_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_CollectorHostnames_descriptor, - new java.lang.String[] { "Hostname", }); - internal_static_agent_FilterByHostAndModule_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_agent_FilterByHostAndModule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_FilterByHostAndModule_descriptor, - new java.lang.String[] { "Hostname", "Module", }); internal_static_agent_ConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(8); internal_static_agent_ConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_ConfigRequest_descriptor, diff --git a/src/main/java/agent/CollectorServiceGrpc.java b/src/main/java/agent/CollectorServiceGrpc.java index e7d20b9..923255f 100644 --- a/src/main/java/agent/CollectorServiceGrpc.java +++ b/src/main/java/agent/CollectorServiceGrpc.java @@ -139,68 +139,6 @@ agent.CollectorOuterClass.CollectorMessages> getCollectorStreamMethod() { return getCollectorStreamMethod; } - private static volatile io.grpc.MethodDescriptor getListCollectorHostnamesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCollectorHostnames", - requestType = agent.Common.ListRequest.class, - responseType = agent.CollectorOuterClass.CollectorHostnames.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCollectorHostnamesMethod() { - io.grpc.MethodDescriptor getListCollectorHostnamesMethod; - if ((getListCollectorHostnamesMethod = CollectorServiceGrpc.getListCollectorHostnamesMethod) == null) { - synchronized (CollectorServiceGrpc.class) { - if ((getListCollectorHostnamesMethod = CollectorServiceGrpc.getListCollectorHostnamesMethod) == null) { - CollectorServiceGrpc.getListCollectorHostnamesMethod = getListCollectorHostnamesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCollectorHostnames")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - agent.Common.ListRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - agent.CollectorOuterClass.CollectorHostnames.getDefaultInstance())) - .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("ListCollectorHostnames")) - .build(); - } - } - } - return getListCollectorHostnamesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCollectorsByHostnameAndModuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCollectorsByHostnameAndModule", - requestType = agent.CollectorOuterClass.FilterByHostAndModule.class, - responseType = agent.CollectorOuterClass.ListCollectorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCollectorsByHostnameAndModuleMethod() { - io.grpc.MethodDescriptor getGetCollectorsByHostnameAndModuleMethod; - if ((getGetCollectorsByHostnameAndModuleMethod = CollectorServiceGrpc.getGetCollectorsByHostnameAndModuleMethod) == null) { - synchronized (CollectorServiceGrpc.class) { - if ((getGetCollectorsByHostnameAndModuleMethod = CollectorServiceGrpc.getGetCollectorsByHostnameAndModuleMethod) == null) { - CollectorServiceGrpc.getGetCollectorsByHostnameAndModuleMethod = getGetCollectorsByHostnameAndModuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCollectorsByHostnameAndModule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - agent.CollectorOuterClass.FilterByHostAndModule.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - agent.CollectorOuterClass.ListCollectorResponse.getDefaultInstance())) - .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("GetCollectorsByHostnameAndModule")) - .build(); - } - } - } - return getGetCollectorsByHostnameAndModuleMethod; - } - private static volatile io.grpc.MethodDescriptor getGetCollectorConfigMethod; @@ -308,20 +246,6 @@ default io.grpc.stub.StreamObserver return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getCollectorStreamMethod(), responseObserver); } - /** - */ - default void listCollectorHostnames(agent.Common.ListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCollectorHostnamesMethod(), responseObserver); - } - - /** - */ - default void getCollectorsByHostnameAndModule(agent.CollectorOuterClass.FilterByHostAndModule request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCollectorsByHostnameAndModuleMethod(), responseObserver); - } - /** */ default void getCollectorConfig(agent.CollectorOuterClass.ConfigRequest request, @@ -389,22 +313,6 @@ public io.grpc.stub.StreamObserver getChannel().newCall(getCollectorStreamMethod(), getCallOptions()), responseObserver); } - /** - */ - public void listCollectorHostnames(agent.Common.ListRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCollectorHostnamesMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getCollectorsByHostnameAndModule(agent.CollectorOuterClass.FilterByHostAndModule request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCollectorsByHostnameAndModuleMethod(), getCallOptions()), request, responseObserver); - } - /** */ public void getCollectorConfig(agent.CollectorOuterClass.ConfigRequest request, @@ -451,20 +359,6 @@ public agent.CollectorOuterClass.ListCollectorResponse listCollector(agent.Commo getChannel(), getListCollectorMethod(), getCallOptions(), request); } - /** - */ - public agent.CollectorOuterClass.CollectorHostnames listCollectorHostnames(agent.Common.ListRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCollectorHostnamesMethod(), getCallOptions(), request); - } - - /** - */ - public agent.CollectorOuterClass.ListCollectorResponse getCollectorsByHostnameAndModule(agent.CollectorOuterClass.FilterByHostAndModule request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCollectorsByHostnameAndModuleMethod(), getCallOptions(), request); - } - /** */ public agent.CollectorOuterClass.CollectorConfig getCollectorConfig(agent.CollectorOuterClass.ConfigRequest request) { @@ -513,22 +407,6 @@ public com.google.common.util.concurrent.ListenableFuture listCollectorHostnames( - agent.Common.ListRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCollectorHostnamesMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture getCollectorsByHostnameAndModule( - agent.CollectorOuterClass.FilterByHostAndModule request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCollectorsByHostnameAndModuleMethod(), getCallOptions()), request); - } - /** */ public com.google.common.util.concurrent.ListenableFuture getCollectorConfig( @@ -541,10 +419,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -575,14 +451,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.listCollector((agent.Common.ListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_LIST_COLLECTOR_HOSTNAMES: - serviceImpl.listCollectorHostnames((agent.Common.ListRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_COLLECTORS_BY_HOSTNAME_AND_MODULE: - serviceImpl.getCollectorsByHostnameAndModule((agent.CollectorOuterClass.FilterByHostAndModule) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_GET_COLLECTOR_CONFIG: serviceImpl.getCollectorConfig((agent.CollectorOuterClass.ConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -636,20 +504,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser agent.CollectorOuterClass.CollectorMessages, agent.CollectorOuterClass.CollectorMessages>( service, METHODID_COLLECTOR_STREAM))) - .addMethod( - getListCollectorHostnamesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - agent.Common.ListRequest, - agent.CollectorOuterClass.CollectorHostnames>( - service, METHODID_LIST_COLLECTOR_HOSTNAMES))) - .addMethod( - getGetCollectorsByHostnameAndModuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - agent.CollectorOuterClass.FilterByHostAndModule, - agent.CollectorOuterClass.ListCollectorResponse>( - service, METHODID_GET_COLLECTORS_BY_HOSTNAME_AND_MODULE))) .addMethod( getGetCollectorConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -709,8 +563,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteCollectorMethod()) .addMethod(getListCollectorMethod()) .addMethod(getCollectorStreamMethod()) - .addMethod(getListCollectorHostnamesMethod()) - .addMethod(getGetCollectorsByHostnameAndModuleMethod()) .addMethod(getGetCollectorConfigMethod()) .build(); } diff --git a/src/main/java/agent/Common.java b/src/main/java/agent/Common.java index f02cb00..ba556cb 100644 --- a/src/main/java/agent/Common.java +++ b/src/main/java/agent/Common.java @@ -1707,558 +1707,6 @@ public agent.Common.AuthResponse getDefaultInstanceForType() { } - public interface HostnameOrBuilder extends - // @@protoc_insertion_point(interface_extends:agent.Hostname) - com.google.protobuf.MessageOrBuilder { - - /** - * string hostname = 1; - * @return The hostname. - */ - java.lang.String getHostname(); - /** - * string hostname = 1; - * @return The bytes for hostname. - */ - com.google.protobuf.ByteString - getHostnameBytes(); - } - /** - * Protobuf type {@code agent.Hostname} - */ - public static final class Hostname extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:agent.Hostname) - HostnameOrBuilder { - private static final long serialVersionUID = 0L; - // Use Hostname.newBuilder() to construct. - private Hostname(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Hostname() { - hostname_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Hostname(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.Common.internal_static_agent_Hostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.Common.internal_static_agent_Hostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.Common.Hostname.class, agent.Common.Hostname.Builder.class); - } - - public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object hostname_ = ""; - /** - * string hostname = 1; - * @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 = 1; - * @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(hostname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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(hostname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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 agent.Common.Hostname)) { - return super.equals(obj); - } - agent.Common.Hostname other = (agent.Common.Hostname) obj; - - 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) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static agent.Common.Hostname parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.Common.Hostname parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.Common.Hostname parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.Common.Hostname parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.Common.Hostname parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static agent.Common.Hostname parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static agent.Common.Hostname parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.Common.Hostname 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 agent.Common.Hostname parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static agent.Common.Hostname 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 agent.Common.Hostname parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static agent.Common.Hostname 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(agent.Common.Hostname 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 agent.Hostname} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:agent.Hostname) - agent.Common.HostnameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return agent.Common.internal_static_agent_Hostname_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return agent.Common.internal_static_agent_Hostname_fieldAccessorTable - .ensureFieldAccessorsInitialized( - agent.Common.Hostname.class, agent.Common.Hostname.Builder.class); - } - - // Construct using agent.Common.Hostname.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - hostname_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return agent.Common.internal_static_agent_Hostname_descriptor; - } - - @java.lang.Override - public agent.Common.Hostname getDefaultInstanceForType() { - return agent.Common.Hostname.getDefaultInstance(); - } - - @java.lang.Override - public agent.Common.Hostname build() { - agent.Common.Hostname result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public agent.Common.Hostname buildPartial() { - agent.Common.Hostname result = new agent.Common.Hostname(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(agent.Common.Hostname result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 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 agent.Common.Hostname) { - return mergeFrom((agent.Common.Hostname)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(agent.Common.Hostname other) { - if (other == agent.Common.Hostname.getDefaultInstance()) return this; - if (!other.getHostname().isEmpty()) { - hostname_ = other.hostname_; - 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: { - hostname_ = 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 hostname_ = ""; - /** - * string hostname = 1; - * @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 = 1; - * @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 = 1; - * @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 = 1; - * @return This builder for chaining. - */ - public Builder clearHostname() { - hostname_ = getDefaultInstance().getHostname(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string hostname = 1; - * @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; - } - @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:agent.Hostname) - } - - // @@protoc_insertion_point(class_scope:agent.Hostname) - private static final agent.Common.Hostname DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new agent.Common.Hostname(); - } - - public static agent.Common.Hostname getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hostname 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 agent.Common.Hostname getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface DeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:agent.DeleteRequest) com.google.protobuf.MessageOrBuilder { @@ -2821,11 +2269,6 @@ public agent.Common.DeleteRequest getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_agent_AuthResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_agent_Hostname_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_agent_Hostname_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_agent_DeleteRequest_descriptor; private static final @@ -2843,13 +2286,12 @@ public agent.Common.DeleteRequest getDefaultInstanceForType() { "\n\014common.proto\022\005agent\"\\\n\013ListRequest\022\023\n\013" + "page_number\030\001 \001(\005\022\021\n\tpage_size\030\002 \001(\005\022\024\n\014" + "search_query\030\003 \001(\t\022\017\n\007sort_by\030\004 \001(\t\"\'\n\014A" + - "uthResponse\022\n\n\002id\030\001 \001(\r\022\013\n\003key\030\002 \001(\t\"\034\n\010" + - "Hostname\022\020\n\010hostname\030\001 \001(\t\"#\n\rDeleteRequ" + - "est\022\022\n\ndeleted_by\030\001 \001(\t*.\n\006Status\022\n\n\006ONL" + - "INE\020\000\022\013\n\007OFFLINE\020\001\022\013\n\007UNKNOWN\020\002*)\n\rConne" + - "ctorType\022\t\n\005AGENT\020\000\022\r\n\tCOLLECTOR\020\001B2Z0gi" + - "thub.com/utmstack/UTMStack/agent-manager" + - "/agentb\006proto3" + "uthResponse\022\n\n\002id\030\001 \001(\r\022\013\n\003key\030\002 \001(\t\"#\n\r" + + "DeleteRequest\022\022\n\ndeleted_by\030\001 \001(\t*.\n\006Sta" + + "tus\022\n\n\006ONLINE\020\000\022\013\n\007OFFLINE\020\001\022\013\n\007UNKNOWN\020" + + "\002*)\n\rConnectorType\022\t\n\005AGENT\020\000\022\r\n\tCOLLECT" + + "OR\020\001B2Z0github.com/utmstack/UTMStack/age" + + "nt-manager/agentb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -2867,14 +2309,8 @@ public agent.Common.DeleteRequest getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_AuthResponse_descriptor, new java.lang.String[] { "Id", "Key", }); - internal_static_agent_Hostname_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_agent_Hostname_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_agent_Hostname_descriptor, - new java.lang.String[] { "Hostname", }); internal_static_agent_DeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(2); internal_static_agent_DeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_agent_DeleteRequest_descriptor, diff --git a/src/main/java/com/utmstack/grpc/service/CollectorService.java b/src/main/java/com/utmstack/grpc/service/CollectorService.java index 9e9ee99..3f83b99 100644 --- a/src/main/java/com/utmstack/grpc/service/CollectorService.java +++ b/src/main/java/com/utmstack/grpc/service/CollectorService.java @@ -1,12 +1,10 @@ package com.utmstack.grpc.service; import agent.CollectorOuterClass.ConfigRequest; -import agent.CollectorOuterClass.CollectorHostnames; import agent.CollectorOuterClass.RegisterRequest; import agent.CollectorOuterClass.CollectorMessages; import agent.CollectorOuterClass.CollectorConfig; import agent.CollectorOuterClass.ListCollectorResponse; -import agent.CollectorOuterClass.FilterByHostAndModule; import agent.Common.ListRequest; import agent.CollectorServiceGrpc; import agent.Common.AuthResponse; @@ -145,43 +143,6 @@ public ListCollectorResponse listCollector(ListRequest request, String internalK } } -// ---------------------------------------------------------------------------------------------------------------------------------- - - /** - * Method to List Collector by Hostnames. - * - * @param request is the request with all the pagination and search params used to list collectors. - * according to those params. - * @param internalKey is the internal key to communicate internally. - * @throws CollectorServiceGrpcException if the action can't be performed or the request is malformed. - */ - public CollectorHostnames ListCollectorHostnames(ListRequest request, String internalKey) throws CollectorServiceGrpcException { - try { - return blockingStub.withInterceptors(new GrpcInternalKeyInterceptor().withInternalKey(internalKey), - new GrpcTypeInterceptor()).listCollectorHostnames(request); - } catch (Exception e) { - String msg = "Error listing collectors hostnames: " + e.getMessage(); - throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); - } - } - - /** - * Method to get collectors by hostname and module. - * - * @param request contains the filter information used to search. - * @param internalKey is the internal key to communicate internally. - * @throws CollectorServiceGrpcException if the action can't be performed or the request is malformed. - */ - public ListCollectorResponse GetCollectorsByHostnameAndModule(FilterByHostAndModule request, String internalKey) throws CollectorServiceGrpcException { - try { - return blockingStub.withInterceptors(new GrpcInternalKeyInterceptor().withInternalKey(internalKey), - new GrpcTypeInterceptor()).getCollectorsByHostnameAndModule(request); - } catch (Exception e) { - String msg = "Error listing collectors by hostname and module: " + e.getMessage(); - throw new CollectorServiceGrpcException(StringUtil.formatError(msg)); - } - } - private StreamObserver getCollectorMessagesObserver(IExecuteActionOnNext toDoAction, IExecuteActionOnError errorAction) { final CountDownLatch waitingLatch = new CountDownLatch(1); diff --git a/src/main/proto/collector.proto b/src/main/proto/collector.proto index c54ed98..a4d3275 100644 --- a/src/main/proto/collector.proto +++ b/src/main/proto/collector.proto @@ -10,8 +10,6 @@ service CollectorService { rpc DeleteCollector(DeleteRequest) returns (AuthResponse) {} rpc ListCollector (ListRequest) returns (ListCollectorResponse) {} rpc CollectorStream(stream CollectorMessages) returns (stream CollectorMessages) {} - rpc ListCollectorHostnames (ListRequest) returns (CollectorHostnames) {} - rpc GetCollectorsByHostnameAndModule (FilterByHostAndModule) returns (ListCollectorResponse) {} rpc GetCollectorConfig (ConfigRequest) returns (CollectorConfig) {} } @@ -83,15 +81,6 @@ message ConfigKnowledge{ string request_id = 2; } -message CollectorHostnames{ - repeated string hostname = 1; -} - -message FilterByHostAndModule{ - string hostname = 1; - CollectorModule module = 2; -} - message ConfigRequest { CollectorModule module = 1; } diff --git a/src/main/proto/common.proto b/src/main/proto/common.proto index 0a53c8c..5e9d868 100644 --- a/src/main/proto/common.proto +++ b/src/main/proto/common.proto @@ -27,10 +27,6 @@ message AuthResponse { string key = 2; } -message Hostname{ - string hostname = 1; -} - message DeleteRequest { string deleted_by = 1; -} \ No newline at end of file +} From c17df5833bfff484db514ff24dac9e65bcefb73b Mon Sep 17 00:00:00 2001 From: Manuel Abascal Date: Fri, 10 Oct 2025 15:05:00 -0500 Subject: [PATCH 6/6] Adding UTMSTACK enum value to CollectorModule in proto definition and Java class --- pom.xml | 2 +- src/main/java/agent/CollectorOuterClass.java | 1 + src/main/proto/collector.proto | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 577f01b..daa8ced 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.utmstack.grpc.jclient collector-client-4j - 1.2.12 + 1.2.13 jar UTMStack Agent Collector Client for Java projects diff --git a/src/main/java/agent/CollectorOuterClass.java b/src/main/java/agent/CollectorOuterClass.java index 0329d2d..12d67e6 100644 --- a/src/main/java/agent/CollectorOuterClass.java +++ b/src/main/java/agent/CollectorOuterClass.java @@ -23,6 +23,7 @@ public enum CollectorModule * AS_400 = 0; */ AS_400(0), + UTMSTACK(1), UNRECOGNIZED(-1), ; diff --git a/src/main/proto/collector.proto b/src/main/proto/collector.proto index a4d3275..99fd4d5 100644 --- a/src/main/proto/collector.proto +++ b/src/main/proto/collector.proto @@ -19,6 +19,7 @@ service PanelCollectorService { enum CollectorModule{ AS_400 = 0; + UTMSTACK = 1; } message RegisterRequest {