diff --git a/warehouse/core/src/main/java/datawave/edge/protobuf/EdgeData.java b/warehouse/core/src/main/java/datawave/edge/protobuf/EdgeData.java index c354aa8c834..b38908a3fd2 100644 --- a/warehouse/core/src/main/java/datawave/edge/protobuf/EdgeData.java +++ b/warehouse/core/src/main/java/datawave/edge/protobuf/EdgeData.java @@ -6,496 +6,340 @@ public final class EdgeData { private EdgeData() {} - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {} + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } public interface EdgeValueOrBuilder extends // @@protoc_insertion_point(interface_extends:datawave.edge.protobuf.EdgeValue) com.google.protobuf.MessageOrBuilder { /** - * optional int64 count = 1; - * *
          * edge table count
          * 
* - * @return if there is a count + * int64 count = 1; + * + * @return Whether the count field is set. */ boolean hasCount(); /** - * optional int64 count = 1; - * *
          * edge table count
          * 
* - * @return the count + * int64 count = 1; + * + * @return The count. */ long getCount(); /** - * repeated int64 hours = 2 [packed = true]; - * *
          * hour activity array (length 24)
          * 
* - * @return the list of hours + * repeated int64 hours = 2 [packed = true]; + * + * @return A list containing the hours. */ java.util.List getHoursList(); /** - * repeated int64 hours = 2 [packed = true]; - * *
          * hour activity array (length 24)
          * 
* - * @return the count of hours + * repeated int64 hours = 2 [packed = true]; + * + * @return The count of hours. */ int getHoursCount(); /** - * repeated int64 hours = 2 [packed = true]; - * *
          * hour activity array (length 24)
          * 
* - * @param index - * the index + * repeated int64 hours = 2 [packed = true]; * - * @return the hours at the specific index + * @param index + * The index of the element to return. + * @return The hours at the given index. */ long getHours(int index); /** - * repeated int64 duration = 3 [packed = true]; - * *
          * protobuf says that repeated order will be preserved
          * packed means it won't appear in serialized data
          * that doesn't contain any hours fields.
          * 
* - * @return list of durations + * repeated int64 duration = 3 [packed = true]; + * + * @return A list containing the duration. */ java.util.List getDurationList(); /** - * repeated int64 duration = 3 [packed = true]; - * *
          * protobuf says that repeated order will be preserved
          * packed means it won't appear in serialized data
          * that doesn't contain any hours fields.
          * 
* - * @return duration count + * repeated int64 duration = 3 [packed = true]; + * + * @return The count of duration. */ int getDurationCount(); /** - * repeated int64 duration = 3 [packed = true]; - * *
          * protobuf says that repeated order will be preserved
          * packed means it won't appear in serialized data
          * that doesn't contain any hours fields.
          * 
* - * @param index - * the index + * repeated int64 duration = 3 [packed = true]; * - * @return the duration at an index + * @param index + * The index of the element to return. + * @return The duration at the given index. */ long getDuration(int index); /** - * optional int32 hourBitmask = 4; - * *
          * Bitmask for tracking edge creation by the hour.
          * 
* - * @return if there is an hour bitmask + * int32 hourBitmask = 4; + * + * @return Whether the hourBitmask field is set. */ boolean hasHourBitmask(); /** - * optional int32 hourBitmask = 4; - * *
          * Bitmask for tracking edge creation by the hour.
          * 
* - * @return the hour bitmask + * int32 hourBitmask = 4; + * + * @return The hourBitmask. */ int getHourBitmask(); /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return if the optional sourcevalue is set + * @return Whether the sourceValue field is set. */ boolean hasSourceValue(); /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return the sourcevalue + * @return The sourceValue. */ java.lang.String getSourceValue(); /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return the sourcevalue byte string + * @return The bytes for sourceValue. */ com.google.protobuf.ByteString getSourceValueBytes(); /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return if there is a sinkvalue + * @return Whether the sinkValue field is set. */ boolean hasSinkValue(); /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return the sinkvalue + * @return The sinkValue. */ java.lang.String getSinkValue(); /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return the sinkvalue byte string + * @return The bytes for sinkValue. */ com.google.protobuf.ByteString getSinkValueBytes(); /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return if there is a loaddate + * @return Whether the loadDate field is set. */ boolean hasLoadDate(); /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return the loaddate + * @return The loadDate. */ java.lang.String getLoadDate(); /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return the loaddate bytestring + * @return The bytes for loadDate. */ com.google.protobuf.ByteString getLoadDateBytes(); /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return if there is bad activity + * @return Whether the badActivity field is set. */ boolean hasBadActivity(); /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return back activity value + * @return The badActivity. */ boolean getBadActivity(); /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-         * a single uuid of an event that contributed to the edge
+         *a single uuid of an event that contributed to the edge
          * 
* - * @return if there is a uuid for the edge value + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; + * + * @return Whether the uuid field is set. */ boolean hasUuid(); /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-         * a single uuid of an event that contributed to the edge
+         *a single uuid of an event that contributed to the edge
          * 
* - * @return the uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; + * + * @return The uuid. */ datawave.edge.protobuf.EdgeData.EdgeValue.UUID getUuid(); /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-         * a single uuid of an event that contributed to the edge
+         *a single uuid of an event that contributed to the edge
          * 
* - * @return the uuidOrBuilder + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ datawave.edge.protobuf.EdgeData.EdgeValue.UUIDOrBuilder getUuidOrBuilder(); /** - * optional string uuid_string = 10; - * *
          * a single uuid of an event that contributed to the edge in string format
          * 
* - * @return if there is a uuidString + * string uuid_string = 10; + * + * @return Whether the uuidString field is set. */ boolean hasUuidString(); /** - * optional string uuid_string = 10; - * *
          * a single uuid of an event that contributed to the edge in string format
          * 
* - * @return the uuid string + * string uuid_string = 10; + * + * @return The uuidString. */ java.lang.String getUuidString(); /** - * optional string uuid_string = 10; - * *
          * a single uuid of an event that contributed to the edge in string format
          * 
* - * @return the uuid bytestring + * string uuid_string = 10; + * + * @return The bytes for uuidString. */ com.google.protobuf.ByteString getUuidStringBytes(); } /** - * Protobuf type {@code datawave.edge.protobuf.EdgeValue} - * *
      * Used for the Accumulo Value bytes for Edge Table and edge Metadata Table entries
      * 
+ * + * Protobuf type {@code datawave.edge.protobuf.EdgeValue} */ - public static final class EdgeValue extends com.google.protobuf.GeneratedMessage implements + public static final class EdgeValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datawave.edge.protobuf.EdgeValue) EdgeValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use EdgeValue.newBuilder() to construct. - private EdgeValue(com.google.protobuf.GeneratedMessage.Builder builder) { + private EdgeValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - - private EdgeValue(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final EdgeValue defaultInstance; - - public static EdgeValue getDefaultInstance() { - return defaultInstance; + private EdgeValue() { + hours_ = emptyLongList(); + duration_ = emptyLongList(); + sourceValue_ = ""; + sinkValue_ = ""; + loadDate_ = ""; + uuidString_ = ""; } - public EdgeValue getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EdgeValue(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EdgeValue(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - count_ = input.readInt64(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - hours_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - hours_.add(input.readInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - hours_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - hours_.add(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - duration_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - duration_.add(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { - duration_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - duration_.add(input.readInt64()); - } - input.popLimit(limit); - break; - } - case 32: { - bitField0_ |= 0x00000002; - hourBitmask_ = input.readInt32(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - sourceValue_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - sinkValue_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - loadDate_ = bs; - break; - } - case 64: { - bitField0_ |= 0x00000020; - badActivity_ = input.readBool(); - break; - } - case 74: { - datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = uuid_.toBuilder(); - } - uuid_ = input.readMessage(datawave.edge.protobuf.EdgeData.EdgeValue.UUID.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(uuid_); - uuid_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - uuidString_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - hours_ = java.util.Collections.unmodifiableList(hours_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - duration_ = java.util.Collections.unmodifiableList(duration_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_fieldAccessorTable.ensureFieldAccessorsInitialized( datawave.edge.protobuf.EdgeData.EdgeValue.class, datawave.edge.protobuf.EdgeData.EdgeValue.Builder.class); } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public EdgeValue parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EdgeValue(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface UUIDOrBuilder extends // @@protoc_insertion_point(interface_extends:datawave.edge.protobuf.EdgeValue.UUID) com.google.protobuf.MessageOrBuilder { /** - * required sint64 least_significant_bits = 1; + * sint64 least_significant_bits = 1; * - * @return if it has least significant bits - */ - boolean hasLeastSignificantBits(); - - /** - * required sint64 least_significant_bits = 1; - * - * @return the least significant bits + * @return The leastSignificantBits. */ long getLeastSignificantBits(); /** - * required sint64 most_significant_bits = 2; - * - * @return if it has most significant bits - */ - boolean hasMostSignificantBits(); - - /** - * required sint64 most_significant_bits = 2; + * sint64 most_significant_bits = 2; * - * @return most significant bits + * @return The mostSignificantBits. */ long getMostSignificantBits(); } @@ -503,116 +347,48 @@ public interface UUIDOrBuilder extends /** * Protobuf type {@code datawave.edge.protobuf.EdgeValue.UUID} */ - public static final class UUID extends com.google.protobuf.GeneratedMessage implements + public static final class UUID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datawave.edge.protobuf.EdgeValue.UUID) UUIDOrBuilder { + private static final long serialVersionUID = 0L; + // Use UUID.newBuilder() to construct. - private UUID(com.google.protobuf.GeneratedMessage.Builder builder) { + private UUID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - - private UUID(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final UUID defaultInstance; - - public static UUID getDefaultInstance() { - return defaultInstance; - } + private UUID() {} - public UUID getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UUID(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UUID(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - leastSignificantBits_ = input.readSInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - mostSignificantBits_ = input.readSInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_UUID_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_UUID_fieldAccessorTable.ensureFieldAccessorsInitialized( datawave.edge.protobuf.EdgeData.EdgeValue.UUID.class, datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder.class); } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public UUID parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UUID(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; public static final int LEAST_SIGNIFICANT_BITS_FIELD_NUMBER = 1; private long leastSignificantBits_; /** - * required sint64 least_significant_bits = 1; + * sint64 least_significant_bits = 1; * - * @return if there are least significant bits - */ - public boolean hasLeastSignificantBits() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required sint64 least_significant_bits = 1; - * - * @return the least significant bits + * @return The leastSignificantBits. */ + @java.lang.Override public long getLeastSignificantBits() { return leastSignificantBits_; } @@ -621,30 +397,18 @@ public long getLeastSignificantBits() { private long mostSignificantBits_; /** - * required sint64 most_significant_bits = 2; + * sint64 most_significant_bits = 2; * - * @return if there are most significant bits - */ - public boolean hasMostSignificantBits() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - * required sint64 most_significant_bits = 2; - * - * @return the most significant bits + * @return The mostSignificantBits. */ + @java.lang.Override public long getMostSignificantBits() { return mostSignificantBits_; } - private void initFields() { - leastSignificantBits_ = 0L; - mostSignificantBits_ = 0L; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) @@ -652,53 +416,82 @@ public final boolean isInitialized() { if (isInitialized == 0) return false; - if (!hasLeastSignificantBits()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasMostSignificantBits()) { - memoizedIsInitialized = 0; - return false; - } memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (leastSignificantBits_ != 0L) { output.writeSInt64(1, leastSignificantBits_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (mostSignificantBits_ != 0L) { output.writeSInt64(2, mostSignificantBits_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (leastSignificantBits_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeSInt64Size(1, leastSignificantBits_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (mostSignificantBits_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeSInt64Size(2, mostSignificantBits_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.edge.protobuf.EdgeData.EdgeValue.UUID)) { + return super.equals(obj); + } + datawave.edge.protobuf.EdgeData.EdgeValue.UUID other = (datawave.edge.protobuf.EdgeData.EdgeValue.UUID) obj; + + if (getLeastSignificantBits() != other.getLeastSignificantBits()) + return false; + if (getMostSignificantBits() != other.getMostSignificantBits()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LEAST_SIGNIFICANT_BITS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLeastSignificantBits()); + hash = (37 * hash) + MOST_SIGNIFICANT_BITS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMostSignificantBits()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(com.google.protobuf.ByteString data) @@ -721,50 +514,52 @@ public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(byte[] da } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.edge.protobuf.EdgeData.EdgeValue.UUID prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -772,14 +567,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder /** * Protobuf type {@code datawave.edge.protobuf.EdgeValue.UUID} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datawave.edge.protobuf.EdgeValue.UUID) datawave.edge.protobuf.EdgeData.EdgeValue.UUIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_UUID_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_UUID_fieldAccessorTable .ensureFieldAccessorsInitialized(datawave.edge.protobuf.EdgeData.EdgeValue.UUID.class, datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder.class); @@ -787,43 +583,35 @@ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFie // Construct using datawave.edge.protobuf.EdgeData.EdgeValue.UUID.newBuilder() private Builder() { - maybeForceBuilderInitialization(); - } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); leastSignificantBits_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); + mostSignificantBits_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - public Builder clone() { - return create().mergeFrom(buildPartial()); + return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_UUID_descriptor; } + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue.UUID getDefaultInstanceForType() { return datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); } + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue.UUID build() { datawave.edge.protobuf.EdgeData.EdgeValue.UUID result = buildPartial(); if (!result.isInitialized()) { @@ -832,23 +620,46 @@ public datawave.edge.protobuf.EdgeData.EdgeValue.UUID build() { return result; } + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue.UUID buildPartial() { datawave.edge.protobuf.EdgeData.EdgeValue.UUID result = new datawave.edge.protobuf.EdgeData.EdgeValue.UUID(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.leastSignificantBits_ = leastSignificantBits_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } result.mostSignificantBits_ = mostSignificantBits_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } + @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 datawave.edge.protobuf.EdgeData.EdgeValue.UUID) { return mergeFrom((datawave.edge.protobuf.EdgeData.EdgeValue.UUID) other); @@ -861,88 +672,95 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(datawave.edge.protobuf.EdgeData.EdgeValue.UUID other) { if (other == datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance()) return this; - if (other.hasLeastSignificantBits()) { + if (other.getLeastSignificantBits() != 0L) { setLeastSignificantBits(other.getLeastSignificantBits()); } - if (other.hasMostSignificantBits()) { + if (other.getMostSignificantBits() != 0L) { setMostSignificantBits(other.getMostSignificantBits()); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasLeastSignificantBits()) { - - return false; - } - if (!hasMostSignificantBits()) { - - return false; - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.edge.protobuf.EdgeData.EdgeValue.UUID parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + leastSignificantBits_ = input.readSInt64(); + + break; + } // case 8 + case 16: { + mostSignificantBits_ = input.readSInt64(); + + 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) { - parsedMessage = (datawave.edge.protobuf.EdgeData.EdgeValue.UUID) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private long leastSignificantBits_; /** - * required sint64 least_significant_bits = 1; + * sint64 least_significant_bits = 1; * - * @return if it has least significant bits - */ - public boolean hasLeastSignificantBits() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required sint64 least_significant_bits = 1; - * - * @return the least significant bits + * @return The leastSignificantBits. */ + @java.lang.Override public long getLeastSignificantBits() { return leastSignificantBits_; } /** - * required sint64 least_significant_bits = 1; + * sint64 least_significant_bits = 1; * * @param value - * the value - * - * @return builder to set least significant bits + * The leastSignificantBits to set. + * @return This builder for chaining. */ public Builder setLeastSignificantBits(long value) { - bitField0_ |= 0x00000001; + leastSignificantBits_ = value; onChanged(); return this; } /** - * required sint64 least_significant_bits = 1; + * sint64 least_significant_bits = 1; * - * @return builder to clear least significant bits + * @return This builder for chaining. */ public Builder clearLeastSignificantBits() { - bitField0_ = (bitField0_ & ~0x00000001); + leastSignificantBits_ = 0L; onChanged(); return this; @@ -951,59 +769,96 @@ public Builder clearLeastSignificantBits() { private long mostSignificantBits_; /** - * required sint64 most_significant_bits = 2; - * - * @return if it has most significant bits - */ - public boolean hasMostSignificantBits() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - * required sint64 most_significant_bits = 2; + * sint64 most_significant_bits = 2; * - * @return the most significant bits + * @return The mostSignificantBits. */ + @java.lang.Override public long getMostSignificantBits() { return mostSignificantBits_; } /** - * required sint64 most_significant_bits = 2; + * sint64 most_significant_bits = 2; * * @param value - * the value - * - * @return builder to set most significant bits + * The mostSignificantBits to set. + * @return This builder for chaining. */ public Builder setMostSignificantBits(long value) { - bitField0_ |= 0x00000002; + mostSignificantBits_ = value; onChanged(); return this; } /** - * required sint64 most_significant_bits = 2; + * sint64 most_significant_bits = 2; * - * @return builder to clear the most significant bits + * @return This builder for chaining. */ public Builder clearMostSignificantBits() { - bitField0_ = (bitField0_ & ~0x00000002); + mostSignificantBits_ = 0L; onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.edge.protobuf.EdgeValue.UUID) } + // @@protoc_insertion_point(class_scope:datawave.edge.protobuf.EdgeValue.UUID) + private static final datawave.edge.protobuf.EdgeData.EdgeValue.UUID DEFAULT_INSTANCE; static { - defaultInstance = new UUID(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.edge.protobuf.EdgeData.EdgeValue.UUID(); + } + + public static datawave.edge.protobuf.EdgeData.EdgeValue.UUID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UUID 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 datawave.edge.protobuf.EdgeData.EdgeValue.UUID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.edge.protobuf.EdgeValue.UUID) } private int bitField0_; @@ -1011,127 +866,129 @@ public Builder clearMostSignificantBits() { private long count_; /** - * optional int64 count = 1; - * *
          * edge table count
          * 
* - * @return if it has a count + * int64 count = 1; + * + * @return Whether the count field is set. */ + @java.lang.Override public boolean hasCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional int64 count = 1; - * *
          * edge table count
          * 
* - * @return the count + * int64 count = 1; + * + * @return The count. */ + @java.lang.Override public long getCount() { return count_; } public static final int HOURS_FIELD_NUMBER = 2; - private java.util.List hours_; + private com.google.protobuf.Internal.LongList hours_; /** - * repeated int64 hours = 2 [packed = true]; - * *
          * hour activity array (length 24)
          * 
* - * @return the hours list + * repeated int64 hours = 2 [packed = true]; + * + * @return A list containing the hours. */ + @java.lang.Override public java.util.List getHoursList() { return hours_; } /** - * repeated int64 hours = 2 [packed = true]; - * *
          * hour activity array (length 24)
          * 
* - * @return the size of the hours list + * repeated int64 hours = 2 [packed = true]; + * + * @return The count of hours. */ public int getHoursCount() { return hours_.size(); } /** - * repeated int64 hours = 2 [packed = true]; - * *
          * hour activity array (length 24)
          * 
* - * @param index - * the index + * repeated int64 hours = 2 [packed = true]; * - * @return the hours at the index + * @param index + * The index of the element to return. + * @return The hours at the given index. */ public long getHours(int index) { - return hours_.get(index); + return hours_.getLong(index); } private int hoursMemoizedSerializedSize = -1; public static final int DURATION_FIELD_NUMBER = 3; - private java.util.List duration_; + private com.google.protobuf.Internal.LongList duration_; /** - * repeated int64 duration = 3 [packed = true]; - * *
          * protobuf says that repeated order will be preserved
          * packed means it won't appear in serialized data
          * that doesn't contain any hours fields.
          * 
* - * @return the duration list + * repeated int64 duration = 3 [packed = true]; + * + * @return A list containing the duration. */ + @java.lang.Override public java.util.List getDurationList() { return duration_; } /** - * repeated int64 duration = 3 [packed = true]; - * *
          * protobuf says that repeated order will be preserved
          * packed means it won't appear in serialized data
          * that doesn't contain any hours fields.
          * 
* - * @return the duration count + * repeated int64 duration = 3 [packed = true]; + * + * @return The count of duration. */ public int getDurationCount() { return duration_.size(); } /** - * repeated int64 duration = 3 [packed = true]; - * *
          * protobuf says that repeated order will be preserved
          * packed means it won't appear in serialized data
          * that doesn't contain any hours fields.
          * 
* - * @param index - * the index + * repeated int64 duration = 3 [packed = true]; * - * @return the duration at the index + * @param index + * The index of the element to return. + * @return The duration at the given index. */ public long getDuration(int index) { - return duration_.get(index); + return duration_.getLong(index); } private int durationMemoizedSerializedSize = -1; @@ -1140,48 +997,52 @@ public long getDuration(int index) { private int hourBitmask_; /** - * optional int32 hourBitmask = 4; - * *
          * Bitmask for tracking edge creation by the hour.
          * 
* - * @return if there is an hour bitmask + * int32 hourBitmask = 4; + * + * @return Whether the hourBitmask field is set. */ + @java.lang.Override public boolean hasHourBitmask() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional int32 hourBitmask = 4; - * *
          * Bitmask for tracking edge creation by the hour.
          * 
* - * @return the hour bitmask + * int32 hourBitmask = 4; + * + * @return The hourBitmask. */ + @java.lang.Override public int getHourBitmask() { return hourBitmask_; } public static final int SOURCEVALUE_FIELD_NUMBER = 5; - private java.lang.Object sourceValue_; + private volatile java.lang.Object sourceValue_; /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return if there is a source value + * @return Whether the sourceValue field is set. */ + @java.lang.Override public boolean hasSourceValue() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return the source value + * @return The sourceValue. */ + @java.lang.Override public java.lang.String getSourceValue() { java.lang.Object ref = sourceValue_; if (ref instanceof java.lang.String) { @@ -1189,18 +1050,17 @@ public java.lang.String getSourceValue() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - sourceValue_ = s; - } + sourceValue_ = s; return s; } } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return the source value byte string + * @return The bytes for sourceValue. */ + @java.lang.Override public com.google.protobuf.ByteString getSourceValueBytes() { java.lang.Object ref = sourceValue_; if (ref instanceof java.lang.String) { @@ -1213,22 +1073,24 @@ public com.google.protobuf.ByteString getSourceValueBytes() { } public static final int SINKVALUE_FIELD_NUMBER = 6; - private java.lang.Object sinkValue_; + private volatile java.lang.Object sinkValue_; /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return if it has sink value + * @return Whether the sinkValue field is set. */ + @java.lang.Override public boolean hasSinkValue() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return the sink value + * @return The sinkValue. */ + @java.lang.Override public java.lang.String getSinkValue() { java.lang.Object ref = sinkValue_; if (ref instanceof java.lang.String) { @@ -1236,18 +1098,17 @@ public java.lang.String getSinkValue() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - sinkValue_ = s; - } + sinkValue_ = s; return s; } } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return the sink value byte string + * @return The bytes for sinkValue. */ + @java.lang.Override public com.google.protobuf.ByteString getSinkValueBytes() { java.lang.Object ref = sinkValue_; if (ref instanceof java.lang.String) { @@ -1260,22 +1121,24 @@ public com.google.protobuf.ByteString getSinkValueBytes() { } public static final int LOADDATE_FIELD_NUMBER = 7; - private java.lang.Object loadDate_; + private volatile java.lang.Object loadDate_; /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return if there is a load date + * @return Whether the loadDate field is set. */ + @java.lang.Override public boolean hasLoadDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return the load date + * @return The loadDate. */ + @java.lang.Override public java.lang.String getLoadDate() { java.lang.Object ref = loadDate_; if (ref instanceof java.lang.String) { @@ -1283,18 +1146,17 @@ public java.lang.String getLoadDate() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - loadDate_ = s; - } + loadDate_ = s; return s; } } /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return the load date byte string + * @return The bytes for loadDate. */ + @java.lang.Override public com.google.protobuf.ByteString getLoadDateBytes() { java.lang.Object ref = loadDate_; if (ref instanceof java.lang.String) { @@ -1310,19 +1172,21 @@ public com.google.protobuf.ByteString getLoadDateBytes() { private boolean badActivity_; /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return if there is bad activity + * @return Whether the badActivity field is set. */ + @java.lang.Override public boolean hasBadActivity() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return bad activity + * @return The badActivity. */ + @java.lang.Override public boolean getBadActivity() { return badActivity_; } @@ -1331,69 +1195,72 @@ public boolean getBadActivity() { private datawave.edge.protobuf.EdgeData.EdgeValue.UUID uuid_; /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-         * a single uuid of an event that contributed to the edge
+         *a single uuid of an event that contributed to the edge
          * 
* - * @return if it has uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; + * + * @return Whether the uuid field is set. */ + @java.lang.Override public boolean hasUuid() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-         * a single uuid of an event that contributed to the edge
+         *a single uuid of an event that contributed to the edge
          * 
* - * @return the uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; + * + * @return The uuid. */ + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue.UUID getUuid() { - return uuid_; + return uuid_ == null ? datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance() : uuid_; } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-         * a single uuid of an event that contributed to the edge
+         *a single uuid of an event that contributed to the edge
          * 
* - * @return the uuid or builder + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue.UUIDOrBuilder getUuidOrBuilder() { - return uuid_; + return uuid_ == null ? datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance() : uuid_; } public static final int UUID_STRING_FIELD_NUMBER = 10; - private java.lang.Object uuidString_; + private volatile java.lang.Object uuidString_; /** - * optional string uuid_string = 10; - * *
          * a single uuid of an event that contributed to the edge in string format
          * 
* - * @return if there is uuid + * string uuid_string = 10; + * + * @return Whether the uuidString field is set. */ + @java.lang.Override public boolean hasUuidString() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional string uuid_string = 10; - * *
          * a single uuid of an event that contributed to the edge in string format
          * 
* - * @return the uuid string + * string uuid_string = 10; + * + * @return The uuidString. */ + @java.lang.Override public java.lang.String getUuidString() { java.lang.Object ref = uuidString_; if (ref instanceof java.lang.String) { @@ -1401,22 +1268,21 @@ public java.lang.String getUuidString() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuidString_ = s; - } + uuidString_ = s; return s; } } /** - * optional string uuid_string = 10; - * *
          * a single uuid of an event that contributed to the edge in string format
          * 
* - * @return uuid byte string + * string uuid_string = 10; + * + * @return The bytes for uuidString. */ + @java.lang.Override public com.google.protobuf.ByteString getUuidStringBytes() { java.lang.Object ref = uuidString_; if (ref instanceof java.lang.String) { @@ -1428,21 +1294,9 @@ public com.google.protobuf.ByteString getUuidStringBytes() { } } - private void initFields() { - count_ = 0L; - hours_ = java.util.Collections.emptyList(); - duration_ = java.util.Collections.emptyList(); - hourBitmask_ = 0; - sourceValue_ = ""; - sinkValue_ = ""; - loadDate_ = ""; - badActivity_ = false; - uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); - uuidString_ = ""; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) @@ -1450,74 +1304,68 @@ public final boolean isInitialized() { if (isInitialized == 0) return false; - if (hasUuid()) { - if (!getUuid().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, count_); } if (getHoursList().size() > 0) { - output.writeRawVarint32(18); - output.writeRawVarint32(hoursMemoizedSerializedSize); + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(hoursMemoizedSerializedSize); } for (int i = 0; i < hours_.size(); i++) { - output.writeInt64NoTag(hours_.get(i)); + output.writeInt64NoTag(hours_.getLong(i)); } if (getDurationList().size() > 0) { - output.writeRawVarint32(26); - output.writeRawVarint32(durationMemoizedSerializedSize); + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(durationMemoizedSerializedSize); } for (int i = 0; i < duration_.size(); i++) { - output.writeInt64NoTag(duration_.get(i)); + output.writeInt64NoTag(duration_.getLong(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(4, hourBitmask_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(5, getSourceValueBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceValue_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(6, getSinkValueBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sinkValue_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(7, getLoadDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, loadDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(8, badActivity_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(9, uuid_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(9, getUuid()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(10, getUuidStringBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, uuidString_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); } { int dataSize = 0; for (int i = 0; i < hours_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(hours_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(hours_.getLong(i)); } size += dataSize; if (!getHoursList().isEmpty()) { @@ -1529,7 +1377,7 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < duration_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(duration_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(duration_.getLong(i)); } size += dataSize; if (!getDurationList().isEmpty()) { @@ -1538,37 +1386,158 @@ public int getSerializedSize() { } durationMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, hourBitmask_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, getSourceValueBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceValue_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, getSinkValueBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sinkValue_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, getLoadDateBytes()); + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, loadDate_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, badActivity_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, uuid_); + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUuid()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, getUuidStringBytes()); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, uuidString_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.edge.protobuf.EdgeData.EdgeValue)) { + return super.equals(obj); + } + datawave.edge.protobuf.EdgeData.EdgeValue other = (datawave.edge.protobuf.EdgeData.EdgeValue) obj; + + if (hasCount() != other.hasCount()) + return false; + if (hasCount()) { + if (getCount() != other.getCount()) + return false; + } + if (!getHoursList().equals(other.getHoursList())) + return false; + if (!getDurationList().equals(other.getDurationList())) + return false; + if (hasHourBitmask() != other.hasHourBitmask()) + return false; + if (hasHourBitmask()) { + if (getHourBitmask() != other.getHourBitmask()) + return false; + } + if (hasSourceValue() != other.hasSourceValue()) + return false; + if (hasSourceValue()) { + if (!getSourceValue().equals(other.getSourceValue())) + return false; + } + if (hasSinkValue() != other.hasSinkValue()) + return false; + if (hasSinkValue()) { + if (!getSinkValue().equals(other.getSinkValue())) + return false; + } + if (hasLoadDate() != other.hasLoadDate()) + return false; + if (hasLoadDate()) { + if (!getLoadDate().equals(other.getLoadDate())) + return false; + } + if (hasBadActivity() != other.hasBadActivity()) + return false; + if (hasBadActivity()) { + if (getBadActivity() != other.getBadActivity()) + return false; + } + if (hasUuid() != other.hasUuid()) + return false; + if (hasUuid()) { + if (!getUuid().equals(other.getUuid())) + return false; + } + if (hasUuidString() != other.hasUuidString()) + return false; + if (hasUuidString()) { + if (!getUuidString().equals(other.getUuidString())) + 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 (hasCount()) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + } + if (getHoursCount() > 0) { + hash = (37 * hash) + HOURS_FIELD_NUMBER; + hash = (53 * hash) + getHoursList().hashCode(); + } + if (getDurationCount() > 0) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDurationList().hashCode(); + } + if (hasHourBitmask()) { + hash = (37 * hash) + HOURBITMASK_FIELD_NUMBER; + hash = (53 * hash) + getHourBitmask(); + } + if (hasSourceValue()) { + hash = (37 * hash) + SOURCEVALUE_FIELD_NUMBER; + hash = (53 * hash) + getSourceValue().hashCode(); + } + if (hasSinkValue()) { + hash = (37 * hash) + SINKVALUE_FIELD_NUMBER; + hash = (53 * hash) + getSinkValue().hashCode(); + } + if (hasLoadDate()) { + hash = (37 * hash) + LOADDATE_FIELD_NUMBER; + hash = (53 * hash) + getLoadDate().hashCode(); + } + if (hasBadActivity()) { + hash = (37 * hash) + BADACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBadActivity()); + } + if (hasUuid()) { + hash = (37 * hash) + UUID_FIELD_NUMBER; + hash = (53 * hash) + getUuid().hashCode(); + } + if (hasUuidString()) { + hash = (37 * hash) + UUID_STRING_FIELD_NUMBER; + hash = (53 * hash) + getUuidString().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(com.google.protobuf.ByteString data) @@ -1591,69 +1560,72 @@ public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(byte[] data, c } public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.edge.protobuf.EdgeData.EdgeValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.edge.protobuf.EdgeData.EdgeValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.edge.protobuf.EdgeData.EdgeValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.edge.protobuf.EdgeData.EdgeValue prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code datawave.edge.protobuf.EdgeValue} - * *
          * Used for the Accumulo Value bytes for Edge Table and edge Metadata Table entries
          * 
+ * + * Protobuf type {@code datawave.edge.protobuf.EdgeValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datawave.edge.protobuf.EdgeValue) datawave.edge.protobuf.EdgeData.EdgeValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_fieldAccessorTable.ensureFieldAccessorsInitialized( datawave.edge.protobuf.EdgeData.EdgeValue.class, datawave.edge.protobuf.EdgeData.EdgeValue.Builder.class); } @@ -1663,28 +1635,25 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUuidFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - + @java.lang.Override public Builder clear() { super.clear(); count_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); - hours_ = java.util.Collections.emptyList(); + hours_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); - duration_ = java.util.Collections.emptyList(); + duration_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); hourBitmask_ = 0; bitField0_ = (bitField0_ & ~0x00000008); @@ -1697,7 +1666,7 @@ public Builder clear() { badActivity_ = false; bitField0_ = (bitField0_ & ~0x00000080); if (uuidBuilder_ == null) { - uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); + uuid_ = null; } else { uuidBuilder_.clear(); } @@ -1707,18 +1676,17 @@ public Builder clear() { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datawave.edge.protobuf.EdgeData.internal_static_datawave_edge_protobuf_EdgeValue_descriptor; } + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue getDefaultInstanceForType() { return datawave.edge.protobuf.EdgeData.EdgeValue.getDefaultInstance(); } + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue build() { datawave.edge.protobuf.EdgeData.EdgeValue result = buildPartial(); if (!result.isInitialized()) { @@ -1727,53 +1695,54 @@ public datawave.edge.protobuf.EdgeData.EdgeValue build() { return result; } + @java.lang.Override public datawave.edge.protobuf.EdgeData.EdgeValue buildPartial() { datawave.edge.protobuf.EdgeData.EdgeValue result = new datawave.edge.protobuf.EdgeData.EdgeValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { + result.count_ = count_; to_bitField0_ |= 0x00000001; } - result.count_ = count_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - hours_ = java.util.Collections.unmodifiableList(hours_); + if (((bitField0_ & 0x00000002) != 0)) { + hours_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.hours_ = hours_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - duration_ = java.util.Collections.unmodifiableList(duration_); + if (((bitField0_ & 0x00000004) != 0)) { + duration_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.duration_ = duration_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hourBitmask_ = hourBitmask_; to_bitField0_ |= 0x00000002; } - result.hourBitmask_ = hourBitmask_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000004; } result.sourceValue_ = sourceValue_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000008; } result.sinkValue_ = sinkValue_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000010; } result.loadDate_ = loadDate_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.badActivity_ = badActivity_; to_bitField0_ |= 0x00000020; } - result.badActivity_ = badActivity_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { + if (uuidBuilder_ == null) { + result.uuid_ = uuid_; + } else { + result.uuid_ = uuidBuilder_.build(); + } to_bitField0_ |= 0x00000040; } - if (uuidBuilder_ == null) { - result.uuid_ = uuid_; - } else { - result.uuid_ = uuidBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000080; } result.uuidString_ = uuidString_; @@ -1782,6 +1751,37 @@ public datawave.edge.protobuf.EdgeData.EdgeValue buildPartial() { return result; } + @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 datawave.edge.protobuf.EdgeData.EdgeValue) { return mergeFrom((datawave.edge.protobuf.EdgeData.EdgeValue) other); @@ -1847,32 +1847,114 @@ public Builder mergeFrom(datawave.edge.protobuf.EdgeData.EdgeValue other) { onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (hasUuid()) { - if (!getUuid().isInitialized()) { - - return false; - } - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.edge.protobuf.EdgeData.EdgeValue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + count_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + long v = input.readInt64(); + ensureHoursIsMutable(); + hours_.addLong(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureHoursIsMutable(); + while (input.getBytesUntilLimit() > 0) { + hours_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: { + long v = input.readInt64(); + ensureDurationIsMutable(); + duration_.addLong(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureDurationIsMutable(); + while (input.getBytesUntilLimit() > 0) { + duration_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: { + hourBitmask_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + sourceValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + sinkValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + loadDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + badActivity_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + input.readMessage(getUuidFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + uuidString_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.edge.protobuf.EdgeData.EdgeValue) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1881,42 +1963,43 @@ public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google. private long count_; /** - * optional int64 count = 1; - * *
              * edge table count
              * 
* - * @return if it has a count + * int64 count = 1; + * + * @return Whether the count field is set. */ + @java.lang.Override public boolean hasCount() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional int64 count = 1; - * *
              * edge table count
              * 
* - * @return the count + * int64 count = 1; + * + * @return The count. */ + @java.lang.Override public long getCount() { return count_; } /** - * optional int64 count = 1; - * *
              * edge table count
              * 
* - * @param value - * the count + * int64 count = 1; * - * @return a builder to set the count + * @param value + * The count to set. + * @return This builder for chaining. */ public Builder setCount(long value) { bitField0_ |= 0x00000001; @@ -1926,13 +2009,13 @@ public Builder setCount(long value) { } /** - * optional int64 count = 1; - * *
              * edge table count
              * 
* - * @return a builder to clear the count + * int64 count = 1; + * + * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1941,108 +2024,104 @@ public Builder clearCount() { return this; } - private java.util.List hours_ = java.util.Collections.emptyList(); + private com.google.protobuf.Internal.LongList hours_ = emptyLongList(); private void ensureHoursIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - hours_ = new java.util.ArrayList(hours_); + if (!((bitField0_ & 0x00000002) != 0)) { + hours_ = mutableCopy(hours_); bitField0_ |= 0x00000002; } } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* - * @return the hours list + * repeated int64 hours = 2 [packed = true]; + * + * @return A list containing the hours. */ public java.util.List getHoursList() { - return java.util.Collections.unmodifiableList(hours_); + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(hours_) : hours_; } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* - * @return the size of the hours list + * repeated int64 hours = 2 [packed = true]; + * + * @return The count of hours. */ public int getHoursCount() { return hours_.size(); } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* - * @param index - * the index + * repeated int64 hours = 2 [packed = true]; * - * @return the hours at the index + * @param index + * The index of the element to return. + * @return The hours at the given index. */ public long getHours(int index) { - return hours_.get(index); + return hours_.getLong(index); } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* + * repeated int64 hours = 2 [packed = true]; + * * @param index - * the index + * The index to set the value at. * @param value - * the value - * - * @return builder to set the hours a the provided index to the value provided + * The hours to set. + * @return This builder for chaining. */ public Builder setHours(int index, long value) { ensureHoursIsMutable(); - hours_.set(index, value); + hours_.setLong(index, value); onChanged(); return this; } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* - * @param value - * the hours to add to the list + * repeated int64 hours = 2 [packed = true]; * - * @return builder to add the hours to the list + * @param value + * The hours to add. + * @return This builder for chaining. */ public Builder addHours(long value) { ensureHoursIsMutable(); - hours_.add(value); + hours_.addLong(value); onChanged(); return this; } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* - * @param values - * the values to add + * repeated int64 hours = 2 [packed = true]; * - * @return builder to add all the hours from the values parameter + * @param values + * The hours to add. + * @return This builder for chaining. */ public Builder addAllHours(java.lang.Iterable values) { ensureHoursIsMutable(); @@ -2052,135 +2131,131 @@ public Builder addAllHours(java.lang.Iterable values) } /** - * repeated int64 hours = 2 [packed = true]; - * *
              * hour activity array (length 24)
              * 
* - * @return builder to clear hours + * repeated int64 hours = 2 [packed = true]; + * + * @return This builder for chaining. */ public Builder clearHours() { - hours_ = java.util.Collections.emptyList(); + hours_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } - private java.util.List duration_ = java.util.Collections.emptyList(); + private com.google.protobuf.Internal.LongList duration_ = emptyLongList(); private void ensureDurationIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - duration_ = new java.util.ArrayList(duration_); + if (!((bitField0_ & 0x00000004) != 0)) { + duration_ = mutableCopy(duration_); bitField0_ |= 0x00000004; } } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* - * @return the duration list + * repeated int64 duration = 3 [packed = true]; + * + * @return A list containing the duration. */ public java.util.List getDurationList() { - return java.util.Collections.unmodifiableList(duration_); + return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(duration_) : duration_; } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* - * @return the duration list size + * repeated int64 duration = 3 [packed = true]; + * + * @return The count of duration. */ public int getDurationCount() { return duration_.size(); } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* - * @param index - * the index + * repeated int64 duration = 3 [packed = true]; * - * @return the duration at the index provided + * @param index + * The index of the element to return. + * @return The duration at the given index. */ public long getDuration(int index) { - return duration_.get(index); + return duration_.getLong(index); } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* + * repeated int64 duration = 3 [packed = true]; + * * @param index - * the index + * The index to set the value at. * @param value - * the value - * - * @return builder to set the duration to a value for provided index + * The duration to set. + * @return This builder for chaining. */ public Builder setDuration(int index, long value) { ensureDurationIsMutable(); - duration_.set(index, value); + duration_.setLong(index, value); onChanged(); return this; } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* - * @param value - * the value + * repeated int64 duration = 3 [packed = true]; * - * @return builder to add a duration to the list + * @param value + * The duration to add. + * @return This builder for chaining. */ public Builder addDuration(long value) { ensureDurationIsMutable(); - duration_.add(value); + duration_.addLong(value); onChanged(); return this; } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* - * @param values - * iterator of duration values to add + * repeated int64 duration = 3 [packed = true]; * - * @return builder to add durations from values passed in + * @param values + * The duration to add. + * @return This builder for chaining. */ public Builder addAllDuration(java.lang.Iterable values) { ensureDurationIsMutable(); @@ -2190,18 +2265,18 @@ public Builder addAllDuration(java.lang.Iterable value } /** - * repeated int64 duration = 3 [packed = true]; - * *
              * protobuf says that repeated order will be preserved
              * packed means it won't appear in serialized data
              * that doesn't contain any hours fields.
              * 
* - * @return builder to clear durations + * repeated int64 duration = 3 [packed = true]; + * + * @return This builder for chaining. */ public Builder clearDuration() { - duration_ = java.util.Collections.emptyList(); + duration_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; @@ -2210,42 +2285,43 @@ public Builder clearDuration() { private int hourBitmask_; /** - * optional int32 hourBitmask = 4; - * *
              * Bitmask for tracking edge creation by the hour.
              * 
* - * @return if it has hour bitmask + * int32 hourBitmask = 4; + * + * @return Whether the hourBitmask field is set. */ + @java.lang.Override public boolean hasHourBitmask() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional int32 hourBitmask = 4; - * *
              * Bitmask for tracking edge creation by the hour.
              * 
* - * @return the hour bitmask + * int32 hourBitmask = 4; + * + * @return The hourBitmask. */ + @java.lang.Override public int getHourBitmask() { return hourBitmask_; } /** - * optional int32 hourBitmask = 4; - * *
              * Bitmask for tracking edge creation by the hour.
              * 
* - * @param value - * the value + * int32 hourBitmask = 4; * - * @return builder to set hour bitmask + * @param value + * The hourBitmask to set. + * @return This builder for chaining. */ public Builder setHourBitmask(int value) { bitField0_ |= 0x00000008; @@ -2255,13 +2331,13 @@ public Builder setHourBitmask(int value) { } /** - * optional int32 hourBitmask = 4; - * *
              * Bitmask for tracking edge creation by the hour.
              * 
* - * @return builder to clear hour bitmask + * int32 hourBitmask = 4; + * + * @return This builder for chaining. */ public Builder clearHourBitmask() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2273,27 +2349,25 @@ public Builder clearHourBitmask() { private java.lang.Object sourceValue_ = ""; /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return if it has source value + * @return Whether the sourceValue field is set. */ public boolean hasSourceValue() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return the source value + * @return The sourceValue. */ public java.lang.String getSourceValue() { java.lang.Object ref = sourceValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - sourceValue_ = s; - } + sourceValue_ = s; return s; } else { return (java.lang.String) ref; @@ -2301,9 +2375,9 @@ public java.lang.String getSourceValue() { } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return source value byte string + * @return The bytes for sourceValue. */ public com.google.protobuf.ByteString getSourceValueBytes() { java.lang.Object ref = sourceValue_; @@ -2317,12 +2391,11 @@ public com.google.protobuf.ByteString getSourceValueBytes() { } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * * @param value - * the new source value - * - * @return builder to set the source value + * The sourceValue to set. + * @return This builder for chaining. */ public Builder setSourceValue(java.lang.String value) { if (value == null) { @@ -2335,9 +2408,9 @@ public Builder setSourceValue(java.lang.String value) { } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * - * @return builder to clear source value + * @return This builder for chaining. */ public Builder clearSourceValue() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2347,17 +2420,17 @@ public Builder clearSourceValue() { } /** - * optional string sourceValue = 5; + * string sourceValue = 5; * * @param value - * to set source value to - * - * @return builder to set source value to parameter passed in + * The bytes for sourceValue to set. + * @return This builder for chaining. */ public Builder setSourceValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000010; sourceValue_ = value; onChanged(); @@ -2367,27 +2440,25 @@ public Builder setSourceValueBytes(com.google.protobuf.ByteString value) { private java.lang.Object sinkValue_ = ""; /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return if there is a sink value + * @return Whether the sinkValue field is set. */ public boolean hasSinkValue() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return the sink value + * @return The sinkValue. */ public java.lang.String getSinkValue() { java.lang.Object ref = sinkValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - sinkValue_ = s; - } + sinkValue_ = s; return s; } else { return (java.lang.String) ref; @@ -2395,9 +2466,9 @@ public java.lang.String getSinkValue() { } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return the sink value byte string + * @return The bytes for sinkValue. */ public com.google.protobuf.ByteString getSinkValueBytes() { java.lang.Object ref = sinkValue_; @@ -2411,12 +2482,11 @@ public com.google.protobuf.ByteString getSinkValueBytes() { } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * * @param value - * the new sink value - * - * @return builder to set sink value + * The sinkValue to set. + * @return This builder for chaining. */ public Builder setSinkValue(java.lang.String value) { if (value == null) { @@ -2429,9 +2499,9 @@ public Builder setSinkValue(java.lang.String value) { } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * - * @return builder to clear sink value + * @return This builder for chaining. */ public Builder clearSinkValue() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2441,17 +2511,17 @@ public Builder clearSinkValue() { } /** - * optional string sinkValue = 6; + * string sinkValue = 6; * * @param value - * new sink value - * - * @return builder to set sink value to passed in parameter + * The bytes for sinkValue to set. + * @return This builder for chaining. */ public Builder setSinkValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000020; sinkValue_ = value; onChanged(); @@ -2461,27 +2531,25 @@ public Builder setSinkValueBytes(com.google.protobuf.ByteString value) { private java.lang.Object loadDate_ = ""; /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return if it has load date + * @return Whether the loadDate field is set. */ public boolean hasLoadDate() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return load date + * @return The loadDate. */ public java.lang.String getLoadDate() { java.lang.Object ref = loadDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - loadDate_ = s; - } + loadDate_ = s; return s; } else { return (java.lang.String) ref; @@ -2489,9 +2557,9 @@ public java.lang.String getLoadDate() { } /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return load date byte string + * @return The bytes for loadDate. */ public com.google.protobuf.ByteString getLoadDateBytes() { java.lang.Object ref = loadDate_; @@ -2505,12 +2573,11 @@ public com.google.protobuf.ByteString getLoadDateBytes() { } /** - * optional string loadDate = 7; + * string loadDate = 7; * * @param value - * the new load date - * - * @return builder to set load date to passed in parameter + * The loadDate to set. + * @return This builder for chaining. */ public Builder setLoadDate(java.lang.String value) { if (value == null) { @@ -2523,9 +2590,9 @@ public Builder setLoadDate(java.lang.String value) { } /** - * optional string loadDate = 7; + * string loadDate = 7; * - * @return builder to clear the load date + * @return This builder for chaining. */ public Builder clearLoadDate() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2535,17 +2602,17 @@ public Builder clearLoadDate() { } /** - * optional string loadDate = 7; + * string loadDate = 7; * * @param value - * the new load date value - * - * @return builder to set the load date to the passed in parameter + * The bytes for loadDate to set. + * @return This builder for chaining. */ public Builder setLoadDateBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000040; loadDate_ = value; onChanged(); @@ -2555,30 +2622,31 @@ public Builder setLoadDateBytes(com.google.protobuf.ByteString value) { private boolean badActivity_; /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return if it has bad activity + * @return Whether the badActivity field is set. */ + @java.lang.Override public boolean hasBadActivity() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return bad activity indicator + * @return The badActivity. */ + @java.lang.Override public boolean getBadActivity() { return badActivity_; } /** - * optional bool badActivity = 8; + * bool badActivity = 8; * * @param value - * bad activity flag - * - * @return builder to set bad activity to passed in paramter + * The badActivity to set. + * @return This builder for chaining. */ public Builder setBadActivity(boolean value) { bitField0_ |= 0x00000080; @@ -2588,9 +2656,9 @@ public Builder setBadActivity(boolean value) { } /** - * optional bool badActivity = 8; + * bool badActivity = 8; * - * @return builder to clear bad activity indicator + * @return This builder for chaining. */ public Builder clearBadActivity() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2599,50 +2667,45 @@ public Builder clearBadActivity() { return this; } - private datawave.edge.protobuf.EdgeData.EdgeValue.UUID uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder uuidBuilder_; + private datawave.edge.protobuf.EdgeData.EdgeValue.UUID uuid_; + private com.google.protobuf.SingleFieldBuilderV3 uuidBuilder_; /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @return if it has uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; + * + * @return Whether the uuid field is set. */ public boolean hasUuid() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @return the uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; + * + * @return The uuid. */ public datawave.edge.protobuf.EdgeData.EdgeValue.UUID getUuid() { if (uuidBuilder_ == null) { - return uuid_; + return uuid_ == null ? datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance() : uuid_; } else { return uuidBuilder_.getMessage(); } } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @param value - * the new uuid - * - * @return builder to set the new uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ public Builder setUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID value) { if (uuidBuilder_ == null) { @@ -2659,16 +2722,11 @@ public Builder setUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID value) { } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @param builderForValue - * the new uuid - * - * @return builder to set uuid to new value + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ public Builder setUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder builderForValue) { if (uuidBuilder_ == null) { @@ -2682,20 +2740,15 @@ public Builder setUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder bu } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @param value - * uuid to merge in - * - * @return builder to merge in new uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ public Builder mergeUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID value) { if (uuidBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && uuid_ != datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && uuid_ != null && uuid_ != datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance()) { uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.newBuilder(uuid_).mergeFrom(value).buildPartial(); } else { uuid_ = value; @@ -2709,17 +2762,15 @@ public Builder mergeUuid(datawave.edge.protobuf.EdgeData.EdgeValue.UUID value) { } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @return builder to clear uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ public Builder clearUuid() { if (uuidBuilder_ == null) { - uuid_ = datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance(); + uuid_ = null; onChanged(); } else { uuidBuilder_.clear(); @@ -2729,13 +2780,11 @@ public Builder clearUuid() { } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @return builder to build uuid + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ public datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder getUuidBuilder() { bitField0_ |= 0x00000100; @@ -2744,34 +2793,30 @@ public datawave.edge.protobuf.EdgeData.EdgeValue.UUID.Builder getUuidBuilder() { } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @return uuidorbuilder + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ public datawave.edge.protobuf.EdgeData.EdgeValue.UUIDOrBuilder getUuidOrBuilder() { if (uuidBuilder_ != null) { return uuidBuilder_.getMessageOrBuilder(); } else { - return uuid_; + return uuid_ == null ? datawave.edge.protobuf.EdgeData.EdgeValue.UUID.getDefaultInstance() : uuid_; } } /** - * optional .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; - * *
-             * a single uuid of an event that contributed to the edge
+             *a single uuid of an event that contributed to the edge
              * 
* - * @return uuidfieldbuilder + * .datawave.edge.protobuf.EdgeValue.UUID uuid = 9; */ - private com.google.protobuf.SingleFieldBuilder getUuidFieldBuilder() { + private com.google.protobuf.SingleFieldBuilderV3 getUuidFieldBuilder() { if (uuidBuilder_ == null) { - uuidBuilder_ = new com.google.protobuf.SingleFieldBuilder( + uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( getUuid(), getParentForChildren(), isClean()); uuid_ = null; } @@ -2781,35 +2826,33 @@ private com.google.protobuf.SingleFieldBuilderoptional string uuid_string = 10; - * *
              * a single uuid of an event that contributed to the edge in string format
              * 
* - * @return if it has uuid + * string uuid_string = 10; + * + * @return Whether the uuidString field is set. */ public boolean hasUuidString() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional string uuid_string = 10; - * *
              * a single uuid of an event that contributed to the edge in string format
              * 
* - * @return uuid + * string uuid_string = 10; + * + * @return The uuidString. */ public java.lang.String getUuidString() { java.lang.Object ref = uuidString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuidString_ = s; - } + uuidString_ = s; return s; } else { return (java.lang.String) ref; @@ -2817,13 +2860,13 @@ public java.lang.String getUuidString() { } /** - * optional string uuid_string = 10; - * *
              * a single uuid of an event that contributed to the edge in string format
              * 
* - * @return uuid byte string + * string uuid_string = 10; + * + * @return The bytes for uuidString. */ public com.google.protobuf.ByteString getUuidStringBytes() { java.lang.Object ref = uuidString_; @@ -2837,16 +2880,15 @@ public com.google.protobuf.ByteString getUuidStringBytes() { } /** - * optional string uuid_string = 10; - * *
              * a single uuid of an event that contributed to the edge in string format
              * 
* - * @param value - * new uuid + * string uuid_string = 10; * - * @return builder to set uuid to passed in value + * @param value + * The uuidString to set. + * @return This builder for chaining. */ public Builder setUuidString(java.lang.String value) { if (value == null) { @@ -2859,13 +2901,13 @@ public Builder setUuidString(java.lang.String value) { } /** - * optional string uuid_string = 10; - * *
              * a single uuid of an event that contributed to the edge in string format
              * 
* - * @return builder to clear uuid + * string uuid_string = 10; + * + * @return This builder for chaining. */ public Builder clearUuidString() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2875,42 +2917,88 @@ public Builder clearUuidString() { } /** - * optional string uuid_string = 10; - * *
              * a single uuid of an event that contributed to the edge in string format
              * 
* - * @param value - * new uuid + * string uuid_string = 10; * - * @return builder to set the uuid + * @param value + * The bytes for uuidString to set. + * @return This builder for chaining. */ public Builder setUuidStringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000200; uuidString_ = value; onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.edge.protobuf.EdgeValue) } + // @@protoc_insertion_point(class_scope:datawave.edge.protobuf.EdgeValue) + private static final datawave.edge.protobuf.EdgeData.EdgeValue DEFAULT_INSTANCE; static { - defaultInstance = new EdgeValue(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.edge.protobuf.EdgeData.EdgeValue(); + } + + public static datawave.edge.protobuf.EdgeData.EdgeValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EdgeValue 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 datawave.edge.protobuf.EdgeData.EdgeValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.edge.protobuf.EdgeValue) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_edge_protobuf_EdgeValue_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_datawave_edge_protobuf_EdgeValue_fieldAccessorTable; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_edge_protobuf_EdgeValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_edge_protobuf_EdgeValue_UUID_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_datawave_edge_protobuf_EdgeValue_UUID_fieldAccessorTable; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_edge_protobuf_EdgeValue_UUID_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -2918,28 +3006,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - java.lang.String[] descriptorData = { - "\n\016EdgeData.proto\022\026datawave.edge.protobuf" + "\"\271\002\n\tEdgeValue\022\r\n\005count\030\001 \001(\003\022\021\n\005hours\030\002" - + " \003(\003B\002\020\001\022\024\n\010duration\030\003 \003(\003B\002\020\001\022\023\n\013hourBi" - + "tmask\030\004 \001(\005\022\023\n\013sourceValue\030\005 \001(\t\022\021\n\tsink" - + "Value\030\006 \001(\t\022\020\n\010loadDate\030\007 \001(\t\022\023\n\013badActi" - + "vity\030\010 \001(\010\0224\n\004uuid\030\t \001(\0132&.datawave.edge" - + ".protobuf.EdgeValue.UUID\022\023\n\013uuid_string\030" + "\n \001(\t\032E\n\004UUID\022\036\n\026least_significant_bits\030" - + "\001 \002(\022\022\035\n\025most_significant_bits\030\002 \002(\022B\032\n\026" + "datawave.edge.protobufH\001"}; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, - assigner); + java.lang.String[] descriptorData = {"\n\016EdgeData.proto\022\026datawave.edge.protobuf" + + "\"\317\003\n\tEdgeValue\022\022\n\005count\030\001 \001(\003H\000\210\001\001\022\021\n\005ho" + + "urs\030\002 \003(\003B\002\020\001\022\024\n\010duration\030\003 \003(\003B\002\020\001\022\030\n\013h" + + "ourBitmask\030\004 \001(\005H\001\210\001\001\022\030\n\013sourceValue\030\005 \001" + + "(\tH\002\210\001\001\022\026\n\tsinkValue\030\006 \001(\tH\003\210\001\001\022\025\n\010loadD" + + "ate\030\007 \001(\tH\004\210\001\001\022\030\n\013badActivity\030\010 \001(\010H\005\210\001\001" + + "\0229\n\004uuid\030\t \001(\0132&.datawave.edge.protobuf." + "EdgeValue.UUIDH\006\210\001\001\022\030\n\013uuid_string\030\n \001(\t" + + "H\007\210\001\001\032E\n\004UUID\022\036\n\026least_significant_bits\030" + + "\001 \001(\022\022\035\n\025most_significant_bits\030\002 \001(\022B\010\n\006" + + "_countB\016\n\014_hourBitmaskB\016\n\014_sourceValueB\014" + "\n\n_sinkValueB\013\n\t_loadDateB\016\n\014_badActivit" + + "yB\007\n\005_uuidB\016\n\014_uuid_stringB\032\n\026datawave.e" + "dge.protobufH\001b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_datawave_edge_protobuf_EdgeValue_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_datawave_edge_protobuf_EdgeValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_datawave_edge_protobuf_EdgeValue_descriptor, new java.lang.String[] {"Count", "Hours", "Duration", "HourBitmask", - "SourceValue", "SinkValue", "LoadDate", "BadActivity", "Uuid", "UuidString",}); + internal_static_datawave_edge_protobuf_EdgeValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_edge_protobuf_EdgeValue_descriptor, + new java.lang.String[] {"Count", "Hours", "Duration", "HourBitmask", "SourceValue", "SinkValue", "LoadDate", "BadActivity", "Uuid", + "UuidString", "Count", "HourBitmask", "SourceValue", "SinkValue", "LoadDate", "BadActivity", "Uuid", "UuidString",}); internal_static_datawave_edge_protobuf_EdgeValue_UUID_descriptor = internal_static_datawave_edge_protobuf_EdgeValue_descriptor.getNestedTypes().get(0); - internal_static_datawave_edge_protobuf_EdgeValue_UUID_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_datawave_edge_protobuf_EdgeValue_UUID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datawave_edge_protobuf_EdgeValue_UUID_descriptor, new java.lang.String[] {"LeastSignificantBits", "MostSignificantBits",}); } diff --git a/warehouse/core/src/main/java/datawave/edge/util/EdgeValue.java b/warehouse/core/src/main/java/datawave/edge/util/EdgeValue.java index e965169af9e..bef40785d91 100644 --- a/warehouse/core/src/main/java/datawave/edge/util/EdgeValue.java +++ b/warehouse/core/src/main/java/datawave/edge/util/EdgeValue.java @@ -267,7 +267,7 @@ public static EdgeValue decode(Value value) throws InvalidProtocolBufferExceptio builder.setOnlyUuidString(false); builder.setUuidObj(convertUuidObject(proto.getUuid())); } else if (proto.hasUuidString()) { - // if there is a uuid string in the protobuf data, it means that we shouldn't have a uuid object at all + // if the uuid string is in the protobuf data, it means that we shouldn't have the uuid object at all builder.setOnlyUuidString(true); builder.setUuid(proto.getUuidString()); } diff --git a/warehouse/core/src/main/java/datawave/ingest/protobuf/TermWeight.java b/warehouse/core/src/main/java/datawave/ingest/protobuf/TermWeight.java index 5313274d3e1..59c62e380f2 100644 --- a/warehouse/core/src/main/java/datawave/ingest/protobuf/TermWeight.java +++ b/warehouse/core/src/main/java/datawave/ingest/protobuf/TermWeight.java @@ -6,22 +6,27 @@ public final class TermWeight { private TermWeight() {} - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {} + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - public interface InfoOrBuilder extends com.google.protobuf.MessageOrBuilder { + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface InfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.ingest.protobuf.Info) + com.google.protobuf.MessageOrBuilder { - // repeated uint32 termOffset = 3; /** * repeated uint32 termOffset = 3; * - * @return list of term offsets + * @return A list containing the termOffset. */ java.util.List getTermOffsetList(); /** * repeated uint32 termOffset = 3; * - * @return the number of term offsets in the list + * @return The count of termOffset. */ int getTermOffsetCount(); @@ -29,24 +34,22 @@ public interface InfoOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated uint32 termOffset = 3; * * @param index - * the index - * - * @return the term offset at the provided index + * The index of the element to return. + * @return The termOffset at the given index. */ int getTermOffset(int index); - // repeated uint32 prevSkips = 4; /** * repeated uint32 prevSkips = 4; * - * @return list of previous skips + * @return A list containing the prevSkips. */ java.util.List getPrevSkipsList(); /** * repeated uint32 prevSkips = 4; * - * @return the prev skips count + * @return The count of prevSkips. */ int getPrevSkipsCount(); @@ -54,24 +57,22 @@ public interface InfoOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated uint32 prevSkips = 4; * * @param index - * the index - * - * @return the prev skip at the provided index + * The index of the element to return. + * @return The prevSkips at the given index. */ int getPrevSkips(int index); - // repeated uint32 score = 5; /** * repeated uint32 score = 5; * - * @return list of scores + * @return A list containing the score. */ java.util.List getScoreList(); /** * repeated uint32 score = 5; * - * @return the number of scores in the list + * @return The count of score. */ int getScoreCount(); @@ -79,24 +80,22 @@ public interface InfoOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated uint32 score = 5; * * @param index - * the index - * - * @return the score at the provided index + * The index of the element to return. + * @return The score at the given index. */ int getScore(int index); - // optional bool zeroOffsetMatch = 6 [default = true]; /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return if it has a zero offset + * @return Whether the zeroOffsetMatch field is set. */ boolean hasZeroOffsetMatch(); /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return the zero offset match + * @return The zeroOffsetMatch. */ boolean getZeroOffsetMatch(); } @@ -104,173 +103,53 @@ public interface InfoOrBuilder extends com.google.protobuf.MessageOrBuilder { /** * Protobuf type {@code datawave.ingest.protobuf.Info} */ - public static final class Info extends com.google.protobuf.GeneratedMessage implements InfoOrBuilder { + public static final class Info extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.ingest.protobuf.Info) + InfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use Info.newBuilder() to construct. - private Info(com.google.protobuf.GeneratedMessage.Builder builder) { + private Info(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Info(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - - private static final Info defaultInstance; - - public static Info getDefaultInstance() { - return defaultInstance; + private Info() { + termOffset_ = emptyIntList(); + prevSkips_ = emptyIntList(); + score_ = emptyIntList(); } - public Info getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Info(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Info(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - termOffset_ = new java.util.ArrayList<>(); - mutable_bitField0_ |= 0x00000001; - } - termOffset_.add(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - termOffset_ = new java.util.ArrayList<>(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - termOffset_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - prevSkips_ = new java.util.ArrayList<>(); - mutable_bitField0_ |= 0x00000002; - } - prevSkips_.add(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - prevSkips_ = new java.util.ArrayList<>(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - prevSkips_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - score_ = new java.util.ArrayList<>(); - mutable_bitField0_ |= 0x00000004; - } - score_.add(input.readUInt32()); - break; - } - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { - score_ = new java.util.ArrayList<>(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - score_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 48: { - bitField0_ |= 0x00000001; - zeroOffsetMatch_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - termOffset_ = java.util.Collections.unmodifiableList(termOffset_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - prevSkips_ = java.util.Collections.unmodifiableList(prevSkips_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - score_ = java.util.Collections.unmodifiableList(score_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.ingest.protobuf.TermWeight.internal_static_datawave_ingest_protobuf_Info_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.ingest.protobuf.TermWeight.internal_static_datawave_ingest_protobuf_Info_fieldAccessorTable.ensureFieldAccessorsInitialized( datawave.ingest.protobuf.TermWeight.Info.class, datawave.ingest.protobuf.TermWeight.Info.Builder.class); } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public Info parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Info(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; - // repeated uint32 termOffset = 3; public static final int TERMOFFSET_FIELD_NUMBER = 3; - private java.util.List termOffset_; + private com.google.protobuf.Internal.IntList termOffset_; /** * repeated uint32 termOffset = 3; * - * @return list of term offsets + * @return A list containing the termOffset. */ + @java.lang.Override public java.util.List getTermOffsetList() { return termOffset_; } @@ -278,7 +157,7 @@ public java.util.List getTermOffsetList() { /** * repeated uint32 termOffset = 3; * - * @return the term offset count + * @return The count of termOffset. */ public int getTermOffsetCount() { return termOffset_.size(); @@ -288,23 +167,24 @@ public int getTermOffsetCount() { * repeated uint32 termOffset = 3; * * @param index - * the index - * - * @return the term offset at the provided index + * The index of the element to return. + * @return The termOffset at the given index. */ public int getTermOffset(int index) { - return termOffset_.get(index); + return termOffset_.getInt(index); } - // repeated uint32 prevSkips = 4; + private int termOffsetMemoizedSerializedSize = -1; + public static final int PREVSKIPS_FIELD_NUMBER = 4; - private java.util.List prevSkips_; + private com.google.protobuf.Internal.IntList prevSkips_; /** * repeated uint32 prevSkips = 4; * - * @return the prev skips list + * @return A list containing the prevSkips. */ + @java.lang.Override public java.util.List getPrevSkipsList() { return prevSkips_; } @@ -312,7 +192,7 @@ public java.util.List getPrevSkipsList() { /** * repeated uint32 prevSkips = 4; * - * @return the prev scips count + * @return The count of prevSkips. */ public int getPrevSkipsCount() { return prevSkips_.size(); @@ -322,21 +202,24 @@ public int getPrevSkipsCount() { * repeated uint32 prevSkips = 4; * * @param index - * the index - * - * @return the prev skip at the provided index + * The index of the element to return. + * @return The prevSkips at the given index. */ public int getPrevSkips(int index) { - return prevSkips_.get(index); + return prevSkips_.getInt(index); } - // repeated uint32 score = 5; + private int prevSkipsMemoizedSerializedSize = -1; + public static final int SCORE_FIELD_NUMBER = 5; - private java.util.List score_; + private com.google.protobuf.Internal.IntList score_; /** * repeated uint32 score = 5; + * + * @return A list containing the score. */ + @java.lang.Override public java.util.List getScoreList() { return score_; } @@ -344,7 +227,7 @@ public java.util.List getScoreList() { /** * repeated uint32 score = 5; * - * @return the size of the score list + * @return The count of score. */ public int getScoreCount() { return score_.size(); @@ -354,75 +237,85 @@ public int getScoreCount() { * repeated uint32 score = 5; * * @param index - * the index - * - * @return the score at the provided index + * The index of the element to return. + * @return The score at the given index. */ public int getScore(int index) { - return score_.get(index); + return score_.getInt(index); } - // optional bool zeroOffsetMatch = 6 [default = true]; + private int scoreMemoizedSerializedSize = -1; + public static final int ZEROOFFSETMATCH_FIELD_NUMBER = 6; private boolean zeroOffsetMatch_; /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return if it has a zero offset + * @return Whether the zeroOffsetMatch field is set. */ + @java.lang.Override public boolean hasZeroOffsetMatch() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return the zero offset match + * @return The zeroOffsetMatch. */ + @java.lang.Override public boolean getZeroOffsetMatch() { return zeroOffsetMatch_; } - private void initFields() { - termOffset_ = java.util.Collections.emptyList(); - prevSkips_ = java.util.Collections.emptyList(); - score_ = java.util.Collections.emptyList(); - zeroOffsetMatch_ = true; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); + if (getTermOffsetList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(termOffsetMemoizedSerializedSize); + } for (int i = 0; i < termOffset_.size(); i++) { - output.writeUInt32(3, termOffset_.get(i)); + output.writeUInt32NoTag(termOffset_.getInt(i)); + } + if (getPrevSkipsList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(prevSkipsMemoizedSerializedSize); } for (int i = 0; i < prevSkips_.size(); i++) { - output.writeUInt32(4, prevSkips_.get(i)); + output.writeUInt32NoTag(prevSkips_.getInt(i)); + } + if (getScoreList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(scoreMemoizedSerializedSize); } for (int i = 0; i < score_.size(); i++) { - output.writeUInt32(5, score_.get(i)); + output.writeUInt32NoTag(score_.getInt(i)); } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(6, zeroOffsetMatch_); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; @@ -430,40 +323,109 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < termOffset_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(termOffset_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(termOffset_.getInt(i)); } size += dataSize; - size += 1 * getTermOffsetList().size(); + if (!getTermOffsetList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + termOffsetMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < prevSkips_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(prevSkips_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(prevSkips_.getInt(i)); } size += dataSize; - size += 1 * getPrevSkipsList().size(); + if (!getPrevSkipsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + prevSkipsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < score_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(score_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(score_.getInt(i)); } size += dataSize; - size += 1 * getScoreList().size(); + if (!getScoreList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + scoreMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, zeroOffsetMatch_); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.ingest.protobuf.TermWeight.Info)) { + return super.equals(obj); + } + datawave.ingest.protobuf.TermWeight.Info other = (datawave.ingest.protobuf.TermWeight.Info) obj; + + if (!getTermOffsetList().equals(other.getTermOffsetList())) + return false; + if (!getPrevSkipsList().equals(other.getPrevSkipsList())) + return false; + if (!getScoreList().equals(other.getScoreList())) + return false; + if (hasZeroOffsetMatch() != other.hasZeroOffsetMatch()) + return false; + if (hasZeroOffsetMatch()) { + if (getZeroOffsetMatch() != other.getZeroOffsetMatch()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTermOffsetCount() > 0) { + hash = (37 * hash) + TERMOFFSET_FIELD_NUMBER; + hash = (53 * hash) + getTermOffsetList().hashCode(); + } + if (getPrevSkipsCount() > 0) { + hash = (37 * hash) + PREVSKIPS_FIELD_NUMBER; + hash = (53 * hash) + getPrevSkipsList().hashCode(); + } + if (getScoreCount() > 0) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + getScoreList().hashCode(); + } + if (hasZeroOffsetMatch()) { + hash = (37 * hash) + ZEROOFFSETMATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getZeroOffsetMatch()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.ingest.protobuf.TermWeight.Info parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.ingest.protobuf.TermWeight.Info parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.ingest.protobuf.TermWeight.Info parseFrom(com.google.protobuf.ByteString data) @@ -486,110 +448,107 @@ public static datawave.ingest.protobuf.TermWeight.Info parseFrom(byte[] data, co } public static datawave.ingest.protobuf.TermWeight.Info parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.ingest.protobuf.TermWeight.Info parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.ingest.protobuf.TermWeight.Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.ingest.protobuf.TermWeight.Info parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.ingest.protobuf.TermWeight.Info parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.ingest.protobuf.TermWeight.Info parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.ingest.protobuf.TermWeight.Info prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - return new Builder(parent); + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code datawave.ingest.protobuf.Info} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements datawave.ingest.protobuf.TermWeight.InfoOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.ingest.protobuf.Info) + datawave.ingest.protobuf.TermWeight.InfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.ingest.protobuf.TermWeight.internal_static_datawave_ingest_protobuf_Info_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.ingest.protobuf.TermWeight.internal_static_datawave_ingest_protobuf_Info_fieldAccessorTable.ensureFieldAccessorsInitialized( datawave.ingest.protobuf.TermWeight.Info.class, datawave.ingest.protobuf.TermWeight.Info.Builder.class); } // Construct using datawave.ingest.protobuf.TermWeight.Info.newBuilder() private Builder() { - maybeForceBuilderInitialization(); - } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); - termOffset_ = java.util.Collections.emptyList(); + termOffset_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); - prevSkips_ = java.util.Collections.emptyList(); + prevSkips_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); - score_ = java.util.Collections.emptyList(); + score_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); - zeroOffsetMatch_ = true; + zeroOffsetMatch_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datawave.ingest.protobuf.TermWeight.internal_static_datawave_ingest_protobuf_Info_descriptor; } + @java.lang.Override public datawave.ingest.protobuf.TermWeight.Info getDefaultInstanceForType() { return datawave.ingest.protobuf.TermWeight.Info.getDefaultInstance(); } + @java.lang.Override public datawave.ingest.protobuf.TermWeight.Info build() { datawave.ingest.protobuf.TermWeight.Info result = buildPartial(); if (!result.isInitialized()) { @@ -598,34 +557,66 @@ public datawave.ingest.protobuf.TermWeight.Info build() { return result; } + @java.lang.Override public datawave.ingest.protobuf.TermWeight.Info buildPartial() { datawave.ingest.protobuf.TermWeight.Info result = new datawave.ingest.protobuf.TermWeight.Info(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - termOffset_ = java.util.Collections.unmodifiableList(termOffset_); + if (((bitField0_ & 0x00000001) != 0)) { + termOffset_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.termOffset_ = termOffset_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - prevSkips_ = java.util.Collections.unmodifiableList(prevSkips_); + if (((bitField0_ & 0x00000002) != 0)) { + prevSkips_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.prevSkips_ = prevSkips_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - score_ = java.util.Collections.unmodifiableList(score_); + if (((bitField0_ & 0x00000004) != 0)) { + score_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.score_ = score_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zeroOffsetMatch_ = zeroOffsetMatch_; to_bitField0_ |= 0x00000001; } - result.zeroOffsetMatch_ = zeroOffsetMatch_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } + @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 datawave.ingest.protobuf.TermWeight.Info) { return mergeFrom((datawave.ingest.protobuf.TermWeight.Info) other); @@ -672,37 +663,105 @@ public Builder mergeFrom(datawave.ingest.protobuf.TermWeight.Info other) { setZeroOffsetMatch(other.getZeroOffsetMatch()); } 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 { - datawave.ingest.protobuf.TermWeight.Info parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: { + int v = input.readUInt32(); + ensureTermOffsetIsMutable(); + termOffset_.addInt(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureTermOffsetIsMutable(); + while (input.getBytesUntilLimit() > 0) { + termOffset_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 26 + case 32: { + int v = input.readUInt32(); + ensurePrevSkipsIsMutable(); + prevSkips_.addInt(v); + break; + } // case 32 + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePrevSkipsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + prevSkips_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 34 + case 40: { + int v = input.readUInt32(); + ensureScoreIsMutable(); + score_.addInt(v); + break; + } // case 40 + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureScoreIsMutable(); + while (input.getBytesUntilLimit() > 0) { + score_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: { + zeroOffsetMatch_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.ingest.protobuf.TermWeight.Info) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // repeated uint32 termOffset = 3; - private java.util.List termOffset_ = java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList termOffset_ = emptyIntList(); private void ensureTermOffsetIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - termOffset_ = new java.util.ArrayList<>(termOffset_); + if (!((bitField0_ & 0x00000001) != 0)) { + termOffset_ = mutableCopy(termOffset_); bitField0_ |= 0x00000001; } } @@ -710,16 +769,16 @@ private void ensureTermOffsetIsMutable() { /** * repeated uint32 termOffset = 3; * - * @return list of term offsets + * @return A list containing the termOffset. */ public java.util.List getTermOffsetList() { - return java.util.Collections.unmodifiableList(termOffset_); + return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(termOffset_) : termOffset_; } /** * repeated uint32 termOffset = 3; * - * @return the number of term offsets in the least + * @return The count of termOffset. */ public int getTermOffsetCount() { return termOffset_.size(); @@ -729,27 +788,25 @@ public int getTermOffsetCount() { * repeated uint32 termOffset = 3; * * @param index - * the index - * - * @return the term offset at the provided index + * The index of the element to return. + * @return The termOffset at the given index. */ public int getTermOffset(int index) { - return termOffset_.get(index); + return termOffset_.getInt(index); } /** * repeated uint32 termOffset = 3; * * @param index - * the index + * The index to set the value at. * @param value - * the new term offset - * - * @return builder to set term offset at provided index + * The termOffset to set. + * @return This builder for chaining. */ public Builder setTermOffset(int index, int value) { ensureTermOffsetIsMutable(); - termOffset_.set(index, value); + termOffset_.setInt(index, value); onChanged(); return this; } @@ -758,13 +815,12 @@ public Builder setTermOffset(int index, int value) { * repeated uint32 termOffset = 3; * * @param value - * the new term offset - * - * @return builder to add new term offset provided + * The termOffset to add. + * @return This builder for chaining. */ public Builder addTermOffset(int value) { ensureTermOffsetIsMutable(); - termOffset_.add(value); + termOffset_.addInt(value); onChanged(); return this; } @@ -773,13 +829,12 @@ public Builder addTermOffset(int value) { * repeated uint32 termOffset = 3; * * @param values - * iterable of term offsets to add to the list - * - * @return builder to add term offsets provided + * The termOffset to add. + * @return This builder for chaining. */ public Builder addAllTermOffset(java.lang.Iterable values) { ensureTermOffsetIsMutable(); - super.addAll(values, termOffset_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, termOffset_); onChanged(); return this; } @@ -787,21 +842,20 @@ public Builder addAllTermOffset(java.lang.Iterable /** * repeated uint32 termOffset = 3; * - * @return builder to clear term offsets + * @return This builder for chaining. */ public Builder clearTermOffset() { - termOffset_ = java.util.Collections.emptyList(); + termOffset_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } - // repeated uint32 prevSkips = 4; - private java.util.List prevSkips_ = java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList prevSkips_ = emptyIntList(); private void ensurePrevSkipsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - prevSkips_ = new java.util.ArrayList<>(prevSkips_); + if (!((bitField0_ & 0x00000002) != 0)) { + prevSkips_ = mutableCopy(prevSkips_); bitField0_ |= 0x00000002; } } @@ -809,16 +863,16 @@ private void ensurePrevSkipsIsMutable() { /** * repeated uint32 prevSkips = 4; * - * @return the prev skip list + * @return A list containing the prevSkips. */ public java.util.List getPrevSkipsList() { - return java.util.Collections.unmodifiableList(prevSkips_); + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(prevSkips_) : prevSkips_; } /** * repeated uint32 prevSkips = 4; * - * @return the number of items in the prev skip list + * @return The count of prevSkips. */ public int getPrevSkipsCount() { return prevSkips_.size(); @@ -828,27 +882,25 @@ public int getPrevSkipsCount() { * repeated uint32 prevSkips = 4; * * @param index - * the index - * - * @return the prev skip at the provided index + * The index of the element to return. + * @return The prevSkips at the given index. */ public int getPrevSkips(int index) { - return prevSkips_.get(index); + return prevSkips_.getInt(index); } /** * repeated uint32 prevSkips = 4; * * @param index - * the index + * The index to set the value at. * @param value - * new prev skip value - * - * @return builder to set the prev skips value at the provided index + * The prevSkips to set. + * @return This builder for chaining. */ public Builder setPrevSkips(int index, int value) { ensurePrevSkipsIsMutable(); - prevSkips_.set(index, value); + prevSkips_.setInt(index, value); onChanged(); return this; } @@ -857,13 +909,12 @@ public Builder setPrevSkips(int index, int value) { * repeated uint32 prevSkips = 4; * * @param value - * new prev skips value to add - * - * @return builder to add a prev skips value + * The prevSkips to add. + * @return This builder for chaining. */ public Builder addPrevSkips(int value) { ensurePrevSkipsIsMutable(); - prevSkips_.add(value); + prevSkips_.addInt(value); onChanged(); return this; } @@ -872,13 +923,12 @@ public Builder addPrevSkips(int value) { * repeated uint32 prevSkips = 4; * * @param values - * iterable of perv skips to add - * - * @return builder to add iterable of values + * The prevSkips to add. + * @return This builder for chaining. */ public Builder addAllPrevSkips(java.lang.Iterable values) { ensurePrevSkipsIsMutable(); - super.addAll(values, prevSkips_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prevSkips_); onChanged(); return this; } @@ -886,21 +936,20 @@ public Builder addAllPrevSkips(java.lang.Iterable v /** * repeated uint32 prevSkips = 4; * - * @return builder to clear prev skips + * @return This builder for chaining. */ public Builder clearPrevSkips() { - prevSkips_ = java.util.Collections.emptyList(); + prevSkips_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } - // repeated uint32 score = 5; - private java.util.List score_ = java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList score_ = emptyIntList(); private void ensureScoreIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - score_ = new java.util.ArrayList<>(score_); + if (!((bitField0_ & 0x00000004) != 0)) { + score_ = mutableCopy(score_); bitField0_ |= 0x00000004; } } @@ -908,14 +957,16 @@ private void ensureScoreIsMutable() { /** * repeated uint32 score = 5; * - * @return list of scores + * @return A list containing the score. */ public java.util.List getScoreList() { - return java.util.Collections.unmodifiableList(score_); + return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(score_) : score_; } /** * repeated uint32 score = 5; + * + * @return The count of score. */ public int getScoreCount() { return score_.size(); @@ -925,27 +976,25 @@ public int getScoreCount() { * repeated uint32 score = 5; * * @param index - * the index - * - * @return the score at the provided index + * The index of the element to return. + * @return The score at the given index. */ public int getScore(int index) { - return score_.get(index); + return score_.getInt(index); } /** * repeated uint32 score = 5; * * @param index - * the index + * The index to set the value at. * @param value - * the new score value - * - * @return builder to set the score at the provided index + * The score to set. + * @return This builder for chaining. */ public Builder setScore(int index, int value) { ensureScoreIsMutable(); - score_.set(index, value); + score_.setInt(index, value); onChanged(); return this; } @@ -954,13 +1003,12 @@ public Builder setScore(int index, int value) { * repeated uint32 score = 5; * * @param value - * the score to add - * - * @return return a builder to add the provided score + * The score to add. + * @return This builder for chaining. */ public Builder addScore(int value) { ensureScoreIsMutable(); - score_.add(value); + score_.addInt(value); onChanged(); return this; } @@ -969,13 +1017,12 @@ public Builder addScore(int value) { * repeated uint32 score = 5; * * @param values - * iterable of scores to add - * - * @return builder to add the iterable of scores provided + * The score to add. + * @return This builder for chaining. */ public Builder addAllScore(java.lang.Iterable values) { ensureScoreIsMutable(); - super.addAll(values, score_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, score_); onChanged(); return this; } @@ -983,43 +1030,43 @@ public Builder addAllScore(java.lang.Iterable value /** * repeated uint32 score = 5; * - * @return builder to clear the scores + * @return This builder for chaining. */ public Builder clearScore() { - score_ = java.util.Collections.emptyList(); + score_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } - // optional bool zeroOffsetMatch = 6 [default = true]; - private boolean zeroOffsetMatch_ = true; + private boolean zeroOffsetMatch_; /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return if it has zero offset match + * @return Whether the zeroOffsetMatch field is set. */ + @java.lang.Override public boolean hasZeroOffsetMatch() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return the zero offset match + * @return The zeroOffsetMatch. */ + @java.lang.Override public boolean getZeroOffsetMatch() { return zeroOffsetMatch_; } /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * * @param value - * zero offset match value - * - * @return builder to set the zero offset match + * The zeroOffsetMatch to set. + * @return This builder for chaining. */ public Builder setZeroOffsetMatch(boolean value) { bitField0_ |= 0x00000008; @@ -1029,30 +1076,76 @@ public Builder setZeroOffsetMatch(boolean value) { } /** - * optional bool zeroOffsetMatch = 6 [default = true]; + * bool zeroOffsetMatch = 6; * - * @return builder to clear zero offset match + * @return This builder for chaining. */ public Builder clearZeroOffsetMatch() { bitField0_ = (bitField0_ & ~0x00000008); - zeroOffsetMatch_ = true; + zeroOffsetMatch_ = false; onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.ingest.protobuf.Info) } + // @@protoc_insertion_point(class_scope:datawave.ingest.protobuf.Info) + private static final datawave.ingest.protobuf.TermWeight.Info DEFAULT_INSTANCE; static { - defaultInstance = new Info(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.ingest.protobuf.TermWeight.Info(); + } + + public static datawave.ingest.protobuf.TermWeight.Info getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Info 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 datawave.ingest.protobuf.TermWeight.Info getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.ingest.protobuf.Info) } - private static com.google.protobuf.Descriptors.Descriptor internal_static_datawave_ingest_protobuf_Info_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_datawave_ingest_protobuf_Info_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_ingest_protobuf_Info_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_ingest_protobuf_Info_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -1060,22 +1153,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - java.lang.String[] descriptorData = { - "\n\020TermWeight.proto\022\030datawave.ingest.prot" + "obuf\"[\n\004Info\022\022\n\ntermOffset\030\003 \003(\r\022\021\n\tprev" - + "Skips\030\004 \003(\r\022\r\n\005score\030\005 \003(\r\022\035\n\017zeroOffset" - + "Match\030\006 \001(\010:\004trueB\034\n\030datawave.ingest.pro" + "tobufH\001"}; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_datawave_ingest_protobuf_Info_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_datawave_ingest_protobuf_Info_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_datawave_ingest_protobuf_Info_descriptor, - new java.lang.String[] {"TermOffset", "PrevSkips", "Score", "ZeroOffsetMatch",}); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, - assigner); + java.lang.String[] descriptorData = {"\n\020TermWeight.proto\022\030datawave.ingest.prot" + + "obuf\"n\n\004Info\022\022\n\ntermOffset\030\003 \003(\r\022\021\n\tprev" + + "Skips\030\004 \003(\r\022\r\n\005score\030\005 \003(\r\022\034\n\017zeroOffset" + + "Match\030\006 \001(\010H\000\210\001\001B\022\n\020_zeroOffsetMatchB\034\n\030" + "datawave.ingest.protobufH\001b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_datawave_ingest_protobuf_Info_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_ingest_protobuf_Info_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_ingest_protobuf_Info_descriptor, + new java.lang.String[] {"TermOffset", "PrevSkips", "Score", "ZeroOffsetMatch", "ZeroOffsetMatch",}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/warehouse/core/src/main/java/datawave/ingest/protobuf/Uid.java b/warehouse/core/src/main/java/datawave/ingest/protobuf/Uid.java index d1c3e42f2be..f8d66fb370c 100644 --- a/warehouse/core/src/main/java/datawave/ingest/protobuf/Uid.java +++ b/warehouse/core/src/main/java/datawave/ingest/protobuf/Uid.java @@ -6,52 +6,41 @@ public final class Uid { private Uid() {} - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {} + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - public interface ListOrBuilder extends com.google.protobuf.MessageOrBuilder { + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } - // required bool IGNORE = 1; - /** - * required bool IGNORE = 1; - * - * @return if it has IGNORE - */ - boolean hasIGNORE(); + public interface ListOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.ingest.protobuf.List) + com.google.protobuf.MessageOrBuilder { /** - * required bool IGNORE = 1; + * bool IGNORE = 1; * - * @return IGNORE flag + * @return The iGNORE. */ boolean getIGNORE(); - // required uint64 COUNT = 2; /** - * required uint64 COUNT = 2; + * uint64 COUNT = 2; * - * @return if it has COUNT - */ - boolean hasCOUNT(); - - /** - * required uint64 COUNT = 2; - * - * @return the COUNT + * @return The cOUNT. */ long getCOUNT(); - // repeated string UID = 3; /** * repeated string UID = 3; * - * @return list of UIDs + * @return A list containing the uID. */ java.util.List getUIDList(); /** * repeated string UID = 3; * - * @return the number of UIDs in the list + * @return The count of uID. */ int getUIDCount(); @@ -59,9 +48,8 @@ public interface ListOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated string UID = 3; * * @param index - * the index - * - * @return the UID at the provided index + * The index of the element to return. + * @return The uID at the given index. */ java.lang.String getUID(int index); @@ -69,24 +57,22 @@ public interface ListOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated string UID = 3; * * @param index - * the index - * - * @return uid byte string + * The index of the value to return. + * @return The bytes of the uID at the given index. */ com.google.protobuf.ByteString getUIDBytes(int index); - // repeated string REMOVEDUID = 4; /** * repeated string REMOVEDUID = 4; * - * @return list of removed uids + * @return A list containing the rEMOVEDUID. */ java.util.List getREMOVEDUIDList(); /** * repeated string REMOVEDUID = 4; * - * @return number of removed uids in the list + * @return The count of rEMOVEDUID. */ int getREMOVEDUIDCount(); @@ -94,9 +80,8 @@ public interface ListOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated string REMOVEDUID = 4; * * @param index - * the index - * - * @return the removed uid at the provided index + * The index of the element to return. + * @return The rEMOVEDUID at the given index. */ java.lang.String getREMOVEDUID(int index); @@ -104,9 +89,8 @@ public interface ListOrBuilder extends com.google.protobuf.MessageOrBuilder { * repeated string REMOVEDUID = 4; * * @param index - * the index - * - * @return removed uid byte string at the provided index + * The index of the value to return. + * @return The bytes of the rEMOVEDUID at the given index. */ com.google.protobuf.ByteString getREMOVEDUIDBytes(int index); } @@ -114,180 +98,84 @@ public interface ListOrBuilder extends com.google.protobuf.MessageOrBuilder { /** * Protobuf type {@code datawave.ingest.protobuf.List} */ - public static final class List extends com.google.protobuf.GeneratedMessage implements ListOrBuilder { + public static final class List extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.ingest.protobuf.List) + ListOrBuilder { + private static final long serialVersionUID = 0L; + // Use List.newBuilder() to construct. - private List(com.google.protobuf.GeneratedMessage.Builder builder) { + private List(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - - private List(boolean noInit) { - this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final List defaultInstance; - - public static List getDefaultInstance() { - return defaultInstance; + private List() { + uID_ = com.google.protobuf.LazyStringArrayList.EMPTY; + rEMOVEDUID_ = com.google.protobuf.LazyStringArrayList.EMPTY; } - public List getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new List(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private List(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - iGNORE_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - cOUNT_ = input.readUInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - uID_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - uID_.add(input.readBytes()); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - rEMOVEDUID_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - rEMOVEDUID_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - uID_ = new com.google.protobuf.UnmodifiableLazyStringList(uID_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - rEMOVEDUID_ = new com.google.protobuf.UnmodifiableLazyStringList(rEMOVEDUID_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.ingest.protobuf.Uid.internal_static_datawave_ingest_protobuf_List_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.ingest.protobuf.Uid.internal_static_datawave_ingest_protobuf_List_fieldAccessorTable .ensureFieldAccessorsInitialized(datawave.ingest.protobuf.Uid.List.class, datawave.ingest.protobuf.Uid.List.Builder.class); } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public List parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new List(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required bool IGNORE = 1; public static final int IGNORE_FIELD_NUMBER = 1; private boolean iGNORE_; /** - * required bool IGNORE = 1; - * - * @return if it has IGNORE - */ - public boolean hasIGNORE() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required bool IGNORE = 1; + * bool IGNORE = 1; * - * @return IGNORE flag + * @return The iGNORE. */ + @java.lang.Override public boolean getIGNORE() { return iGNORE_; } - // required uint64 COUNT = 2; public static final int COUNT_FIELD_NUMBER = 2; private long cOUNT_; /** - * required uint64 COUNT = 2; + * uint64 COUNT = 2; * - * @return if it has COUNT - */ - public boolean hasCOUNT() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - * required uint64 COUNT = 2; - * - * @return the COUNT + * @return The cOUNT. */ + @java.lang.Override public long getCOUNT() { return cOUNT_; } - // repeated string UID = 3; public static final int UID_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList uID_; /** * repeated string UID = 3; * - * @return the uid list + * @return A list containing the uID. */ - public java.util.List getUIDList() { + public com.google.protobuf.ProtocolStringList getUIDList() { return uID_; } /** * repeated string UID = 3; * - * @return the uid count + * @return The count of uID. */ public int getUIDCount() { return uID_.size(); @@ -297,9 +185,8 @@ public int getUIDCount() { * repeated string UID = 3; * * @param index - * the index - * - * @return the uid at the provided index + * The index of the element to return. + * @return The uID at the given index. */ public java.lang.String getUID(int index) { return uID_.get(index); @@ -309,31 +196,29 @@ public java.lang.String getUID(int index) { * repeated string UID = 3; * * @param index - * the index - * - * @return the uid byte string at the provided index + * The index of the value to return. + * @return The bytes of the uID at the given index. */ public com.google.protobuf.ByteString getUIDBytes(int index) { return uID_.getByteString(index); } - // repeated string REMOVEDUID = 4; public static final int REMOVEDUID_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList rEMOVEDUID_; /** * repeated string REMOVEDUID = 4; * - * @return list of removed uids + * @return A list containing the rEMOVEDUID. */ - public java.util.List getREMOVEDUIDList() { + public com.google.protobuf.ProtocolStringList getREMOVEDUIDList() { return rEMOVEDUID_; } /** * repeated string REMOVEDUID = 4; * - * @return the size of the removed uid list + * @return The count of rEMOVEDUID. */ public int getREMOVEDUIDCount() { return rEMOVEDUID_.size(); @@ -343,9 +228,8 @@ public int getREMOVEDUIDCount() { * repeated string REMOVEDUID = 4; * * @param index - * the index - * - * @return removed uid at the provided index + * The index of the element to return. + * @return The rEMOVEDUID at the given index. */ public java.lang.String getREMOVEDUID(int index) { return rEMOVEDUID_.get(index); @@ -355,75 +239,61 @@ public java.lang.String getREMOVEDUID(int index) { * repeated string REMOVEDUID = 4; * * @param index - * the index - * - * @return removed uid byte string at provided index + * The index of the value to return. + * @return The bytes of the rEMOVEDUID at the given index. */ public com.google.protobuf.ByteString getREMOVEDUIDBytes(int index) { return rEMOVEDUID_.getByteString(index); } - private void initFields() { - iGNORE_ = false; - cOUNT_ = 0L; - uID_ = com.google.protobuf.LazyStringArrayList.EMPTY; - rEMOVEDUID_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasIGNORE()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasCOUNT()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (iGNORE_ != false) { output.writeBool(1, iGNORE_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (cOUNT_ != 0L) { output.writeUInt64(2, cOUNT_); } for (int i = 0; i < uID_.size(); i++) { - output.writeBytes(3, uID_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uID_.getRaw(i)); } for (int i = 0; i < rEMOVEDUID_.size(); i++) { - output.writeBytes(4, rEMOVEDUID_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rEMOVEDUID_.getRaw(i)); } getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (iGNORE_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, iGNORE_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (cOUNT_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, cOUNT_); } { int dataSize = 0; for (int i = 0; i < uID_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(uID_.getByteString(i)); + dataSize += computeStringSizeNoTag(uID_.getRaw(i)); } size += dataSize; size += 1 * getUIDList().size(); @@ -431,21 +301,70 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < rEMOVEDUID_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(rEMOVEDUID_.getByteString(i)); + dataSize += computeStringSizeNoTag(rEMOVEDUID_.getRaw(i)); } size += dataSize; size += 1 * getREMOVEDUIDList().size(); } size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.ingest.protobuf.Uid.List)) { + return super.equals(obj); + } + datawave.ingest.protobuf.Uid.List other = (datawave.ingest.protobuf.Uid.List) obj; + + if (getIGNORE() != other.getIGNORE()) + return false; + if (getCOUNT() != other.getCOUNT()) + return false; + if (!getUIDList().equals(other.getUIDList())) + return false; + if (!getREMOVEDUIDList().equals(other.getREMOVEDUIDList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IGNORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIGNORE()); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCOUNT()); + if (getUIDCount() > 0) { + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUIDList().hashCode(); + } + if (getREMOVEDUIDCount() > 0) { + hash = (37 * hash) + REMOVEDUID_FIELD_NUMBER; + hash = (53 * hash) + getREMOVEDUIDList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.ingest.protobuf.Uid.List parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.ingest.protobuf.Uid.List parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.ingest.protobuf.Uid.List parseFrom(com.google.protobuf.ByteString data) @@ -468,50 +387,52 @@ public static datawave.ingest.protobuf.Uid.List parseFrom(byte[] data, com.googl } public static datawave.ingest.protobuf.Uid.List parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.ingest.protobuf.Uid.List parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.ingest.protobuf.Uid.List parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.ingest.protobuf.Uid.List parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.ingest.protobuf.Uid.List parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.ingest.protobuf.Uid.List parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.ingest.protobuf.Uid.List prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -519,59 +440,54 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder /** * Protobuf type {@code datawave.ingest.protobuf.List} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements datawave.ingest.protobuf.Uid.ListOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.ingest.protobuf.List) + datawave.ingest.protobuf.Uid.ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datawave.ingest.protobuf.Uid.internal_static_datawave_ingest_protobuf_List_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datawave.ingest.protobuf.Uid.internal_static_datawave_ingest_protobuf_List_fieldAccessorTable .ensureFieldAccessorsInitialized(datawave.ingest.protobuf.Uid.List.class, datawave.ingest.protobuf.Uid.List.Builder.class); } // Construct using datawave.ingest.protobuf.Uid.List.newBuilder() private Builder() { - maybeForceBuilderInitialization(); - } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {} - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); iGNORE_ = false; - bitField0_ = (bitField0_ & ~0x00000001); + cOUNT_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); + uID_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); rEMOVEDUID_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datawave.ingest.protobuf.Uid.internal_static_datawave_ingest_protobuf_List_descriptor; } + @java.lang.Override public datawave.ingest.protobuf.Uid.List getDefaultInstanceForType() { return datawave.ingest.protobuf.Uid.List.getDefaultInstance(); } + @java.lang.Override public datawave.ingest.protobuf.Uid.List build() { datawave.ingest.protobuf.Uid.List result = buildPartial(); if (!result.isInitialized()) { @@ -580,33 +496,57 @@ public datawave.ingest.protobuf.Uid.List build() { return result; } + @java.lang.Override public datawave.ingest.protobuf.Uid.List buildPartial() { datawave.ingest.protobuf.Uid.List result = new datawave.ingest.protobuf.Uid.List(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.iGNORE_ = iGNORE_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } result.cOUNT_ = cOUNT_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - uID_ = new com.google.protobuf.UnmodifiableLazyStringList(uID_); - bitField0_ = (bitField0_ & ~0x00000004); + if (((bitField0_ & 0x00000001) != 0)) { + uID_ = uID_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); } result.uID_ = uID_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - rEMOVEDUID_ = new com.google.protobuf.UnmodifiableLazyStringList(rEMOVEDUID_); - bitField0_ = (bitField0_ & ~0x00000008); + if (((bitField0_ & 0x00000002) != 0)) { + rEMOVEDUID_ = rEMOVEDUID_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); } result.rEMOVEDUID_ = rEMOVEDUID_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } + @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 datawave.ingest.protobuf.Uid.List) { return mergeFrom((datawave.ingest.protobuf.Uid.List) other); @@ -619,16 +559,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(datawave.ingest.protobuf.Uid.List other) { if (other == datawave.ingest.protobuf.Uid.List.getDefaultInstance()) return this; - if (other.hasIGNORE()) { + if (other.getIGNORE() != false) { setIGNORE(other.getIGNORE()); } - if (other.hasCOUNT()) { + if (other.getCOUNT() != 0L) { setCOUNT(other.getCOUNT()); } if (!other.uID_.isEmpty()) { if (uID_.isEmpty()) { uID_ = other.uID_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUIDIsMutable(); uID_.addAll(other.uID_); @@ -638,7 +578,7 @@ public Builder mergeFrom(datawave.ingest.protobuf.Uid.List other) { if (!other.rEMOVEDUID_.isEmpty()) { if (rEMOVEDUID_.isEmpty()) { rEMOVEDUID_ = other.rEMOVEDUID_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureREMOVEDUIDIsMutable(); rEMOVEDUID_.addAll(other.rEMOVEDUID_); @@ -646,158 +586,167 @@ public Builder mergeFrom(datawave.ingest.protobuf.Uid.List other) { onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasIGNORE()) { - - return false; - } - if (!hasCOUNT()) { - - return false; - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.ingest.protobuf.Uid.List parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + iGNORE_ = input.readBool(); + + break; + } // case 8 + case 16: { + cOUNT_ = input.readUInt64(); + + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUIDIsMutable(); + uID_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureREMOVEDUIDIsMutable(); + rEMOVEDUID_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.ingest.protobuf.Uid.List) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // required bool IGNORE = 1; private boolean iGNORE_; /** - * required bool IGNORE = 1; - * - * @return if it has INGORE flag - */ - public boolean hasIGNORE() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required bool IGNORE = 1; + * bool IGNORE = 1; * - * @return the IGNORE flag + * @return The iGNORE. */ + @java.lang.Override public boolean getIGNORE() { return iGNORE_; } /** - * required bool IGNORE = 1; + * bool IGNORE = 1; * * @param value - * the IGNORE value - * - * @return builder to set IGNORE flag to provided value + * The iGNORE to set. + * @return This builder for chaining. */ public Builder setIGNORE(boolean value) { - bitField0_ |= 0x00000001; + iGNORE_ = value; onChanged(); return this; } /** - * required bool IGNORE = 1; + * bool IGNORE = 1; * - * @return builder to clear IGNORE flag + * @return This builder for chaining. */ public Builder clearIGNORE() { - bitField0_ = (bitField0_ & ~0x00000001); + iGNORE_ = false; onChanged(); return this; } - // required uint64 COUNT = 2; private long cOUNT_; /** - * required uint64 COUNT = 2; - * - * @return if it has COUNT set - */ - public boolean hasCOUNT() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - * required uint64 COUNT = 2; + * uint64 COUNT = 2; * - * @return the COUNT + * @return The cOUNT. */ + @java.lang.Override public long getCOUNT() { return cOUNT_; } /** - * required uint64 COUNT = 2; + * uint64 COUNT = 2; * * @param value - * the new COUNT value - * - * @return builder to set COUNT to provided value + * The cOUNT to set. + * @return This builder for chaining. */ public Builder setCOUNT(long value) { - bitField0_ |= 0x00000002; + cOUNT_ = value; onChanged(); return this; } /** - * required uint64 COUNT = 2; + * uint64 COUNT = 2; * - * @return builder to clear the COUNT + * @return This builder for chaining. */ public Builder clearCOUNT() { - bitField0_ = (bitField0_ & ~0x00000002); + cOUNT_ = 0L; onChanged(); return this; } - // repeated string UID = 3; private com.google.protobuf.LazyStringList uID_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUIDIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000001) != 0)) { uID_ = new com.google.protobuf.LazyStringArrayList(uID_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** * repeated string UID = 3; * - * @return the uid list + * @return A list containing the uID. */ - public java.util.List getUIDList() { - return java.util.Collections.unmodifiableList(uID_); + public com.google.protobuf.ProtocolStringList getUIDList() { + return uID_.getUnmodifiableView(); } /** * repeated string UID = 3; * - * @return the uid list size + * @return The count of uID. */ public int getUIDCount() { return uID_.size(); @@ -807,9 +756,8 @@ public int getUIDCount() { * repeated string UID = 3; * * @param index - * the index - * - * @return the uid at the provided index + * The index of the element to return. + * @return The uID at the given index. */ public java.lang.String getUID(int index) { return uID_.get(index); @@ -819,9 +767,8 @@ public java.lang.String getUID(int index) { * repeated string UID = 3; * * @param index - * the index - * - * @return uid byte string at the provided index + * The index of the value to return. + * @return The bytes of the uID at the given index. */ public com.google.protobuf.ByteString getUIDBytes(int index) { return uID_.getByteString(index); @@ -831,11 +778,10 @@ public com.google.protobuf.ByteString getUIDBytes(int index) { * repeated string UID = 3; * * @param index - * the index + * The index to set the value at. * @param value - * the new uid value - * - * @return builder to set the uid at the proved index + * The uID to set. + * @return This builder for chaining. */ public Builder setUID(int index, java.lang.String value) { if (value == null) { @@ -851,9 +797,8 @@ public Builder setUID(int index, java.lang.String value) { * repeated string UID = 3; * * @param value - * the new uid to add to the list - * - * @return builder to add the provided uid + * The uID to add. + * @return This builder for chaining. */ public Builder addUID(java.lang.String value) { if (value == null) { @@ -869,13 +814,12 @@ public Builder addUID(java.lang.String value) { * repeated string UID = 3; * * @param values - * iterable of uids to add to the list - * - * @return builder to add the new uid values + * The uID to add. + * @return This builder for chaining. */ public Builder addAllUID(java.lang.Iterable values) { ensureUIDIsMutable(); - super.addAll(values, uID_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uID_); onChanged(); return this; } @@ -883,11 +827,11 @@ public Builder addAllUID(java.lang.Iterable values) { /** * repeated string UID = 3; * - * @return builder to clear uid list + * @return This builder for chaining. */ public Builder clearUID() { uID_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -896,43 +840,42 @@ public Builder clearUID() { * repeated string UID = 3; * * @param value - * the uid byte string - * - * @return builder to add uid byte string provided + * The bytes of the uID to add. + * @return This builder for chaining. */ public Builder addUIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); ensureUIDIsMutable(); uID_.add(value); onChanged(); return this; } - // repeated string REMOVEDUID = 4; private com.google.protobuf.LazyStringList rEMOVEDUID_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureREMOVEDUIDIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { + if (!((bitField0_ & 0x00000002) != 0)) { rEMOVEDUID_ = new com.google.protobuf.LazyStringArrayList(rEMOVEDUID_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } /** * repeated string REMOVEDUID = 4; * - * @return the removed uid list + * @return A list containing the rEMOVEDUID. */ - public java.util.List getREMOVEDUIDList() { - return java.util.Collections.unmodifiableList(rEMOVEDUID_); + public com.google.protobuf.ProtocolStringList getREMOVEDUIDList() { + return rEMOVEDUID_.getUnmodifiableView(); } /** * repeated string REMOVEDUID = 4; * - * @return the size of the removed uid list + * @return The count of rEMOVEDUID. */ public int getREMOVEDUIDCount() { return rEMOVEDUID_.size(); @@ -942,9 +885,8 @@ public int getREMOVEDUIDCount() { * repeated string REMOVEDUID = 4; * * @param index - * the index - * - * @return get the removed uid at the provided index + * The index of the element to return. + * @return The rEMOVEDUID at the given index. */ public java.lang.String getREMOVEDUID(int index) { return rEMOVEDUID_.get(index); @@ -954,9 +896,8 @@ public java.lang.String getREMOVEDUID(int index) { * repeated string REMOVEDUID = 4; * * @param index - * the index - * - * @return byte string ofremoved uid at the provided index + * The index of the value to return. + * @return The bytes of the rEMOVEDUID at the given index. */ public com.google.protobuf.ByteString getREMOVEDUIDBytes(int index) { return rEMOVEDUID_.getByteString(index); @@ -966,11 +907,10 @@ public com.google.protobuf.ByteString getREMOVEDUIDBytes(int index) { * repeated string REMOVEDUID = 4; * * @param index - * the index + * The index to set the value at. * @param value - * the new removed uid value - * - * @return builder to set the removed uid at the provided index + * The rEMOVEDUID to set. + * @return This builder for chaining. */ public Builder setREMOVEDUID(int index, java.lang.String value) { if (value == null) { @@ -986,9 +926,8 @@ public Builder setREMOVEDUID(int index, java.lang.String value) { * repeated string REMOVEDUID = 4; * * @param value - * the removed uid value to add to the list - * - * @return builder to add removed uid provided + * The rEMOVEDUID to add. + * @return This builder for chaining. */ public Builder addREMOVEDUID(java.lang.String value) { if (value == null) { @@ -1004,13 +943,12 @@ public Builder addREMOVEDUID(java.lang.String value) { * repeated string REMOVEDUID = 4; * * @param values - * iterator of uids to add to removed uid list - * - * @return builder to add all values to removed uid list + * The rEMOVEDUID to add. + * @return This builder for chaining. */ public Builder addAllREMOVEDUID(java.lang.Iterable values) { ensureREMOVEDUIDIsMutable(); - super.addAll(values, rEMOVEDUID_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rEMOVEDUID_); onChanged(); return this; } @@ -1018,11 +956,11 @@ public Builder addAllREMOVEDUID(java.lang.Iterable values) { /** * repeated string REMOVEDUID = 4; * - * @return builder to clear removed uid list + * @return This builder for chaining. */ public Builder clearREMOVEDUID() { rEMOVEDUID_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1031,33 +969,79 @@ public Builder clearREMOVEDUID() { * repeated string REMOVEDUID = 4; * * @param value - * byte string value - * - * @return builder to add removed uid byte string value + * The bytes of the rEMOVEDUID to add. + * @return This builder for chaining. */ public Builder addREMOVEDUIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); ensureREMOVEDUIDIsMutable(); rEMOVEDUID_.add(value); onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.ingest.protobuf.List) } + // @@protoc_insertion_point(class_scope:datawave.ingest.protobuf.List) + private static final datawave.ingest.protobuf.Uid.List DEFAULT_INSTANCE; static { - defaultInstance = new List(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.ingest.protobuf.Uid.List(); + } + + public static datawave.ingest.protobuf.Uid.List getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public List 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 datawave.ingest.protobuf.Uid.List getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.ingest.protobuf.List) } - private static com.google.protobuf.Descriptors.Descriptor internal_static_datawave_ingest_protobuf_List_descriptor; - private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_datawave_ingest_protobuf_List_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_ingest_protobuf_List_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_ingest_protobuf_List_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -1066,19 +1050,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = {"\n\tUid.proto\022\030datawave.ingest.protobuf\"F\n" - + "\004List\022\016\n\006IGNORE\030\001 \002(\010\022\r\n\005COUNT\030\002 \002(\004\022\013\n\003" - + "UID\030\003 \003(\t\022\022\n\nREMOVEDUID\030\004 \003(\tB\034\n\030datawav" + "e.ingest.protobufH\001"}; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_datawave_ingest_protobuf_List_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_datawave_ingest_protobuf_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_datawave_ingest_protobuf_List_descriptor, new java.lang.String[] {"IGNORE", "COUNT", "UID", "REMOVEDUID",}); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}, - assigner); + + "\004List\022\016\n\006IGNORE\030\001 \001(\010\022\r\n\005COUNT\030\002 \001(\004\022\013\n\003" + + "UID\030\003 \003(\t\022\022\n\nREMOVEDUID\030\004 \003(\tB\034\n\030datawav" + "e.ingest.protobufH\001b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_datawave_ingest_protobuf_List_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_ingest_protobuf_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_ingest_protobuf_List_descriptor, new java.lang.String[] {"IGNORE", "COUNT", "UID", "REMOVEDUID",}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/warehouse/core/src/main/protobuf/EdgeData.proto b/warehouse/core/src/main/protobuf/EdgeData.proto index 3201b99f0f9..6dc2f7d221b 100644 --- a/warehouse/core/src/main/protobuf/EdgeData.proto +++ b/warehouse/core/src/main/protobuf/EdgeData.proto @@ -1,5 +1,6 @@ // compile with protoc --java_out ../java // classpath for compile command should include ../../../target/classes and protobuf-java-2.2.0.jar +syntax = "proto3"; package datawave.edge.protobuf; @@ -9,8 +10,8 @@ option optimize_for = SPEED; // Used for the Accumulo Value bytes for Edge Table and edge Metadata Table entries message EdgeValue { message UUID { - required sint64 least_significant_bits = 1; - required sint64 most_significant_bits = 2; + sint64 least_significant_bits = 1; + sint64 most_significant_bits = 2; } optional int64 count = 1; // edge table count diff --git a/warehouse/core/src/main/protobuf/TermWeight.proto b/warehouse/core/src/main/protobuf/TermWeight.proto index 26111dbeb3d..7ef8099b587 100644 --- a/warehouse/core/src/main/protobuf/TermWeight.proto +++ b/warehouse/core/src/main/protobuf/TermWeight.proto @@ -1,6 +1,6 @@ // compile with protoc --java_out ../java // classpath for compile command should include ../../../target/classes and protobuf-java-2.2.0.jar -syntax = "proto2"; +syntax = "proto3"; package datawave.ingest.protobuf; @@ -11,5 +11,5 @@ message Info { repeated uint32 termOffset = 3; repeated uint32 prevSkips = 4; repeated uint32 score = 5; - optional bool zeroOffsetMatch = 6 [default = true]; + optional bool zeroOffsetMatch = 6; } diff --git a/warehouse/core/src/main/protobuf/Uid.proto b/warehouse/core/src/main/protobuf/Uid.proto index 3a6520af041..59d98bdc472 100644 --- a/warehouse/core/src/main/protobuf/Uid.proto +++ b/warehouse/core/src/main/protobuf/Uid.proto @@ -1,5 +1,6 @@ // compile with protoc --java_out ../java // classpath for compile command should include ../../../target/classes and protobuf-java-2.2.0.jar +syntax = "proto3"; package datawave.ingest.protobuf; @@ -7,8 +8,8 @@ option java_package = "datawave.ingest.protobuf"; option optimize_for = SPEED; message List { - required bool IGNORE = 1; - required uint64 COUNT = 2; + bool IGNORE = 1; + uint64 COUNT = 2; repeated string UID = 3; repeated string REMOVEDUID = 4; } diff --git a/warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/handler/tokenize/ContentIndexingColumnBasedHandlerTest.java b/warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/handler/tokenize/ContentIndexingColumnBasedHandlerTest.java index 05fb07cc75d..710fc8d5721 100644 --- a/warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/handler/tokenize/ContentIndexingColumnBasedHandlerTest.java +++ b/warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/handler/tokenize/ContentIndexingColumnBasedHandlerTest.java @@ -384,7 +384,7 @@ private boolean assertExpectedTfRecords(Multimap> ex Text expectedColq = new Text(TEST_TYPE + INTRA_COL_DELIMETER + TEST_UUID + INTRA_COL_DELIMETER + entry.getValue().getLeft() + INTRA_COL_DELIMETER + entry.getKey()); int count = entry.getValue().getRight().intValue(); - byte[] expectedValue = {(byte) 24, (byte) count}; + byte[] expectedValue = {(byte) 26, (byte) 1, (byte) count}; Collection values = assertContainsKey(SHARD_ID, SHARD_TABLE_NAME, expectedColf, expectedColq, tfEntries); if (values != null) { diff --git a/web-services/client/src/main/java/datawave/user/UserMessages.java b/web-services/client/src/main/java/datawave/user/UserMessages.java new file mode 100644 index 00000000000..2960a8a058e --- /dev/null +++ b/web-services/client/src/main/java/datawave/user/UserMessages.java @@ -0,0 +1,660 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: user_messages.proto + +package datawave.user; + +public final class UserMessages { + private UserMessages() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface UserAuthorizationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.user.UserAuthorizations) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string auths = 1; + * + * @return A list containing the auths. + */ + java.util.List getAuthsList(); + + /** + * repeated string auths = 1; + * + * @return The count of auths. + */ + int getAuthsCount(); + + /** + * repeated string auths = 1; + * + * @param index + * The index of the element to return. + * @return The auths at the given index. + */ + java.lang.String getAuths(int index); + + /** + * repeated string auths = 1; + * + * @param index + * The index of the value to return. + * @return The bytes of the auths at the given index. + */ + com.google.protobuf.ByteString getAuthsBytes(int index); + } + + /** + * Protobuf type {@code datawave.user.UserAuthorizations} + */ + public static final class UserAuthorizations extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.user.UserAuthorizations) + UserAuthorizationsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UserAuthorizations.newBuilder() to construct. + private UserAuthorizations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserAuthorizations() { + auths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserAuthorizations(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.user.UserMessages.internal_static_datawave_user_UserAuthorizations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.user.UserMessages.internal_static_datawave_user_UserAuthorizations_fieldAccessorTable.ensureFieldAccessorsInitialized( + datawave.user.UserMessages.UserAuthorizations.class, datawave.user.UserMessages.UserAuthorizations.Builder.class); + } + + public static final int AUTHS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList auths_; + + /** + * repeated string auths = 1; + * + * @return A list containing the auths. + */ + public com.google.protobuf.ProtocolStringList getAuthsList() { + return auths_; + } + + /** + * repeated string auths = 1; + * + * @return The count of auths. + */ + public int getAuthsCount() { + return auths_.size(); + } + + /** + * repeated string auths = 1; + * + * @param index + * The index of the element to return. + * @return The auths at the given index. + */ + public java.lang.String getAuths(int index) { + return auths_.get(index); + } + + /** + * repeated string auths = 1; + * + * @param index + * The index of the value to return. + * @return The bytes of the auths at the given index. + */ + public com.google.protobuf.ByteString getAuthsBytes(int index) { + return auths_.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 < auths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, auths_.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 < auths_.size(); i++) { + dataSize += computeStringSizeNoTag(auths_.getRaw(i)); + } + size += dataSize; + size += 1 * getAuthsList().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 datawave.user.UserMessages.UserAuthorizations)) { + return super.equals(obj); + } + datawave.user.UserMessages.UserAuthorizations other = (datawave.user.UserMessages.UserAuthorizations) obj; + + if (!getAuthsList().equals(other.getAuthsList())) + 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 (getAuthsCount() > 0) { + hash = (37 * hash) + AUTHS_FIELD_NUMBER; + hash = (53 * hash) + getAuthsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.user.UserMessages.UserAuthorizations parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.user.UserMessages.UserAuthorizations 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 datawave.user.UserMessages.UserAuthorizations parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static datawave.user.UserMessages.UserAuthorizations 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 datawave.user.UserMessages.UserAuthorizations parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.user.UserMessages.UserAuthorizations 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(datawave.user.UserMessages.UserAuthorizations 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 datawave.user.UserAuthorizations} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.user.UserAuthorizations) + datawave.user.UserMessages.UserAuthorizationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.user.UserMessages.internal_static_datawave_user_UserAuthorizations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.user.UserMessages.internal_static_datawave_user_UserAuthorizations_fieldAccessorTable.ensureFieldAccessorsInitialized( + datawave.user.UserMessages.UserAuthorizations.class, datawave.user.UserMessages.UserAuthorizations.Builder.class); + } + + // Construct using datawave.user.UserMessages.UserAuthorizations.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + auths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.user.UserMessages.internal_static_datawave_user_UserAuthorizations_descriptor; + } + + @java.lang.Override + public datawave.user.UserMessages.UserAuthorizations getDefaultInstanceForType() { + return datawave.user.UserMessages.UserAuthorizations.getDefaultInstance(); + } + + @java.lang.Override + public datawave.user.UserMessages.UserAuthorizations build() { + datawave.user.UserMessages.UserAuthorizations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datawave.user.UserMessages.UserAuthorizations buildPartial() { + datawave.user.UserMessages.UserAuthorizations result = new datawave.user.UserMessages.UserAuthorizations(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + auths_ = auths_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.auths_ = auths_; + onBuilt(); + return result; + } + + @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 datawave.user.UserMessages.UserAuthorizations) { + return mergeFrom((datawave.user.UserMessages.UserAuthorizations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datawave.user.UserMessages.UserAuthorizations other) { + if (other == datawave.user.UserMessages.UserAuthorizations.getDefaultInstance()) + return this; + if (!other.auths_.isEmpty()) { + if (auths_.isEmpty()) { + auths_ = other.auths_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthsIsMutable(); + auths_.addAll(other.auths_); + } + 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(); + ensureAuthsIsMutable(); + auths_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList auths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAuthsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + auths_ = new com.google.protobuf.LazyStringArrayList(auths_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string auths = 1; + * + * @return A list containing the auths. + */ + public com.google.protobuf.ProtocolStringList getAuthsList() { + return auths_.getUnmodifiableView(); + } + + /** + * repeated string auths = 1; + * + * @return The count of auths. + */ + public int getAuthsCount() { + return auths_.size(); + } + + /** + * repeated string auths = 1; + * + * @param index + * The index of the element to return. + * @return The auths at the given index. + */ + public java.lang.String getAuths(int index) { + return auths_.get(index); + } + + /** + * repeated string auths = 1; + * + * @param index + * The index of the value to return. + * @return The bytes of the auths at the given index. + */ + public com.google.protobuf.ByteString getAuthsBytes(int index) { + return auths_.getByteString(index); + } + + /** + * repeated string auths = 1; + * + * @param index + * The index to set the value at. + * @param value + * The auths to set. + * @return This builder for chaining. + */ + public Builder setAuths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthsIsMutable(); + auths_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string auths = 1; + * + * @param value + * The auths to add. + * @return This builder for chaining. + */ + public Builder addAuths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthsIsMutable(); + auths_.add(value); + onChanged(); + return this; + } + + /** + * repeated string auths = 1; + * + * @param values + * The auths to add. + * @return This builder for chaining. + */ + public Builder addAllAuths(java.lang.Iterable values) { + ensureAuthsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, auths_); + onChanged(); + return this; + } + + /** + * repeated string auths = 1; + * + * @return This builder for chaining. + */ + public Builder clearAuths() { + auths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string auths = 1; + * + * @param value + * The bytes of the auths to add. + * @return This builder for chaining. + */ + public Builder addAuthsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAuthsIsMutable(); + auths_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:datawave.user.UserAuthorizations) + } + + // @@protoc_insertion_point(class_scope:datawave.user.UserAuthorizations) + private static final datawave.user.UserMessages.UserAuthorizations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datawave.user.UserMessages.UserAuthorizations(); + } + + public static datawave.user.UserMessages.UserAuthorizations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserAuthorizations 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 datawave.user.UserMessages.UserAuthorizations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_user_UserAuthorizations_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_user_UserAuthorizations_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\023user_messages.proto\022\rdatawave.user\"#\n\022" + + "UserAuthorizations\022\r\n\005auths\030\001 \003(\tB\021\n\rdat" + "awave.userH\003b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_datawave_user_UserAuthorizations_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_user_UserAuthorizations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_user_UserAuthorizations_descriptor, new java.lang.String[] {"Auths",}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/web-services/client/src/main/java/datawave/webservice/query/QueryMessages.java b/web-services/client/src/main/java/datawave/webservice/query/QueryMessages.java index e9e69f40b92..7e831a479ba 100644 --- a/web-services/client/src/main/java/datawave/webservice/query/QueryMessages.java +++ b/web-services/client/src/main/java/datawave/webservice/query/QueryMessages.java @@ -8,420 +8,262 @@ private QueryMessages() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - public interface QueryImplOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } - // required string query_logic_name = 1; - /** - * required string query_logic_name = 1; - * - * @return if it has query logic name - */ - boolean hasQueryLogicName(); + public interface QueryImplOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.query.QueryImpl) + com.google.protobuf.MessageOrBuilder { /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return query logic name + * @return The queryLogicName. */ java.lang.String getQueryLogicName(); /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return query logic name byte string + * @return The bytes for queryLogicName. */ com.google.protobuf.ByteString getQueryLogicNameBytes(); - // required string id = 2; - /** - * required string id = 2; - * - * @return if it has id - */ - boolean hasId(); - /** - * required string id = 2; + * string id = 2; * - * @return the id + * @return The id. */ java.lang.String getId(); /** - * required string id = 2; + * string id = 2; * - * @return id byte string + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); - // optional string query_name = 3; /** - * optional string query_name = 3; + * string query_name = 3; * - * @return if it has query name + * @return Whether the queryName field is set. */ boolean hasQueryName(); /** - * optional string query_name = 3; + * string query_name = 3; * - * @return query name + * @return The queryName. */ java.lang.String getQueryName(); /** - * optional string query_name = 3; + * string query_name = 3; * - * @return query name byte string + * @return The bytes for queryName. */ com.google.protobuf.ByteString getQueryNameBytes(); - // required string user_DN = 4; /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return if it has user dn - */ - boolean hasUserDN(); - - /** - * required string user_DN = 4; - * - * @return user dn + * @return The userDN. */ java.lang.String getUserDN(); /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return user dn byte string + * @return The bytes for userDN. */ com.google.protobuf.ByteString getUserDNBytes(); - // required string query = 5; - /** - * required string query = 5; - * - * @return if it has a query - */ - boolean hasQuery(); - /** - * required string query = 5; + * string query = 5; * - * @return the query + * @return The query. */ java.lang.String getQuery(); /** - * required string query = 5; + * string query = 5; * - * @return query byte string + * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); - // required string query_visibility = 6; /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return if it has query visibility - */ - boolean hasQueryVisibility(); - - /** - * required string query_visibility = 6; - * - * @return the query visibility + * @return The queryVisibility. */ java.lang.String getQueryVisibility(); /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return query visibility byte string + * @return The bytes for queryVisibility. */ com.google.protobuf.ByteString getQueryVisibilityBytes(); - // optional int64 begin_date = 7; /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return if it has a begin date + * @return Whether the beginDate field is set. */ boolean hasBeginDate(); /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return begin date + * @return The beginDate. */ long getBeginDate(); - // optional int64 end_date = 8; /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return if it has end date + * @return Whether the endDate field is set. */ boolean hasEndDate(); /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return end date + * @return The endDate. */ long getEndDate(); - // required string query_authorizations = 9; - /** - * required string query_authorizations = 9; - * - * @return if it has query authorizations - */ - boolean hasQueryAuthorizations(); - /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return query authorizations + * @return The queryAuthorizations. */ java.lang.String getQueryAuthorizations(); /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return query authorization + * @return The bytes for queryAuthorizations. */ com.google.protobuf.ByteString getQueryAuthorizationsBytes(); - // required int64 expiration_date = 10; /** - * required int64 expiration_date = 10; + * int64 expiration_date = 10; * - * @return if it has an expiration date + * @return The expirationDate. */ - boolean hasExpirationDate(); + long getExpirationDate(); /** - * required int64 expiration_date = 10; + * uint32 pagesize = 11; * - * @return the expiration date + * @return The pagesize. */ - long getExpirationDate(); + int getPagesize(); - // required uint32 pagesize = 11 [default = 0]; /** - * required uint32 pagesize = 11 [default = 0]; - * - * @return if it has page size + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; */ - boolean hasPagesize(); + java.util.List getParametersList(); /** - * required uint32 pagesize = 11 [default = 0]; - * - * @return the page size + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; */ - int getPagesize(); + datawave.webservice.query.QueryMessages.QueryImpl.Parameter getParameters(int index); - // repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return the parameters list */ - java.util.List getParametersList(); + int getParametersCount(); /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * - * @return the parameter at the index provided */ - datawave.webservice.query.QueryMessages.QueryImpl.Parameter getParameters(int index); + java.util.List getParametersOrBuilderList(); /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return the number of parameters */ - int getParametersCount(); + datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder getParametersOrBuilder(int index); } /** * Protobuf type {@code datawave.webservice.query.QueryImpl} */ - public static final class QueryImpl extends com.google.protobuf.GeneratedMessageLite implements QueryImplOrBuilder { + public static final class QueryImpl extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.query.QueryImpl) + QueryImplOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryImpl.newBuilder() to construct. - private QueryImpl(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private QueryImpl(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private QueryImpl(boolean noInit) {} - - private static final QueryImpl defaultInstance; - - public static QueryImpl getDefaultInstance() { - return defaultInstance; + private QueryImpl() { + queryLogicName_ = ""; + id_ = ""; + queryName_ = ""; + userDN_ = ""; + query_ = ""; + queryVisibility_ = ""; + queryAuthorizations_ = ""; + parameters_ = java.util.Collections.emptyList(); } - public QueryImpl getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryImpl(); } - private QueryImpl(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - queryLogicName_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - id_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - queryName_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - userDN_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - query_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - queryVisibility_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - beginDate_ = input.readInt64(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - endDate_ = input.readInt64(); - break; - } - case 74: { - bitField0_ |= 0x00000100; - queryAuthorizations_ = input.readBytes(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - expirationDate_ = input.readInt64(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - pagesize_ = input.readUInt32(); - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { - parameters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; - } - parameters_.add(input.readMessage(datawave.webservice.query.QueryMessages.QueryImpl.Parameter.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - } - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public QueryImpl parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryImpl(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.QueryMessages.QueryImpl.class, + datawave.webservice.query.QueryMessages.QueryImpl.Builder.class); } - public interface ParameterOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { - - // required string parameter_name = 1; - /** - * required string parameter_name = 1; - * - * @return if it has parameter name - */ - boolean hasParameterName(); + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.query.QueryImpl.Parameter) + com.google.protobuf.MessageOrBuilder { /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return parameter name + * @return The parameterName. */ java.lang.String getParameterName(); /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return parameter name byte string + * @return The bytes for parameterName. */ com.google.protobuf.ByteString getParameterNameBytes(); - // required string parameter_value = 2; - /** - * required string parameter_value = 2; - * - * @return if it has parameter value - */ - boolean hasParameterValue(); - /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return parameter value + * @return The parameterValue. */ java.lang.String getParameterValue(); /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return parameter value byte string + * @return The bytes for parameterValue. */ com.google.protobuf.ByteString getParameterValueBytes(); } @@ -429,95 +271,52 @@ public interface ParameterOrBuilder extends com.google.protobuf.MessageLiteOrBui /** * Protobuf type {@code datawave.webservice.query.QueryImpl.Parameter} */ - public static final class Parameter extends com.google.protobuf.GeneratedMessageLite implements ParameterOrBuilder { + public static final class Parameter extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.query.QueryImpl.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. - private Parameter(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private Parameter(boolean noInit) {} - - private static final Parameter defaultInstance; - - public static Parameter getDefaultInstance() { - return defaultInstance; + private Parameter() { + parameterName_ = ""; + parameterValue_ = ""; } - public Parameter getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Parameter(); } - private Parameter(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - parameterName_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - parameterValue_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public Parameter parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_Parameter_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.QueryMessages.QueryImpl.Parameter.class, + datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder.class); } - private int bitField0_; - // required string parameter_name = 1; public static final int PARAMETER_NAME_FIELD_NUMBER = 1; - private java.lang.Object parameterName_; - - /** - * required string parameter_name = 1; - * - * @return if it has parameter name - */ - public boolean hasParameterName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } + private volatile java.lang.Object parameterName_; /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return parameter name + * @return The parameterName. */ + @java.lang.Override public java.lang.String getParameterName() { java.lang.Object ref = parameterName_; if (ref instanceof java.lang.String) { @@ -525,18 +324,17 @@ public java.lang.String getParameterName() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parameterName_ = s; - } + parameterName_ = s; return s; } } /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return parameter name byte string + * @return The bytes for parameterName. */ + @java.lang.Override public com.google.protobuf.ByteString getParameterNameBytes() { java.lang.Object ref = parameterName_; if (ref instanceof java.lang.String) { @@ -548,24 +346,15 @@ public com.google.protobuf.ByteString getParameterNameBytes() { } } - // required string parameter_value = 2; public static final int PARAMETER_VALUE_FIELD_NUMBER = 2; - private java.lang.Object parameterValue_; - - /** - * required string parameter_value = 2; - * - * @return if it has parameter value - */ - public boolean hasParameterValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } + private volatile java.lang.Object parameterValue_; /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return parameter value + * @return The parameterValue. */ + @java.lang.Override public java.lang.String getParameterValue() { java.lang.Object ref = parameterValue_; if (ref instanceof java.lang.String) { @@ -573,18 +362,17 @@ public java.lang.String getParameterValue() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parameterValue_ = s; - } + parameterValue_ = s; return s; } } /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return parameter value byte string + * @return The bytes for parameterValue. */ + @java.lang.Override public com.google.protobuf.ByteString getParameterValueBytes() { java.lang.Object ref = parameterValue_; if (ref instanceof java.lang.String) { @@ -596,63 +384,92 @@ public com.google.protobuf.ByteString getParameterValueBytes() { } } - private void initFields() { - parameterName_ = ""; - parameterValue_ = ""; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasParameterName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasParameterValue()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getParameterNameBytes()); + if (!getParameterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterName_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getParameterValueBytes()); + if (!getParameterValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterValue_); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getParameterNameBytes()); + if (!getParameterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameterName_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getParameterValueBytes()); + if (!getParameterValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterValue_); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.query.QueryMessages.QueryImpl.Parameter)) { + return super.equals(obj); + } + datawave.webservice.query.QueryMessages.QueryImpl.Parameter other = (datawave.webservice.query.QueryMessages.QueryImpl.Parameter) obj; + + if (!getParameterName().equals(other.getParameterName())) + return false; + if (!getParameterValue().equals(other.getParameterValue())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + PARAMETER_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getParameterValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(com.google.protobuf.ByteString data) @@ -676,83 +493,105 @@ public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseF } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.query.QueryMessages.QueryImpl.Parameter prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.query.QueryImpl.Parameter} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.query.QueryImpl.Parameter) + datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_Parameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.QueryMessages.QueryImpl.Parameter.class, + datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder.class); + } + // Construct using datawave.webservice.query.QueryMessages.QueryImpl.Parameter.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); parameterName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); + parameterValue_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); + return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_Parameter_descriptor; } + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl.Parameter getDefaultInstanceForType() { return datawave.webservice.query.QueryMessages.QueryImpl.Parameter.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl.Parameter build() { datawave.webservice.query.QueryMessages.QueryImpl.Parameter result = buildPartial(); if (!result.isInitialized()) { @@ -761,89 +600,128 @@ public datawave.webservice.query.QueryMessages.QueryImpl.Parameter build() { return result; } + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl.Parameter buildPartial() { datawave.webservice.query.QueryMessages.QueryImpl.Parameter result = new datawave.webservice.query.QueryMessages.QueryImpl.Parameter(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.parameterName_ = parameterName_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } result.parameterValue_ = parameterValue_; - result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.query.QueryMessages.QueryImpl.Parameter) { + return mergeFrom((datawave.webservice.query.QueryMessages.QueryImpl.Parameter) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.query.QueryMessages.QueryImpl.Parameter other) { if (other == datawave.webservice.query.QueryMessages.QueryImpl.Parameter.getDefaultInstance()) return this; - if (other.hasParameterName()) { - bitField0_ |= 0x00000001; + if (!other.getParameterName().isEmpty()) { parameterName_ = other.parameterName_; - + onChanged(); } - if (other.hasParameterValue()) { - bitField0_ |= 0x00000002; + if (!other.getParameterValue().isEmpty()) { parameterValue_ = other.parameterValue_; - + onChanged(); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasParameterName()) { - - return false; - } - if (!hasParameterValue()) { - - return false; - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.webservice.query.QueryMessages.QueryImpl.Parameter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parameterName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + parameterValue_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (datawave.webservice.query.QueryMessages.QueryImpl.Parameter) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - - // required string parameter_name = 1; private java.lang.Object parameterName_ = ""; /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return if it has parameter name - */ - public boolean hasParameterName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required string parameter_name = 1; - * - * @return parameter name + * @return The parameterName. */ public java.lang.String getParameterName() { java.lang.Object ref = parameterName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); parameterName_ = s; return s; } else { @@ -852,9 +730,9 @@ public java.lang.String getParameterName() { } /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return parameter name byte string + * @return The bytes for parameterName. */ public com.google.protobuf.ByteString getParameterNameBytes() { java.lang.Object ref = parameterName_; @@ -868,74 +746,64 @@ public com.google.protobuf.ByteString getParameterNameBytes() { } /** - * required string parameter_name = 1; + * string parameter_name = 1; * * @param value - * new parameter name - * - * @return builder to set parameter name to passed in value + * The parameterName to set. + * @return This builder for chaining. */ public Builder setParameterName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - parameterName_ = value; + parameterName_ = value; + onChanged(); return this; } /** - * required string parameter_name = 1; + * string parameter_name = 1; * - * @return builder to clear the parameter name + * @return This builder for chaining. */ public Builder clearParameterName() { - bitField0_ = (bitField0_ & ~0x00000001); - parameterName_ = getDefaultInstance().getParameterName(); + parameterName_ = getDefaultInstance().getParameterName(); + onChanged(); return this; } /** - * required string parameter_name = 1; + * string parameter_name = 1; * * @param value - * new parameter name - * - * @return builder to set parameter name + * The bytes for parameterName to set. + * @return This builder for chaining. */ public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - parameterName_ = value; + checkByteStringIsUtf8(value); + parameterName_ = value; + onChanged(); return this; } - // required string parameter_value = 2; private java.lang.Object parameterValue_ = ""; /** - * required string parameter_value = 2; - * - * @return if it has parameter value - */ - public boolean hasParameterValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return parameter value + * @return The parameterValue. */ public java.lang.String getParameterValue() { java.lang.Object ref = parameterValue_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); parameterValue_ = s; return s; } else { @@ -944,9 +812,9 @@ public java.lang.String getParameterValue() { } /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return parameter value byte string + * @return The bytes for parameterValue. */ public com.google.protobuf.ByteString getParameterValueBytes() { java.lang.Object ref = parameterValue_; @@ -960,83 +828,119 @@ public com.google.protobuf.ByteString getParameterValueBytes() { } /** - * required string parameter_value = 2; + * string parameter_value = 2; * * @param value - * the new parameter value - * - * @return builder to set parameter value + * The parameterValue to set. + * @return This builder for chaining. */ public Builder setParameterValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - parameterValue_ = value; + parameterValue_ = value; + onChanged(); return this; } /** - * required string parameter_value = 2; + * string parameter_value = 2; * - * @return builder to clear parameter value + * @return This builder for chaining. */ public Builder clearParameterValue() { - bitField0_ = (bitField0_ & ~0x00000002); - parameterValue_ = getDefaultInstance().getParameterValue(); + parameterValue_ = getDefaultInstance().getParameterValue(); + onChanged(); return this; } /** - * required string parameter_value = 2; + * string parameter_value = 2; * * @param value - * new value - * - * @return builder to set parameter value + * The bytes for parameterValue to set. + * @return This builder for chaining. */ public Builder setParameterValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - parameterValue_ = value; + checkByteStringIsUtf8(value); + parameterValue_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.webservice.query.QueryImpl.Parameter) } + // @@protoc_insertion_point(class_scope:datawave.webservice.query.QueryImpl.Parameter) + private static final datawave.webservice.query.QueryMessages.QueryImpl.Parameter DEFAULT_INSTANCE; static { - defaultInstance = new Parameter(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.query.QueryMessages.QueryImpl.Parameter(); + } + + public static datawave.webservice.query.QueryMessages.QueryImpl.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Parameter 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 datawave.webservice.query.QueryMessages.QueryImpl.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.webservice.query.QueryImpl.Parameter) } private int bitField0_; - // required string query_logic_name = 1; public static final int QUERY_LOGIC_NAME_FIELD_NUMBER = 1; - private java.lang.Object queryLogicName_; - - /** - * required string query_logic_name = 1; - * - * @return if it has query logic name - */ - public boolean hasQueryLogicName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } + private volatile java.lang.Object queryLogicName_; /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return query logic name + * @return The queryLogicName. */ + @java.lang.Override public java.lang.String getQueryLogicName() { java.lang.Object ref = queryLogicName_; if (ref instanceof java.lang.String) { @@ -1044,18 +948,17 @@ public java.lang.String getQueryLogicName() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - queryLogicName_ = s; - } + queryLogicName_ = s; return s; } } /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return query logic name byte string + * @return The bytes for queryLogicName. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryLogicNameBytes() { java.lang.Object ref = queryLogicName_; if (ref instanceof java.lang.String) { @@ -1067,24 +970,15 @@ public com.google.protobuf.ByteString getQueryLogicNameBytes() { } } - // required string id = 2; public static final int ID_FIELD_NUMBER = 2; - private java.lang.Object id_; - - /** - * required string id = 2; - * - * @return if it has id - */ - public boolean hasId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } + private volatile java.lang.Object id_; /** - * required string id = 2; + * string id = 2; * - * @return the id + * @return The id. */ + @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { @@ -1092,18 +986,17 @@ public java.lang.String getId() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } + id_ = s; return s; } } /** - * required string id = 2; + * string id = 2; * - * @return the id byte string + * @return The bytes for id. */ + @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { @@ -1115,24 +1008,25 @@ public com.google.protobuf.ByteString getIdBytes() { } } - // optional string query_name = 3; public static final int QUERY_NAME_FIELD_NUMBER = 3; - private java.lang.Object queryName_; + private volatile java.lang.Object queryName_; /** - * optional string query_name = 3; + * string query_name = 3; * - * @return if it has query name + * @return Whether the queryName field is set. */ + @java.lang.Override public boolean hasQueryName() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string query_name = 3; + * string query_name = 3; * - * @return the query name + * @return The queryName. */ + @java.lang.Override public java.lang.String getQueryName() { java.lang.Object ref = queryName_; if (ref instanceof java.lang.String) { @@ -1140,18 +1034,17 @@ public java.lang.String getQueryName() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - queryName_ = s; - } + queryName_ = s; return s; } } /** - * optional string query_name = 3; + * string query_name = 3; * - * @return the query name byte string + * @return The bytes for queryName. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryNameBytes() { java.lang.Object ref = queryName_; if (ref instanceof java.lang.String) { @@ -1163,24 +1056,15 @@ public com.google.protobuf.ByteString getQueryNameBytes() { } } - // required string user_DN = 4; public static final int USER_DN_FIELD_NUMBER = 4; - private java.lang.Object userDN_; + private volatile java.lang.Object userDN_; /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return if it has user dn - */ - public boolean hasUserDN() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - - /** - * required string user_DN = 4; - * - * @return the user dn + * @return The userDN. */ + @java.lang.Override public java.lang.String getUserDN() { java.lang.Object ref = userDN_; if (ref instanceof java.lang.String) { @@ -1188,18 +1072,17 @@ public java.lang.String getUserDN() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - userDN_ = s; - } + userDN_ = s; return s; } } /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return the user dn byte string + * @return The bytes for userDN. */ + @java.lang.Override public com.google.protobuf.ByteString getUserDNBytes() { java.lang.Object ref = userDN_; if (ref instanceof java.lang.String) { @@ -1211,24 +1094,15 @@ public com.google.protobuf.ByteString getUserDNBytes() { } } - // required string query = 5; public static final int QUERY_FIELD_NUMBER = 5; - private java.lang.Object query_; - - /** - * required string query = 5; - * - * @return if it has query - */ - public boolean hasQuery() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } + private volatile java.lang.Object query_; /** - * required string query = 5; + * string query = 5; * - * @return the query + * @return The query. */ + @java.lang.Override public java.lang.String getQuery() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { @@ -1236,18 +1110,17 @@ public java.lang.String getQuery() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - query_ = s; - } + query_ = s; return s; } } /** - * required string query = 5; + * string query = 5; * - * @return the query byte string + * @return The bytes for query. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { @@ -1259,24 +1132,15 @@ public com.google.protobuf.ByteString getQueryBytes() { } } - // required string query_visibility = 6; public static final int QUERY_VISIBILITY_FIELD_NUMBER = 6; - private java.lang.Object queryVisibility_; + private volatile java.lang.Object queryVisibility_; /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return if it has query visibility - */ - public boolean hasQueryVisibility() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - - /** - * required string query_visibility = 6; - * - * @return the query visibility + * @return The queryVisibility. */ + @java.lang.Override public java.lang.String getQueryVisibility() { java.lang.Object ref = queryVisibility_; if (ref instanceof java.lang.String) { @@ -1284,18 +1148,17 @@ public java.lang.String getQueryVisibility() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - queryVisibility_ = s; - } + queryVisibility_ = s; return s; } } /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return the query visibility byte string + * @return The bytes for queryVisibility. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryVisibilityBytes() { java.lang.Object ref = queryVisibility_; if (ref instanceof java.lang.String) { @@ -1307,68 +1170,61 @@ public com.google.protobuf.ByteString getQueryVisibilityBytes() { } } - // optional int64 begin_date = 7; public static final int BEGIN_DATE_FIELD_NUMBER = 7; private long beginDate_; /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return if it has begin date + * @return Whether the beginDate field is set. */ + @java.lang.Override public boolean hasBeginDate() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return the begin date + * @return The beginDate. */ + @java.lang.Override public long getBeginDate() { return beginDate_; } - // optional int64 end_date = 8; public static final int END_DATE_FIELD_NUMBER = 8; private long endDate_; /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return if it has end date + * @return Whether the endDate field is set. */ + @java.lang.Override public boolean hasEndDate() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return the end date + * @return The endDate. */ + @java.lang.Override public long getEndDate() { return endDate_; } - // required string query_authorizations = 9; public static final int QUERY_AUTHORIZATIONS_FIELD_NUMBER = 9; - private java.lang.Object queryAuthorizations_; - - /** - * required string query_authorizations = 9; - * - * @return if it has query authorizations - */ - public boolean hasQueryAuthorizations() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } + private volatile java.lang.Object queryAuthorizations_; /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return the query authorizations + * @return The queryAuthorizations. */ + @java.lang.Override public java.lang.String getQueryAuthorizations() { java.lang.Object ref = queryAuthorizations_; if (ref instanceof java.lang.String) { @@ -1376,18 +1232,17 @@ public java.lang.String getQueryAuthorizations() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - queryAuthorizations_ = s; - } + queryAuthorizations_ = s; return s; } } /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return the query authorizations byte string + * @return The bytes for queryAuthorizations. */ + @java.lang.Override public com.google.protobuf.ByteString getQueryAuthorizationsBytes() { java.lang.Object ref = queryAuthorizations_; if (ref instanceof java.lang.String) { @@ -1399,262 +1254,281 @@ public com.google.protobuf.ByteString getQueryAuthorizationsBytes() { } } - // required int64 expiration_date = 10; public static final int EXPIRATION_DATE_FIELD_NUMBER = 10; private long expirationDate_; /** - * required int64 expiration_date = 10; + * int64 expiration_date = 10; * - * @return if it has expiration date - */ - public boolean hasExpirationDate() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - - /** - * required int64 expiration_date = 10; - * - * @return the expiration date + * @return The expirationDate. */ + @java.lang.Override public long getExpirationDate() { return expirationDate_; } - // required uint32 pagesize = 11 [default = 0]; public static final int PAGESIZE_FIELD_NUMBER = 11; private int pagesize_; /** - * required uint32 pagesize = 11 [default = 0]; - * - * @return if it has page size - */ - public boolean hasPagesize() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - - /** - * required uint32 pagesize = 11 [default = 0]; + * uint32 pagesize = 11; * - * @return the page size + * @return The pagesize. */ + @java.lang.Override public int getPagesize() { return pagesize_; } - // repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; public static final int PARAMETERS_FIELD_NUMBER = 12; private java.util.List parameters_; /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return parameters list */ + @java.lang.Override public java.util.List getParametersList() { return parameters_; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return parameters list */ + @java.lang.Override public java.util.List getParametersOrBuilderList() { return parameters_; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return the size of the parameters list */ + @java.lang.Override public int getParametersCount() { return parameters_.size(); } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * - * @return the parameter at the given index */ + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl.Parameter getParameters(int index) { return parameters_.get(index); } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * - * @return the parameter at the index */ + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder getParametersOrBuilder(int index) { return parameters_.get(index); } - private void initFields() { - queryLogicName_ = ""; - id_ = ""; - queryName_ = ""; - userDN_ = ""; - query_ = ""; - queryVisibility_ = ""; - beginDate_ = 0L; - endDate_ = 0L; - queryAuthorizations_ = ""; - expirationDate_ = 0L; - pagesize_ = 0; - parameters_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasQueryLogicName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasUserDN()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasQuery()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasQueryVisibility()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasQueryAuthorizations()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasExpirationDate()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPagesize()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } - for (int i = 0; i < getParametersCount(); i++) { - if (!getParameters(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getQueryLogicNameBytes()); + if (!getQueryLogicNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryLogicName_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getIdBytes()); + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getQueryNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryName_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getUserDNBytes()); + if (!getUserDNBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userDN_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getQueryBytes()); + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, query_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getQueryVisibilityBytes()); + if (!getQueryVisibilityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, queryVisibility_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(7, beginDate_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(8, endDate_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getQueryAuthorizationsBytes()); + if (!getQueryAuthorizationsBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, queryAuthorizations_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (expirationDate_ != 0L) { output.writeInt64(10, expirationDate_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (pagesize_ != 0) { output.writeUInt32(11, pagesize_); } for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(12, parameters_.get(i)); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getQueryLogicNameBytes()); + if (!getQueryLogicNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryLogicName_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getIdBytes()); + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, getQueryNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryName_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, getUserDNBytes()); + if (!getUserDNBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userDN_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, getQueryBytes()); + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, query_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, getQueryVisibilityBytes()); + if (!getQueryVisibilityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, queryVisibility_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, beginDate_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, endDate_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, getQueryAuthorizationsBytes()); + if (!getQueryAuthorizationsBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, queryAuthorizations_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (expirationDate_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, expirationDate_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (pagesize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeUInt32Size(11, pagesize_); } for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, parameters_.get(i)); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.query.QueryMessages.QueryImpl)) { + return super.equals(obj); + } + datawave.webservice.query.QueryMessages.QueryImpl other = (datawave.webservice.query.QueryMessages.QueryImpl) obj; + + if (!getQueryLogicName().equals(other.getQueryLogicName())) + return false; + if (!getId().equals(other.getId())) + return false; + if (hasQueryName() != other.hasQueryName()) + return false; + if (hasQueryName()) { + if (!getQueryName().equals(other.getQueryName())) + return false; + } + if (!getUserDN().equals(other.getUserDN())) + return false; + if (!getQuery().equals(other.getQuery())) + return false; + if (!getQueryVisibility().equals(other.getQueryVisibility())) + return false; + if (hasBeginDate() != other.hasBeginDate()) + return false; + if (hasBeginDate()) { + if (getBeginDate() != other.getBeginDate()) + return false; + } + if (hasEndDate() != other.hasEndDate()) + return false; + if (hasEndDate()) { + if (getEndDate() != other.getEndDate()) + return false; + } + if (!getQueryAuthorizations().equals(other.getQueryAuthorizations())) + return false; + if (getExpirationDate() != other.getExpirationDate()) + return false; + if (getPagesize() != other.getPagesize()) + return false; + if (!getParametersList().equals(other.getParametersList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_LOGIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getQueryLogicName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasQueryName()) { + hash = (37 * hash) + QUERY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getQueryName().hashCode(); + } + hash = (37 * hash) + USER_DN_FIELD_NUMBER; + hash = (53 * hash) + getUserDN().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + QUERY_VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + getQueryVisibility().hashCode(); + if (hasBeginDate()) { + hash = (37 * hash) + BEGIN_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBeginDate()); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndDate()); + } + hash = (37 * hash) + QUERY_AUTHORIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + getQueryAuthorizations().hashCode(); + hash = (37 * hash) + EXPIRATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpirationDate()); + hash = (37 * hash) + PAGESIZE_FIELD_NUMBER; + hash = (53 * hash) + getPagesize(); + if (getParametersCount() > 0) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParametersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(com.google.protobuf.ByteString data) @@ -1677,101 +1551,129 @@ public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(byte[] } public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.query.QueryMessages.QueryImpl parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.query.QueryMessages.QueryImpl parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.query.QueryMessages.QueryImpl parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.query.QueryMessages.QueryImpl prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.query.QueryImpl} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.query.QueryMessages.QueryImplOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.query.QueryImpl) + datawave.webservice.query.QueryMessages.QueryImplOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.QueryMessages.QueryImpl.class, + datawave.webservice.query.QueryMessages.QueryImpl.Builder.class); + } + // Construct using datawave.webservice.query.QueryMessages.QueryImpl.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); queryLogicName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); + id_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); + queryName_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); userDN_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); + query_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); + queryVisibility_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); + beginDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); endDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000004); queryAuthorizations_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); + expirationDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00000200); + pagesize_ = 0; - bitField0_ = (bitField0_ & ~0x00000400); - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + } else { + parameters_ = null; + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.query.QueryMessages.internal_static_datawave_webservice_query_QueryImpl_descriptor; } + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl getDefaultInstanceForType() { return datawave.webservice.query.QueryMessages.QueryImpl.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl build() { datawave.webservice.query.QueryMessages.QueryImpl result = buildPartial(); if (!result.isInitialized()) { @@ -1780,95 +1682,112 @@ public datawave.webservice.query.QueryMessages.QueryImpl build() { return result; } + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl buildPartial() { datawave.webservice.query.QueryMessages.QueryImpl result = new datawave.webservice.query.QueryMessages.QueryImpl(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.queryLogicName_ = queryLogicName_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } result.id_ = id_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; } result.queryName_ = queryName_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } result.userDN_ = userDN_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } result.query_ = query_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } result.queryVisibility_ = queryVisibility_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.beginDate_ = beginDate_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.beginDate_ = beginDate_; + to_bitField0_ |= 0x00000002; } - result.endDate_ = endDate_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endDate_ = endDate_; + to_bitField0_ |= 0x00000004; } result.queryAuthorizations_ = queryAuthorizations_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } result.expirationDate_ = expirationDate_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } result.pagesize_ = pagesize_; - if (((bitField0_ & 0x00000800) == 0x00000800)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000800); + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + parameters_ = java.util.Collections.unmodifiableList(parameters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); } - result.parameters_ = parameters_; result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.query.QueryMessages.QueryImpl) { + return mergeFrom((datawave.webservice.query.QueryMessages.QueryImpl) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.query.QueryMessages.QueryImpl other) { if (other == datawave.webservice.query.QueryMessages.QueryImpl.getDefaultInstance()) return this; - if (other.hasQueryLogicName()) { - bitField0_ |= 0x00000001; + if (!other.getQueryLogicName().isEmpty()) { queryLogicName_ = other.queryLogicName_; - + onChanged(); } - if (other.hasId()) { - bitField0_ |= 0x00000002; + if (!other.getId().isEmpty()) { id_ = other.id_; - + onChanged(); } if (other.hasQueryName()) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; queryName_ = other.queryName_; - + onChanged(); } - if (other.hasUserDN()) { - bitField0_ |= 0x00000008; + if (!other.getUserDN().isEmpty()) { userDN_ = other.userDN_; - + onChanged(); } - if (other.hasQuery()) { - bitField0_ |= 0x00000010; + if (!other.getQuery().isEmpty()) { query_ = other.query_; - + onChanged(); } - if (other.hasQueryVisibility()) { - bitField0_ |= 0x00000020; + if (!other.getQueryVisibility().isEmpty()) { queryVisibility_ = other.queryVisibility_; - + onChanged(); } if (other.hasBeginDate()) { setBeginDate(other.getBeginDate()); @@ -1876,111 +1795,160 @@ public Builder mergeFrom(datawave.webservice.query.QueryMessages.QueryImpl other if (other.hasEndDate()) { setEndDate(other.getEndDate()); } - if (other.hasQueryAuthorizations()) { - bitField0_ |= 0x00000100; + if (!other.getQueryAuthorizations().isEmpty()) { queryAuthorizations_ = other.queryAuthorizations_; - + onChanged(); } - if (other.hasExpirationDate()) { + if (other.getExpirationDate() != 0L) { setExpirationDate(other.getExpirationDate()); } - if (other.hasPagesize()) { + if (other.getPagesize() != 0) { setPagesize(other.getPagesize()); } - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); + if (parametersBuilder_ == null) { + if (!other.parameters_.isEmpty()) { + if (parameters_.isEmpty()) { + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureParametersIsMutable(); + parameters_.addAll(other.parameters_); + } + onChanged(); + } + } else { + if (!other.parameters_.isEmpty()) { + if (parametersBuilder_.isEmpty()) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + parameters_ = other.parameters_; + bitField0_ = (bitField0_ & ~0x00000008); + parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() : null; + } else { + parametersBuilder_.addAllMessages(other.parameters_); + } } - } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasQueryLogicName()) { - - return false; - } - if (!hasId()) { + return true; + } - return false; + @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(); } - if (!hasUserDN()) { + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + queryLogicName_ = input.readStringRequireUtf8(); - return false; - } - if (!hasQuery()) { + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); - return false; - } - if (!hasQueryVisibility()) { + break; + } // case 18 + case 26: { + queryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 34: { + userDN_ = input.readStringRequireUtf8(); - return false; - } - if (!hasQueryAuthorizations()) { + break; + } // case 34 + case 42: { + query_ = input.readStringRequireUtf8(); - return false; - } - if (!hasExpirationDate()) { + break; + } // case 42 + case 50: { + queryVisibility_ = input.readStringRequireUtf8(); - return false; - } - if (!hasPagesize()) { + break; + } // case 50 + case 56: { + beginDate_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 56 + case 64: { + endDate_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 64 + case 74: { + queryAuthorizations_ = input.readStringRequireUtf8(); - return false; - } - for (int i = 0; i < getParametersCount(); i++) { - if (!getParameters(i).isInitialized()) { + break; + } // case 74 + case 80: { + expirationDate_ = input.readInt64(); - return false; - } - } - return true; - } + break; + } // case 80 + case 88: { + pagesize_ = input.readUInt32(); - public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - datawave.webservice.query.QueryMessages.QueryImpl parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + break; + } // case 88 + case 98: { + datawave.webservice.query.QueryMessages.QueryImpl.Parameter m = input + .readMessage(datawave.webservice.query.QueryMessages.QueryImpl.Parameter.parser(), extensionRegistry); + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(m); + } else { + parametersBuilder_.addMessage(m); + } + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.webservice.query.QueryMessages.QueryImpl) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // required string query_logic_name = 1; private java.lang.Object queryLogicName_ = ""; /** - * required string query_logic_name = 1; - * - * @return if it has query logic name - */ - public boolean hasQueryLogicName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return the query logic name + * @return The queryLogicName. */ public java.lang.String getQueryLogicName() { java.lang.Object ref = queryLogicName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); queryLogicName_ = s; return s; } else { @@ -1989,9 +1957,9 @@ public java.lang.String getQueryLogicName() { } /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return the query logic name byte string + * @return The bytes for queryLogicName. */ public com.google.protobuf.ByteString getQueryLogicNameBytes() { java.lang.Object ref = queryLogicName_; @@ -2005,74 +1973,64 @@ public com.google.protobuf.ByteString getQueryLogicNameBytes() { } /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * * @param value - * the new query logic name - * - * @return builder to set the query logic name to a new value + * The queryLogicName to set. + * @return This builder for chaining. */ public Builder setQueryLogicName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - queryLogicName_ = value; + queryLogicName_ = value; + onChanged(); return this; } /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * - * @return builder to clear the query logic name + * @return This builder for chaining. */ public Builder clearQueryLogicName() { - bitField0_ = (bitField0_ & ~0x00000001); - queryLogicName_ = getDefaultInstance().getQueryLogicName(); + queryLogicName_ = getDefaultInstance().getQueryLogicName(); + onChanged(); return this; } /** - * required string query_logic_name = 1; + * string query_logic_name = 1; * * @param value - * the value - * - * @return builder to set the query logic name byte string + * The bytes for queryLogicName to set. + * @return This builder for chaining. */ public Builder setQueryLogicNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - queryLogicName_ = value; + checkByteStringIsUtf8(value); + queryLogicName_ = value; + onChanged(); return this; } - // required string id = 2; private java.lang.Object id_ = ""; /** - * required string id = 2; + * string id = 2; * - * @return if it has id - */ - public boolean hasId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - * required string id = 2; - * - * @return the id + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { @@ -2081,9 +2039,9 @@ public java.lang.String getId() { } /** - * required string id = 2; + * string id = 2; * - * @return the id byte string + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; @@ -2097,74 +2055,73 @@ public com.google.protobuf.ByteString getIdBytes() { } /** - * required string id = 2; + * string id = 2; * * @param value - * the new id value - * - * @return builder to set the new id + * The id to set. + * @return This builder for chaining. */ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - id_ = value; + id_ = value; + onChanged(); return this; } /** - * required string id = 2; + * string id = 2; * - * @return builder to clear the id + * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000002); - id_ = getDefaultInstance().getId(); + id_ = getDefaultInstance().getId(); + onChanged(); return this; } /** - * required string id = 2; + * string id = 2; * * @param value - * byte string for the new id - * - * @return builder to set the id + * The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - id_ = value; + checkByteStringIsUtf8(value); + id_ = value; + onChanged(); return this; } - // optional string query_name = 3; private java.lang.Object queryName_ = ""; /** - * optional string query_name = 3; + * string query_name = 3; * - * @return if it has query name + * @return Whether the queryName field is set. */ public boolean hasQueryName() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string query_name = 3; + * string query_name = 3; * - * @return the query name + * @return The queryName. */ public java.lang.String getQueryName() { java.lang.Object ref = queryName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); queryName_ = s; return s; } else { @@ -2173,9 +2130,9 @@ public java.lang.String getQueryName() { } /** - * optional string query_name = 3; + * string query_name = 3; * - * @return the query name byte string + * @return The bytes for queryName. */ public com.google.protobuf.ByteString getQueryNameBytes() { java.lang.Object ref = queryName_; @@ -2189,74 +2146,64 @@ public com.google.protobuf.ByteString getQueryNameBytes() { } /** - * optional string query_name = 3; + * string query_name = 3; * * @param value - * the new query name - * - * @return builder to set the query name to the new value + * The queryName to set. + * @return This builder for chaining. */ public Builder setQueryName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; queryName_ = value; - + onChanged(); return this; } /** - * optional string query_name = 3; + * string query_name = 3; * - * @return builder to clear the query name + * @return This builder for chaining. */ public Builder clearQueryName() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); queryName_ = getDefaultInstance().getQueryName(); - + onChanged(); return this; } /** - * optional string query_name = 3; + * string query_name = 3; * * @param value - * new query name as byte string - * - * @return builder to set the query name to a new value + * The bytes for queryName to set. + * @return This builder for chaining. */ public Builder setQueryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000004; + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; queryName_ = value; - + onChanged(); return this; } - // required string user_DN = 4; private java.lang.Object userDN_ = ""; /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return if it has user dn - */ - public boolean hasUserDN() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - - /** - * required string user_DN = 4; - * - * @return the user dn + * @return The userDN. */ public java.lang.String getUserDN() { java.lang.Object ref = userDN_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); userDN_ = s; return s; } else { @@ -2265,9 +2212,9 @@ public java.lang.String getUserDN() { } /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return the user dn byte string + * @return The bytes for userDN. */ public com.google.protobuf.ByteString getUserDNBytes() { java.lang.Object ref = userDN_; @@ -2281,74 +2228,64 @@ public com.google.protobuf.ByteString getUserDNBytes() { } /** - * required string user_DN = 4; + * string user_DN = 4; * * @param value - * the new user dn - * - * @return builder to set the user dn to a new value + * The userDN to set. + * @return This builder for chaining. */ public Builder setUserDN(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - userDN_ = value; + userDN_ = value; + onChanged(); return this; } /** - * required string user_DN = 4; + * string user_DN = 4; * - * @return builder to clear the user dn + * @return This builder for chaining. */ public Builder clearUserDN() { - bitField0_ = (bitField0_ & ~0x00000008); - userDN_ = getDefaultInstance().getUserDN(); + userDN_ = getDefaultInstance().getUserDN(); + onChanged(); return this; } /** - * required string user_DN = 4; + * string user_DN = 4; * * @param value - * user dn byte string - * - * @return builder ot set the user dn to the new byte string + * The bytes for userDN to set. + * @return This builder for chaining. */ public Builder setUserDNBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - userDN_ = value; + checkByteStringIsUtf8(value); + userDN_ = value; + onChanged(); return this; } - // required string query = 5; private java.lang.Object query_ = ""; /** - * required string query = 5; + * string query = 5; * - * @return if it has query - */ - public boolean hasQuery() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - - /** - * required string query = 5; - * - * @return the query + * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } else { @@ -2357,9 +2294,9 @@ public java.lang.String getQuery() { } /** - * required string query = 5; + * string query = 5; * - * @return the query byte string + * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; @@ -2373,74 +2310,64 @@ public com.google.protobuf.ByteString getQueryBytes() { } /** - * required string query = 5; + * string query = 5; * * @param value - * the new query value - * - * @return builder to set the query to a new value + * The query to set. + * @return This builder for chaining. */ public Builder setQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - query_ = value; + query_ = value; + onChanged(); return this; } /** - * required string query = 5; + * string query = 5; * - * @return builder to clear the query + * @return This builder for chaining. */ public Builder clearQuery() { - bitField0_ = (bitField0_ & ~0x00000010); - query_ = getDefaultInstance().getQuery(); + query_ = getDefaultInstance().getQuery(); + onChanged(); return this; } /** - * required string query = 5; + * string query = 5; * * @param value - * byte string for the new query value - * - * @return builder to set the query to a new value + * The bytes for query to set. + * @return This builder for chaining. */ public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - query_ = value; + checkByteStringIsUtf8(value); + query_ = value; + onChanged(); return this; } - // required string query_visibility = 6; private java.lang.Object queryVisibility_ = ""; /** - * required string query_visibility = 6; - * - * @return if it has query visibility - */ - public boolean hasQueryVisibility() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - - /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return the query visibility + * @return The queryVisibility. */ public java.lang.String getQueryVisibility() { java.lang.Object ref = queryVisibility_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); queryVisibility_ = s; return s; } else { @@ -2449,9 +2376,9 @@ public java.lang.String getQueryVisibility() { } /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return query visibility byte string + * @return The bytes for queryVisibility. */ public com.google.protobuf.ByteString getQueryVisibilityBytes() { java.lang.Object ref = queryVisibility_; @@ -2465,170 +2392,160 @@ public com.google.protobuf.ByteString getQueryVisibilityBytes() { } /** - * required string query_visibility = 6; + * string query_visibility = 6; * * @param value - * the new query visibility - * - * @return builder to set query visibility + * The queryVisibility to set. + * @return This builder for chaining. */ public Builder setQueryVisibility(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; - queryVisibility_ = value; + queryVisibility_ = value; + onChanged(); return this; } /** - * required string query_visibility = 6; + * string query_visibility = 6; * - * @return builder to clear query visibility + * @return This builder for chaining. */ public Builder clearQueryVisibility() { - bitField0_ = (bitField0_ & ~0x00000020); - queryVisibility_ = getDefaultInstance().getQueryVisibility(); + queryVisibility_ = getDefaultInstance().getQueryVisibility(); + onChanged(); return this; } /** - * required string query_visibility = 6; + * string query_visibility = 6; * * @param value - * query visibility byte string - * - * @return builder to set query visibility to new byte string + * The bytes for queryVisibility to set. + * @return This builder for chaining. */ public Builder setQueryVisibilityBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; - queryVisibility_ = value; + checkByteStringIsUtf8(value); + queryVisibility_ = value; + onChanged(); return this; } - // optional int64 begin_date = 7; private long beginDate_; /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return if it has begin date + * @return Whether the beginDate field is set. */ + @java.lang.Override public boolean hasBeginDate() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return begin date + * @return The beginDate. */ + @java.lang.Override public long getBeginDate() { return beginDate_; } /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * * @param value - * the new begin date - * - * @return builder to set the begin date to a new value + * The beginDate to set. + * @return This builder for chaining. */ public Builder setBeginDate(long value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000002; beginDate_ = value; - + onChanged(); return this; } /** - * optional int64 begin_date = 7; + * int64 begin_date = 7; * - * @return builder to clear the begin date + * @return This builder for chaining. */ public Builder clearBeginDate() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); beginDate_ = 0L; - + onChanged(); return this; } - // optional int64 end_date = 8; private long endDate_; /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return if it has end date + * @return Whether the endDate field is set. */ + @java.lang.Override public boolean hasEndDate() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return the end date + * @return The endDate. */ + @java.lang.Override public long getEndDate() { return endDate_; } /** - * optional int64 end_date = 8; + * int64 end_date = 8; * * @param value - * the new end date - * - * @return builder to set end date to new value + * The endDate to set. + * @return This builder for chaining. */ public Builder setEndDate(long value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000004; endDate_ = value; - + onChanged(); return this; } /** - * optional int64 end_date = 8; + * int64 end_date = 8; * - * @return builder to clear the end date + * @return This builder for chaining. */ public Builder clearEndDate() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000004); endDate_ = 0L; - + onChanged(); return this; } - // required string query_authorizations = 9; private java.lang.Object queryAuthorizations_ = ""; /** - * required string query_authorizations = 9; - * - * @return if it has query authorizations - */ - public boolean hasQueryAuthorizations() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - - /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return query authorizations + * @return The queryAuthorizations. */ public java.lang.String getQueryAuthorizations() { java.lang.Object ref = queryAuthorizations_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); queryAuthorizations_ = s; return s; } else { @@ -2637,9 +2554,9 @@ public java.lang.String getQueryAuthorizations() { } /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return query authorizations byte string + * @return The bytes for queryAuthorizations. */ public com.google.protobuf.ByteString getQueryAuthorizationsBytes() { java.lang.Object ref = queryAuthorizations_; @@ -2653,350 +2570,457 @@ public com.google.protobuf.ByteString getQueryAuthorizationsBytes() { } /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * * @param value - * the new query authorizations - * - * @return builder to set query authorizations to provided value + * The queryAuthorizations to set. + * @return This builder for chaining. */ public Builder setQueryAuthorizations(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; - queryAuthorizations_ = value; + queryAuthorizations_ = value; + onChanged(); return this; } /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * - * @return builder to clear query authorizations + * @return This builder for chaining. */ public Builder clearQueryAuthorizations() { - bitField0_ = (bitField0_ & ~0x00000100); - queryAuthorizations_ = getDefaultInstance().getQueryAuthorizations(); + queryAuthorizations_ = getDefaultInstance().getQueryAuthorizations(); + onChanged(); return this; } /** - * required string query_authorizations = 9; + * string query_authorizations = 9; * * @param value - * query authorization byte string - * - * @return builder to set query authorization to new byte string + * The bytes for queryAuthorizations to set. + * @return This builder for chaining. */ public Builder setQueryAuthorizationsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; - queryAuthorizations_ = value; + checkByteStringIsUtf8(value); + queryAuthorizations_ = value; + onChanged(); return this; } - // required int64 expiration_date = 10; private long expirationDate_; /** - * required int64 expiration_date = 10; - * - * @return if it has expiration date - */ - public boolean hasExpirationDate() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - - /** - * required int64 expiration_date = 10; + * int64 expiration_date = 10; * - * @return the expiration date + * @return The expirationDate. */ + @java.lang.Override public long getExpirationDate() { return expirationDate_; } /** - * required int64 expiration_date = 10; + * int64 expiration_date = 10; * * @param value - * the expiration date - * - * @return builder to set expiration date to new value + * The expirationDate to set. + * @return This builder for chaining. */ public Builder setExpirationDate(long value) { - bitField0_ |= 0x00000200; - expirationDate_ = value; + expirationDate_ = value; + onChanged(); return this; } /** - * required int64 expiration_date = 10; + * int64 expiration_date = 10; * - * @return builder to clear expiration date + * @return This builder for chaining. */ public Builder clearExpirationDate() { - bitField0_ = (bitField0_ & ~0x00000200); - expirationDate_ = 0L; + expirationDate_ = 0L; + onChanged(); return this; } - // required uint32 pagesize = 11 [default = 0]; private int pagesize_; /** - * required uint32 pagesize = 11 [default = 0]; - * - * @return if it has page size - */ - public boolean hasPagesize() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - - /** - * required uint32 pagesize = 11 [default = 0]; + * uint32 pagesize = 11; * - * @return page size + * @return The pagesize. */ + @java.lang.Override public int getPagesize() { return pagesize_; } /** - * required uint32 pagesize = 11 [default = 0]; + * uint32 pagesize = 11; * * @param value - * new page size - * - * @return builder to set page size to new value + * The pagesize to set. + * @return This builder for chaining. */ public Builder setPagesize(int value) { - bitField0_ |= 0x00000400; - pagesize_ = value; + pagesize_ = value; + onChanged(); return this; } /** - * required uint32 pagesize = 11 [default = 0]; + * uint32 pagesize = 11; * - * @return builder to clear page size + * @return This builder for chaining. */ public Builder clearPagesize() { - bitField0_ = (bitField0_ & ~0x00000400); - pagesize_ = 0; + pagesize_ = 0; + onChanged(); return this; } - // repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; private java.util.List parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000800) == 0x00000800)) { + if (!((bitField0_ & 0x00000008) != 0)) { parameters_ = new java.util.ArrayList(parameters_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000008; } } + private com.google.protobuf.RepeatedFieldBuilderV3 parametersBuilder_; + /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return list of parameters */ public java.util.List getParametersList() { - return java.util.Collections.unmodifiableList(parameters_); + if (parametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameters_); + } else { + return parametersBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return the number of parameters in the list */ public int getParametersCount() { - return parameters_.size(); + if (parametersBuilder_ == null) { + return parameters_.size(); + } else { + return parametersBuilder_.getCount(); + } } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * - * @return the parameter at the provided index */ public datawave.webservice.query.QueryMessages.QueryImpl.Parameter getParameters(int index) { - return parameters_.get(index); + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * @param value - * the new value to be set at the provided index - * - * @return builder to set parameter at provided index */ public Builder setParameters(int index, datawave.webservice.query.QueryMessages.QueryImpl.Parameter value) { - if (value == null) { - throw new NullPointerException(); + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.set(index, value); + onChanged(); + } else { + parametersBuilder_.setMessage(index, value); } - ensureParametersIsMutable(); - parameters_.set(index, value); - return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * @param builderForValue - * paramater value to be set at provided index - * - * @return builder to set parameter at provided index */ public Builder setParameters(int index, datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder builderForValue) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.set(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param value - * the new parameter to add to the list - * - * @return builder to add parameter */ public Builder addParameters(datawave.webservice.query.QueryMessages.QueryImpl.Parameter value) { - if (value == null) { - throw new NullPointerException(); + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(value); + onChanged(); + } else { + parametersBuilder_.addMessage(value); } - ensureParametersIsMutable(); - parameters_.add(value); - return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * @param value - * the new parameter to add at the index provided - * - * @return builder to add parameter */ public Builder addParameters(int index, datawave.webservice.query.QueryMessages.QueryImpl.Parameter value) { - if (value == null) { - throw new NullPointerException(); + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParametersIsMutable(); + parameters_.add(index, value); + onChanged(); + } else { + parametersBuilder_.addMessage(index, value); } - ensureParametersIsMutable(); - parameters_.add(index, value); - return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param builderForValue - * parameter to add to the list of parameters - * - * @return builder to add parameters */ public Builder addParameters(datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder builderForValue) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * @param builderForValue - * builder to creat the value to add at the provided index - * - * @return builder to add parameter at provided index */ public Builder addParameters(int index, datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder builderForValue) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.add(index, builderForValue.build()); + onChanged(); + } else { + parametersBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param values - * iterator of values to add to the parameter list - * - * @return builder to add parameters */ public Builder addAllParameters(java.lang.Iterable values) { - ensureParametersIsMutable(); - super.addAll(values, parameters_); - + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); + onChanged(); + } else { + parametersBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @return builder to clear the parameters list */ public Builder clearParameters() { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - + if (parametersBuilder_ == null) { + parameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + parametersBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; - * - * @param index - * the index - * - * @return builder to remove parameters at the provided index */ public Builder removeParameters(int index) { - ensureParametersIsMutable(); - parameters_.remove(index); - + if (parametersBuilder_ == null) { + ensureParametersIsMutable(); + parameters_.remove(index); + onChanged(); + } else { + parametersBuilder_.remove(index); + } return this; } + /** + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder getParametersBuilder(int index) { + return getParametersFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder getParametersOrBuilder(int index) { + if (parametersBuilder_ == null) { + return parameters_.get(index); + } else { + return parametersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; + */ + public java.util.List getParametersOrBuilderList() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameters_); + } + } + + /** + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder addParametersBuilder() { + return getParametersFieldBuilder().addBuilder(datawave.webservice.query.QueryMessages.QueryImpl.Parameter.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.Parameter.Builder addParametersBuilder(int index) { + return getParametersFieldBuilder().addBuilder(index, datawave.webservice.query.QueryMessages.QueryImpl.Parameter.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.QueryImpl.Parameter parameters = 12; + */ + public java.util.List getParametersBuilderList() { + return getParametersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + @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:datawave.webservice.query.QueryImpl) } + // @@protoc_insertion_point(class_scope:datawave.webservice.query.QueryImpl) + private static final datawave.webservice.query.QueryMessages.QueryImpl DEFAULT_INSTANCE; static { - defaultInstance = new QueryImpl(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.query.QueryMessages.QueryImpl(); + } + + public static datawave.webservice.query.QueryMessages.QueryImpl getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryImpl 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 datawave.webservice.query.QueryMessages.QueryImpl getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.webservice.query.QueryImpl) } - static {} + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_query_QueryImpl_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_query_QueryImpl_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_query_QueryImpl_Parameter_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_query_QueryImpl_Parameter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { + "\n\024query_messages.proto\022\031datawave.webserv" + "ice.query\"\252\003\n\tQueryImpl\022\030\n\020query_logic_n" + + "ame\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\027\n\nquery_name\030\003 \001(" + + "\tH\000\210\001\001\022\017\n\007user_DN\030\004 \001(\t\022\r\n\005query\030\005 \001(\t\022\030" + + "\n\020query_visibility\030\006 \001(\t\022\027\n\nbegin_date\030\007" + + " \001(\003H\001\210\001\001\022\025\n\010end_date\030\010 \001(\003H\002\210\001\001\022\034\n\024quer" + + "y_authorizations\030\t \001(\t\022\027\n\017expiration_dat" + + "e\030\n \001(\003\022\020\n\010pagesize\030\013 \001(\r\022B\n\nparameters\030" + + "\014 \003(\0132..datawave.webservice.query.QueryI" + "mpl.Parameter\032<\n\tParameter\022\026\n\016parameter_" + + "name\030\001 \001(\t\022\027\n\017parameter_value\030\002 \001(\tB\r\n\013_" + + "query_nameB\r\n\013_begin_dateB\013\n\t_end_dateB\035" + "\n\031datawave.webservice.queryH\003b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_datawave_webservice_query_QueryImpl_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_webservice_query_QueryImpl_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_query_QueryImpl_descriptor, + new java.lang.String[] {"QueryLogicName", "Id", "QueryName", "UserDN", "Query", "QueryVisibility", "BeginDate", "EndDate", + "QueryAuthorizations", "ExpirationDate", "Pagesize", "Parameters", "QueryName", "BeginDate", "EndDate",}); + internal_static_datawave_webservice_query_QueryImpl_Parameter_descriptor = internal_static_datawave_webservice_query_QueryImpl_descriptor + .getNestedTypes().get(0); + internal_static_datawave_webservice_query_QueryImpl_Parameter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_query_QueryImpl_Parameter_descriptor, new java.lang.String[] {"ParameterName", "ParameterValue",}); + } // @@protoc_insertion_point(outer_class_scope) } diff --git a/web-services/client/src/main/java/datawave/webservice/query/exception/ExceptionMessages.java b/web-services/client/src/main/java/datawave/webservice/query/exception/ExceptionMessages.java index 9f5d0a788b7..aa065d5b427 100644 --- a/web-services/client/src/main/java/datawave/webservice/query/exception/ExceptionMessages.java +++ b/web-services/client/src/main/java/datawave/webservice/query/exception/ExceptionMessages.java @@ -8,49 +8,53 @@ private ExceptionMessages() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - public interface QueryExceptionTypeOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface QueryExceptionTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.query.exception.QueryExceptionType) + com.google.protobuf.MessageOrBuilder { - // optional string message = 1; /** - * optional string message = 1; + * string message = 1; * - * @return if it has message + * @return Whether the message field is set. */ boolean hasMessage(); /** - * optional string message = 1; + * string message = 1; * - * @return the message + * @return The message. */ java.lang.String getMessage(); /** - * optional string message = 1; + * string message = 1; * - * @return the message byte string + * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); - // optional string cause = 2; /** - * optional string cause = 2; + * string cause = 2; * - * @return if it has cause + * @return Whether the cause field is set. */ boolean hasCause(); /** - * optional string cause = 2; + * string cause = 2; * - * @return the cause + * @return The cause. */ java.lang.String getCause(); /** - * optional string cause = 2; + * string cause = 2; * - * @return the cause byte string + * @return The bytes for cause. */ com.google.protobuf.ByteString getCauseBytes(); } @@ -58,95 +62,63 @@ public interface QueryExceptionTypeOrBuilder extends com.google.protobuf.Message /** * Protobuf type {@code datawave.webservice.query.exception.QueryExceptionType} */ - public static final class QueryExceptionType extends com.google.protobuf.GeneratedMessageLite implements QueryExceptionTypeOrBuilder { + public static final class QueryExceptionType extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.query.exception.QueryExceptionType) + QueryExceptionTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryExceptionType.newBuilder() to construct. - private QueryExceptionType(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private QueryExceptionType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private QueryExceptionType(boolean noInit) {} - - private static final QueryExceptionType defaultInstance; - - public static QueryExceptionType getDefaultInstance() { - return defaultInstance; + private QueryExceptionType() { + message_ = ""; + cause_ = ""; } - public QueryExceptionType getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryExceptionType(); } - private QueryExceptionType(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - message_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - cause_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public QueryExceptionType parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryExceptionType(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.exception.ExceptionMessages.internal_static_datawave_webservice_query_exception_QueryExceptionType_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.exception.ExceptionMessages.internal_static_datawave_webservice_query_exception_QueryExceptionType_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.class, + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder.class); } private int bitField0_; - // optional string message = 1; public static final int MESSAGE_FIELD_NUMBER = 1; - private java.lang.Object message_; + private volatile java.lang.Object message_; /** - * optional string message = 1; + * string message = 1; * - * @return if it has a message + * @return Whether the message field is set. */ + @java.lang.Override public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string message = 1; + * string message = 1; * - * @return the message + * @return The message. */ + @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { @@ -154,18 +126,17 @@ public java.lang.String getMessage() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } + message_ = s; return s; } } /** - * optional string message = 1; + * string message = 1; * - * @return the message byte string + * @return The bytes for message. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { @@ -177,24 +148,25 @@ public com.google.protobuf.ByteString getMessageBytes() { } } - // optional string cause = 2; public static final int CAUSE_FIELD_NUMBER = 2; - private java.lang.Object cause_; + private volatile java.lang.Object cause_; /** - * optional string cause = 2; + * string cause = 2; * - * @return if it has a cause + * @return Whether the cause field is set. */ + @java.lang.Override public boolean hasCause() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional string cause = 2; + * string cause = 2; * - * @return the cause + * @return The cause. */ + @java.lang.Override public java.lang.String getCause() { java.lang.Object ref = cause_; if (ref instanceof java.lang.String) { @@ -202,18 +174,17 @@ public java.lang.String getCause() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - cause_ = s; - } + cause_ = s; return s; } } /** - * optional string cause = 2; + * string cause = 2; * - * @return the cause byte string + * @return The bytes for cause. */ + @java.lang.Override public com.google.protobuf.ByteString getCauseBytes() { java.lang.Object ref = cause_; if (ref instanceof java.lang.String) { @@ -225,55 +196,104 @@ public com.google.protobuf.ByteString getCauseBytes() { } } - private void initFields() { - message_ = ""; - cause_ = ""; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getMessageBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getCauseBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getMessageBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getCauseBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType)) { + return super.equals(obj); + } + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType other = (datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType) obj; + + if (hasMessage() != other.hasMessage()) + return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) + return false; + } + if (hasCause() != other.hasCause()) + return false; + if (hasCause()) { + if (!getCause().equals(other.getCause())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + if (hasCause()) { + hash = (37 * hash) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(com.google.protobuf.ByteString data) @@ -297,67 +317,86 @@ public static datawave.webservice.query.exception.ExceptionMessages.QueryExcepti } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.query.exception.QueryExceptionType} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.query.exception.QueryExceptionType) + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.exception.ExceptionMessages.internal_static_datawave_webservice_query_exception_QueryExceptionType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.exception.ExceptionMessages.internal_static_datawave_webservice_query_exception_QueryExceptionType_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.class, + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder.class); + } + // Construct using datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); message_ = ""; @@ -367,14 +406,17 @@ public Builder clear() { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.query.exception.ExceptionMessages.internal_static_datawave_webservice_query_exception_QueryExceptionType_descriptor; } + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getDefaultInstanceForType() { return datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType build() { datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType result = buildPartial(); if (!result.isInitialized()) { @@ -383,82 +425,151 @@ public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType return result; } + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType buildPartial() { datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType result = new datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.message_ = message_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.cause_ = cause_; result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType) { + return mergeFrom((datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType other) { if (other == datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()) return this; if (other.hasMessage()) { bitField0_ |= 0x00000001; message_ = other.message_; - + onChanged(); } if (other.hasCause()) { bitField0_ |= 0x00000002; cause_ = other.cause_; - + 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 { - datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + cause_ = 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) { - parsedMessage = (datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // optional string message = 1; private java.lang.Object message_ = ""; /** - * optional string message = 1; + * string message = 1; * - * @return if it has a message + * @return Whether the message field is set. */ public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string message = 1; + * string message = 1; * - * @return the message + * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { @@ -467,9 +578,9 @@ public java.lang.String getMessage() { } /** - * optional string message = 1; + * string message = 1; * - * @return the message byte string + * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; @@ -483,12 +594,11 @@ public com.google.protobuf.ByteString getMessageBytes() { } /** - * optional string message = 1; + * string message = 1; * * @param value - * the message - * - * @return builder to set the message + * The message to set. + * @return This builder for chaining. */ public Builder setMessage(java.lang.String value) { if (value == null) { @@ -496,61 +606,61 @@ public Builder setMessage(java.lang.String value) { } bitField0_ |= 0x00000001; message_ = value; - + onChanged(); return this; } /** - * optional string message = 1; + * string message = 1; * - * @return builder to clear the message + * @return This builder for chaining. */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000001); message_ = getDefaultInstance().getMessage(); - + onChanged(); return this; } /** - * optional string message = 1; + * string message = 1; * * @param value - * the value byte string - * - * @return builder to set the message to provided byte string + * The bytes for message to set. + * @return This builder for chaining. */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; message_ = value; - + onChanged(); return this; } - // optional string cause = 2; private java.lang.Object cause_ = ""; /** - * optional string cause = 2; + * string cause = 2; * - * @return if it has a cause + * @return Whether the cause field is set. */ public boolean hasCause() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional string cause = 2; + * string cause = 2; * - * @return the cause + * @return The cause. */ public java.lang.String getCause() { java.lang.Object ref = cause_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); cause_ = s; return s; } else { @@ -559,9 +669,9 @@ public java.lang.String getCause() { } /** - * optional string cause = 2; + * string cause = 2; * - * @return the cause byte string + * @return The bytes for cause. */ public com.google.protobuf.ByteString getCauseBytes() { java.lang.Object ref = cause_; @@ -575,12 +685,11 @@ public com.google.protobuf.ByteString getCauseBytes() { } /** - * optional string cause = 2; + * string cause = 2; * * @param value - * the cause - * - * @return builder to set the cause to the provided value + * The cause to set. + * @return This builder for chaining. */ public Builder setCause(java.lang.String value) { if (value == null) { @@ -588,52 +697,116 @@ public Builder setCause(java.lang.String value) { } bitField0_ |= 0x00000002; cause_ = value; - + onChanged(); return this; } /** - * optional string cause = 2; + * string cause = 2; * - * @return builder to clear the cause + * @return This builder for chaining. */ public Builder clearCause() { bitField0_ = (bitField0_ & ~0x00000002); cause_ = getDefaultInstance().getCause(); - + onChanged(); return this; } /** - * optional string cause = 2; + * string cause = 2; * * @param value - * new cause value as byte string - * - * @return builder to set cause to byte string + * The bytes for cause to set. + * @return This builder for chaining. */ public Builder setCauseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000002; cause_ = value; - + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.webservice.query.exception.QueryExceptionType) } + // @@protoc_insertion_point(class_scope:datawave.webservice.query.exception.QueryExceptionType) + private static final datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType DEFAULT_INSTANCE; static { - defaultInstance = new QueryExceptionType(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType(); + } + + public static datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryExceptionType 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 datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.webservice.query.exception.QueryExceptionType) } - static {} + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_query_exception_QueryExceptionType_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_query_exception_QueryExceptionType_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\030exception_messages.proto\022#datawave.web" + "service.query.exception\"T\n\022QueryExceptio" + + "nType\022\024\n\007message\030\001 \001(\tH\000\210\001\001\022\022\n\005cause\030\002 \001" + + "(\tH\001\210\001\001B\n\n\010_messageB\010\n\006_causeB\'\n#datawav" + "e.webservice.query.exceptionH\003b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_datawave_webservice_query_exception_QueryExceptionType_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_webservice_query_exception_QueryExceptionType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_query_exception_QueryExceptionType_descriptor, + new java.lang.String[] {"Message", "Cause", "Message", "Cause",}); + } // @@protoc_insertion_point(outer_class_scope) } diff --git a/web-services/client/src/main/java/datawave/webservice/query/metric/MetricsMessages.java b/web-services/client/src/main/java/datawave/webservice/query/metric/MetricsMessages.java new file mode 100644 index 00000000000..ad0464fd652 --- /dev/null +++ b/web-services/client/src/main/java/datawave/webservice/query/metric/MetricsMessages.java @@ -0,0 +1,3694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: metrics_messages.proto + +package datawave.webservice.query.metric; + +public final class MetricsMessages { + private MetricsMessages() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface PageMetricOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.query.metric.PageMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 pagesize = 1; + * + * @return The pagesize. + */ + long getPagesize(); + + /** + * uint64 return_time = 2; + * + * @return The returnTime. + */ + long getReturnTime(); + } + + /** + * Protobuf type {@code datawave.webservice.query.metric.PageMetric} + */ + public static final class PageMetric extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.query.metric.PageMetric) + PageMetricOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PageMetric.newBuilder() to construct. + private PageMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PageMetric() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PageMetric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_PageMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_PageMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.metric.MetricsMessages.PageMetric.class, + datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder.class); + } + + public static final int PAGESIZE_FIELD_NUMBER = 1; + private long pagesize_; + + /** + * uint64 pagesize = 1; + * + * @return The pagesize. + */ + @java.lang.Override + public long getPagesize() { + return pagesize_; + } + + public static final int RETURN_TIME_FIELD_NUMBER = 2; + private long returnTime_; + + /** + * uint64 return_time = 2; + * + * @return The returnTime. + */ + @java.lang.Override + public long getReturnTime() { + return returnTime_; + } + + 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 (pagesize_ != 0L) { + output.writeUInt64(1, pagesize_); + } + if (returnTime_ != 0L) { + output.writeUInt64(2, returnTime_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (pagesize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, pagesize_); + } + if (returnTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, returnTime_); + } + 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 datawave.webservice.query.metric.MetricsMessages.PageMetric)) { + return super.equals(obj); + } + datawave.webservice.query.metric.MetricsMessages.PageMetric other = (datawave.webservice.query.metric.MetricsMessages.PageMetric) obj; + + if (getPagesize() != other.getPagesize()) + return false; + if (getReturnTime() != other.getReturnTime()) + 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) + PAGESIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPagesize()); + hash = (37 * hash) + RETURN_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReturnTime()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric 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 datawave.webservice.query.metric.MetricsMessages.PageMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric 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 datawave.webservice.query.metric.MetricsMessages.PageMetric parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric 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(datawave.webservice.query.metric.MetricsMessages.PageMetric 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 datawave.webservice.query.metric.PageMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.query.metric.PageMetric) + datawave.webservice.query.metric.MetricsMessages.PageMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_PageMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_PageMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.metric.MetricsMessages.PageMetric.class, + datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder.class); + } + + // Construct using datawave.webservice.query.metric.MetricsMessages.PageMetric.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + pagesize_ = 0L; + + returnTime_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_PageMetric_descriptor; + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.PageMetric getDefaultInstanceForType() { + return datawave.webservice.query.metric.MetricsMessages.PageMetric.getDefaultInstance(); + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.PageMetric build() { + datawave.webservice.query.metric.MetricsMessages.PageMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.PageMetric buildPartial() { + datawave.webservice.query.metric.MetricsMessages.PageMetric result = new datawave.webservice.query.metric.MetricsMessages.PageMetric(this); + result.pagesize_ = pagesize_; + result.returnTime_ = returnTime_; + onBuilt(); + return result; + } + + @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 datawave.webservice.query.metric.MetricsMessages.PageMetric) { + return mergeFrom((datawave.webservice.query.metric.MetricsMessages.PageMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datawave.webservice.query.metric.MetricsMessages.PageMetric other) { + if (other == datawave.webservice.query.metric.MetricsMessages.PageMetric.getDefaultInstance()) + return this; + if (other.getPagesize() != 0L) { + setPagesize(other.getPagesize()); + } + if (other.getReturnTime() != 0L) { + setReturnTime(other.getReturnTime()); + } + 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: { + pagesize_ = input.readUInt64(); + + break; + } // case 8 + case 16: { + returnTime_ = input.readUInt64(); + + 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 long pagesize_; + + /** + * uint64 pagesize = 1; + * + * @return The pagesize. + */ + @java.lang.Override + public long getPagesize() { + return pagesize_; + } + + /** + * uint64 pagesize = 1; + * + * @param value + * The pagesize to set. + * @return This builder for chaining. + */ + public Builder setPagesize(long value) { + + pagesize_ = value; + onChanged(); + return this; + } + + /** + * uint64 pagesize = 1; + * + * @return This builder for chaining. + */ + public Builder clearPagesize() { + + pagesize_ = 0L; + onChanged(); + return this; + } + + private long returnTime_; + + /** + * uint64 return_time = 2; + * + * @return The returnTime. + */ + @java.lang.Override + public long getReturnTime() { + return returnTime_; + } + + /** + * uint64 return_time = 2; + * + * @param value + * The returnTime to set. + * @return This builder for chaining. + */ + public Builder setReturnTime(long value) { + + returnTime_ = value; + onChanged(); + return this; + } + + /** + * uint64 return_time = 2; + * + * @return This builder for chaining. + */ + public Builder clearReturnTime() { + + returnTime_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:datawave.webservice.query.metric.PageMetric) + } + + // @@protoc_insertion_point(class_scope:datawave.webservice.query.metric.PageMetric) + private static final datawave.webservice.query.metric.MetricsMessages.PageMetric DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datawave.webservice.query.metric.MetricsMessages.PageMetric(); + } + + public static datawave.webservice.query.metric.MetricsMessages.PageMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PageMetric 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 datawave.webservice.query.metric.MetricsMessages.PageMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryMetricOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.query.metric.QueryMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * string query_type = 1; + * + * @return Whether the queryType field is set. + */ + boolean hasQueryType(); + + /** + * string query_type = 1; + * + * @return The queryType. + */ + java.lang.String getQueryType(); + + /** + * string query_type = 1; + * + * @return The bytes for queryType. + */ + com.google.protobuf.ByteString getQueryTypeBytes(); + + /** + * string user = 2; + * + * @return Whether the user field is set. + */ + boolean hasUser(); + + /** + * string user = 2; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * string user = 2; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * int64 create_date = 3; + * + * @return Whether the createDate field is set. + */ + boolean hasCreateDate(); + + /** + * int64 create_date = 3; + * + * @return The createDate. + */ + long getCreateDate(); + + /** + * string query_id = 4; + * + * @return Whether the queryId field is set. + */ + boolean hasQueryId(); + + /** + * string query_id = 4; + * + * @return The queryId. + */ + java.lang.String getQueryId(); + + /** + * string query_id = 4; + * + * @return The bytes for queryId. + */ + com.google.protobuf.ByteString getQueryIdBytes(); + + /** + * uint64 setup_time = 5; + * + * @return Whether the setupTime field is set. + */ + boolean hasSetupTime(); + + /** + * uint64 setup_time = 5; + * + * @return The setupTime. + */ + long getSetupTime(); + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + java.util.List getPageTimesList(); + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + datawave.webservice.query.metric.MetricsMessages.PageMetric getPageTimes(int index); + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + int getPageTimesCount(); + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + java.util.List getPageTimesOrBuilderList(); + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + datawave.webservice.query.metric.MetricsMessages.PageMetricOrBuilder getPageTimesOrBuilder(int index); + } + + /** + * Protobuf type {@code datawave.webservice.query.metric.QueryMetric} + */ + public static final class QueryMetric extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.query.metric.QueryMetric) + QueryMetricOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryMetric.newBuilder() to construct. + private QueryMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryMetric() { + queryType_ = ""; + user_ = ""; + queryId_ = ""; + pageTimes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryMetric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.metric.MetricsMessages.QueryMetric.class, + datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder.class); + } + + private int bitField0_; + public static final int QUERY_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object queryType_; + + /** + * string query_type = 1; + * + * @return Whether the queryType field is set. + */ + @java.lang.Override + public boolean hasQueryType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * string query_type = 1; + * + * @return The queryType. + */ + @java.lang.Override + public java.lang.String getQueryType() { + java.lang.Object ref = queryType_; + 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(); + queryType_ = s; + return s; + } + } + + /** + * string query_type = 1; + * + * @return The bytes for queryType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryTypeBytes() { + java.lang.Object ref = queryType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 2; + private volatile java.lang.Object user_; + + /** + * string user = 2; + * + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * string user = 2; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + + /** + * string user = 2; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_DATE_FIELD_NUMBER = 3; + private long createDate_; + + /** + * int64 create_date = 3; + * + * @return Whether the createDate field is set. + */ + @java.lang.Override + public boolean hasCreateDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * int64 create_date = 3; + * + * @return The createDate. + */ + @java.lang.Override + public long getCreateDate() { + return createDate_; + } + + public static final int QUERY_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object queryId_; + + /** + * string query_id = 4; + * + * @return Whether the queryId field is set. + */ + @java.lang.Override + public boolean hasQueryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * string query_id = 4; + * + * @return The queryId. + */ + @java.lang.Override + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + 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(); + queryId_ = s; + return s; + } + } + + /** + * string query_id = 4; + * + * @return The bytes for queryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SETUP_TIME_FIELD_NUMBER = 5; + private long setupTime_; + + /** + * uint64 setup_time = 5; + * + * @return Whether the setupTime field is set. + */ + @java.lang.Override + public boolean hasSetupTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * uint64 setup_time = 5; + * + * @return The setupTime. + */ + @java.lang.Override + public long getSetupTime() { + return setupTime_; + } + + public static final int PAGE_TIMES_FIELD_NUMBER = 6; + private java.util.List pageTimes_; + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + @java.lang.Override + public java.util.List getPageTimesList() { + return pageTimes_; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + @java.lang.Override + public java.util.List getPageTimesOrBuilderList() { + return pageTimes_; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + @java.lang.Override + public int getPageTimesCount() { + return pageTimes_.size(); + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.PageMetric getPageTimes(int index) { + return pageTimes_.get(index); + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.PageMetricOrBuilder getPageTimesOrBuilder(int index) { + return pageTimes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, user_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, createDate_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeUInt64(5, setupTime_); + } + for (int i = 0; i < pageTimes_.size(); i++) { + output.writeMessage(6, pageTimes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, user_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, createDate_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, queryId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(5, setupTime_); + } + for (int i = 0; i < pageTimes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, pageTimes_.get(i)); + } + 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 datawave.webservice.query.metric.MetricsMessages.QueryMetric)) { + return super.equals(obj); + } + datawave.webservice.query.metric.MetricsMessages.QueryMetric other = (datawave.webservice.query.metric.MetricsMessages.QueryMetric) obj; + + if (hasQueryType() != other.hasQueryType()) + return false; + if (hasQueryType()) { + if (!getQueryType().equals(other.getQueryType())) + return false; + } + if (hasUser() != other.hasUser()) + return false; + if (hasUser()) { + if (!getUser().equals(other.getUser())) + return false; + } + if (hasCreateDate() != other.hasCreateDate()) + return false; + if (hasCreateDate()) { + if (getCreateDate() != other.getCreateDate()) + return false; + } + if (hasQueryId() != other.hasQueryId()) + return false; + if (hasQueryId()) { + if (!getQueryId().equals(other.getQueryId())) + return false; + } + if (hasSetupTime() != other.hasSetupTime()) + return false; + if (hasSetupTime()) { + if (getSetupTime() != other.getSetupTime()) + return false; + } + if (!getPageTimesList().equals(other.getPageTimesList())) + 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 (hasQueryType()) { + hash = (37 * hash) + QUERY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getQueryType().hashCode(); + } + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasCreateDate()) { + hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreateDate()); + } + if (hasQueryId()) { + hash = (37 * hash) + QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getQueryId().hashCode(); + } + if (hasSetupTime()) { + hash = (37 * hash) + SETUP_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSetupTime()); + } + if (getPageTimesCount() > 0) { + hash = (37 * hash) + PAGE_TIMES_FIELD_NUMBER; + hash = (53 * hash) + getPageTimesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric 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 datawave.webservice.query.metric.MetricsMessages.QueryMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric 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 datawave.webservice.query.metric.MetricsMessages.QueryMetric parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric 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(datawave.webservice.query.metric.MetricsMessages.QueryMetric 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 datawave.webservice.query.metric.QueryMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.query.metric.QueryMetric) + datawave.webservice.query.metric.MetricsMessages.QueryMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.metric.MetricsMessages.QueryMetric.class, + datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder.class); + } + + // Construct using datawave.webservice.query.metric.MetricsMessages.QueryMetric.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + queryType_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + user_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + createDate_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + queryId_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + setupTime_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + if (pageTimesBuilder_ == null) { + pageTimes_ = java.util.Collections.emptyList(); + } else { + pageTimes_ = null; + pageTimesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetric_descriptor; + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetric getDefaultInstanceForType() { + return datawave.webservice.query.metric.MetricsMessages.QueryMetric.getDefaultInstance(); + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetric build() { + datawave.webservice.query.metric.MetricsMessages.QueryMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetric buildPartial() { + datawave.webservice.query.metric.MetricsMessages.QueryMetric result = new datawave.webservice.query.metric.MetricsMessages.QueryMetric(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.queryType_ = queryType_; + if (((from_bitField0_ & 0x00000002) != 0)) { + to_bitField0_ |= 0x00000002; + } + result.user_ = user_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createDate_ = createDate_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + to_bitField0_ |= 0x00000008; + } + result.queryId_ = queryId_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.setupTime_ = setupTime_; + to_bitField0_ |= 0x00000010; + } + if (pageTimesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + pageTimes_ = java.util.Collections.unmodifiableList(pageTimes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.pageTimes_ = pageTimes_; + } else { + result.pageTimes_ = pageTimesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @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 datawave.webservice.query.metric.MetricsMessages.QueryMetric) { + return mergeFrom((datawave.webservice.query.metric.MetricsMessages.QueryMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datawave.webservice.query.metric.MetricsMessages.QueryMetric other) { + if (other == datawave.webservice.query.metric.MetricsMessages.QueryMetric.getDefaultInstance()) + return this; + if (other.hasQueryType()) { + bitField0_ |= 0x00000001; + queryType_ = other.queryType_; + onChanged(); + } + if (other.hasUser()) { + bitField0_ |= 0x00000002; + user_ = other.user_; + onChanged(); + } + if (other.hasCreateDate()) { + setCreateDate(other.getCreateDate()); + } + if (other.hasQueryId()) { + bitField0_ |= 0x00000008; + queryId_ = other.queryId_; + onChanged(); + } + if (other.hasSetupTime()) { + setSetupTime(other.getSetupTime()); + } + if (pageTimesBuilder_ == null) { + if (!other.pageTimes_.isEmpty()) { + if (pageTimes_.isEmpty()) { + pageTimes_ = other.pageTimes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensurePageTimesIsMutable(); + pageTimes_.addAll(other.pageTimes_); + } + onChanged(); + } + } else { + if (!other.pageTimes_.isEmpty()) { + if (pageTimesBuilder_.isEmpty()) { + pageTimesBuilder_.dispose(); + pageTimesBuilder_ = null; + pageTimes_ = other.pageTimes_; + bitField0_ = (bitField0_ & ~0x00000020); + pageTimesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPageTimesFieldBuilder() : null; + } else { + pageTimesBuilder_.addAllMessages(other.pageTimes_); + } + } + } + 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: { + queryType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + createDate_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + queryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + setupTime_ = input.readUInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + datawave.webservice.query.metric.MetricsMessages.PageMetric m = input + .readMessage(datawave.webservice.query.metric.MetricsMessages.PageMetric.parser(), extensionRegistry); + if (pageTimesBuilder_ == null) { + ensurePageTimesIsMutable(); + pageTimes_.add(m); + } else { + pageTimesBuilder_.addMessage(m); + } + break; + } // case 50 + 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 queryType_ = ""; + + /** + * string query_type = 1; + * + * @return Whether the queryType field is set. + */ + public boolean hasQueryType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * string query_type = 1; + * + * @return The queryType. + */ + public java.lang.String getQueryType() { + java.lang.Object ref = queryType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string query_type = 1; + * + * @return The bytes for queryType. + */ + public com.google.protobuf.ByteString getQueryTypeBytes() { + java.lang.Object ref = queryType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string query_type = 1; + * + * @param value + * The queryType to set. + * @return This builder for chaining. + */ + public Builder setQueryType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + queryType_ = value; + onChanged(); + return this; + } + + /** + * string query_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearQueryType() { + bitField0_ = (bitField0_ & ~0x00000001); + queryType_ = getDefaultInstance().getQueryType(); + onChanged(); + return this; + } + + /** + * string query_type = 1; + * + * @param value + * The bytes for queryType to set. + * @return This builder for chaining. + */ + public Builder setQueryTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; + queryType_ = value; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + + /** + * string user = 2; + * + * @return Whether the user field is set. + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * string user = 2; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string user = 2; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string user = 2; + * + * @param value + * The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + user_ = value; + onChanged(); + return this; + } + + /** + * string user = 2; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + bitField0_ = (bitField0_ & ~0x00000002); + user_ = getDefaultInstance().getUser(); + onChanged(); + return this; + } + + /** + * string user = 2; + * + * @param value + * The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000002; + user_ = value; + onChanged(); + return this; + } + + private long createDate_; + + /** + * int64 create_date = 3; + * + * @return Whether the createDate field is set. + */ + @java.lang.Override + public boolean hasCreateDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * int64 create_date = 3; + * + * @return The createDate. + */ + @java.lang.Override + public long getCreateDate() { + return createDate_; + } + + /** + * int64 create_date = 3; + * + * @param value + * The createDate to set. + * @return This builder for chaining. + */ + public Builder setCreateDate(long value) { + bitField0_ |= 0x00000004; + createDate_ = value; + onChanged(); + return this; + } + + /** + * int64 create_date = 3; + * + * @return This builder for chaining. + */ + public Builder clearCreateDate() { + bitField0_ = (bitField0_ & ~0x00000004); + createDate_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object queryId_ = ""; + + /** + * string query_id = 4; + * + * @return Whether the queryId field is set. + */ + public boolean hasQueryId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * string query_id = 4; + * + * @return The queryId. + */ + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string query_id = 4; + * + * @return The bytes for queryId. + */ + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string query_id = 4; + * + * @param value + * The queryId to set. + * @return This builder for chaining. + */ + public Builder setQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + queryId_ = value; + onChanged(); + return this; + } + + /** + * string query_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearQueryId() { + bitField0_ = (bitField0_ & ~0x00000008); + queryId_ = getDefaultInstance().getQueryId(); + onChanged(); + return this; + } + + /** + * string query_id = 4; + * + * @param value + * The bytes for queryId to set. + * @return This builder for chaining. + */ + public Builder setQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000008; + queryId_ = value; + onChanged(); + return this; + } + + private long setupTime_; + + /** + * uint64 setup_time = 5; + * + * @return Whether the setupTime field is set. + */ + @java.lang.Override + public boolean hasSetupTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * uint64 setup_time = 5; + * + * @return The setupTime. + */ + @java.lang.Override + public long getSetupTime() { + return setupTime_; + } + + /** + * uint64 setup_time = 5; + * + * @param value + * The setupTime to set. + * @return This builder for chaining. + */ + public Builder setSetupTime(long value) { + bitField0_ |= 0x00000010; + setupTime_ = value; + onChanged(); + return this; + } + + /** + * uint64 setup_time = 5; + * + * @return This builder for chaining. + */ + public Builder clearSetupTime() { + bitField0_ = (bitField0_ & ~0x00000010); + setupTime_ = 0L; + onChanged(); + return this; + } + + private java.util.List pageTimes_ = java.util.Collections.emptyList(); + + private void ensurePageTimesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + pageTimes_ = new java.util.ArrayList(pageTimes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 pageTimesBuilder_; + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public java.util.List getPageTimesList() { + if (pageTimesBuilder_ == null) { + return java.util.Collections.unmodifiableList(pageTimes_); + } else { + return pageTimesBuilder_.getMessageList(); + } + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public int getPageTimesCount() { + if (pageTimesBuilder_ == null) { + return pageTimes_.size(); + } else { + return pageTimesBuilder_.getCount(); + } + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public datawave.webservice.query.metric.MetricsMessages.PageMetric getPageTimes(int index) { + if (pageTimesBuilder_ == null) { + return pageTimes_.get(index); + } else { + return pageTimesBuilder_.getMessage(index); + } + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder setPageTimes(int index, datawave.webservice.query.metric.MetricsMessages.PageMetric value) { + if (pageTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageTimesIsMutable(); + pageTimes_.set(index, value); + onChanged(); + } else { + pageTimesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder setPageTimes(int index, datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder builderForValue) { + if (pageTimesBuilder_ == null) { + ensurePageTimesIsMutable(); + pageTimes_.set(index, builderForValue.build()); + onChanged(); + } else { + pageTimesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder addPageTimes(datawave.webservice.query.metric.MetricsMessages.PageMetric value) { + if (pageTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageTimesIsMutable(); + pageTimes_.add(value); + onChanged(); + } else { + pageTimesBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder addPageTimes(int index, datawave.webservice.query.metric.MetricsMessages.PageMetric value) { + if (pageTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageTimesIsMutable(); + pageTimes_.add(index, value); + onChanged(); + } else { + pageTimesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder addPageTimes(datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder builderForValue) { + if (pageTimesBuilder_ == null) { + ensurePageTimesIsMutable(); + pageTimes_.add(builderForValue.build()); + onChanged(); + } else { + pageTimesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder addPageTimes(int index, datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder builderForValue) { + if (pageTimesBuilder_ == null) { + ensurePageTimesIsMutable(); + pageTimes_.add(index, builderForValue.build()); + onChanged(); + } else { + pageTimesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder addAllPageTimes(java.lang.Iterable values) { + if (pageTimesBuilder_ == null) { + ensurePageTimesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageTimes_); + onChanged(); + } else { + pageTimesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder clearPageTimes() { + if (pageTimesBuilder_ == null) { + pageTimes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + pageTimesBuilder_.clear(); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public Builder removePageTimes(int index) { + if (pageTimesBuilder_ == null) { + ensurePageTimesIsMutable(); + pageTimes_.remove(index); + onChanged(); + } else { + pageTimesBuilder_.remove(index); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder getPageTimesBuilder(int index) { + return getPageTimesFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public datawave.webservice.query.metric.MetricsMessages.PageMetricOrBuilder getPageTimesOrBuilder(int index) { + if (pageTimesBuilder_ == null) { + return pageTimes_.get(index); + } else { + return pageTimesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public java.util.List getPageTimesOrBuilderList() { + if (pageTimesBuilder_ != null) { + return pageTimesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pageTimes_); + } + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder addPageTimesBuilder() { + return getPageTimesFieldBuilder().addBuilder(datawave.webservice.query.metric.MetricsMessages.PageMetric.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public datawave.webservice.query.metric.MetricsMessages.PageMetric.Builder addPageTimesBuilder(int index) { + return getPageTimesFieldBuilder().addBuilder(index, datawave.webservice.query.metric.MetricsMessages.PageMetric.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.metric.PageMetric page_times = 6; + */ + public java.util.List getPageTimesBuilderList() { + return getPageTimesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getPageTimesFieldBuilder() { + if (pageTimesBuilder_ == null) { + pageTimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + pageTimes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + pageTimes_ = null; + } + return pageTimesBuilder_; + } + + @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:datawave.webservice.query.metric.QueryMetric) + } + + // @@protoc_insertion_point(class_scope:datawave.webservice.query.metric.QueryMetric) + private static final datawave.webservice.query.metric.MetricsMessages.QueryMetric DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datawave.webservice.query.metric.MetricsMessages.QueryMetric(); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryMetric 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 datawave.webservice.query.metric.MetricsMessages.QueryMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryMetricListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.query.metric.QueryMetricListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 operation_time_ms = 1; + * + * @return The operationTimeMs. + */ + long getOperationTimeMs(); + + /** + * repeated string messages = 2; + * + * @return A list containing the messages. + */ + java.util.List getMessagesList(); + + /** + * repeated string messages = 2; + * + * @return The count of messages. + */ + int getMessagesCount(); + + /** + * repeated string messages = 2; + * + * @param index + * The index of the element to return. + * @return The messages at the given index. + */ + java.lang.String getMessages(int index); + + /** + * repeated string messages = 2; + * + * @param index + * The index of the value to return. + * @return The bytes of the messages at the given index. + */ + com.google.protobuf.ByteString getMessagesBytes(int index); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + java.util.List getExceptionsList(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + int getExceptionsCount(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + java.util.List getExceptionsOrBuilderList(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index); + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + java.util.List getResultList(); + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + datawave.webservice.query.metric.MetricsMessages.QueryMetric getResult(int index); + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + int getResultCount(); + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + java.util.List getResultOrBuilderList(); + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + datawave.webservice.query.metric.MetricsMessages.QueryMetricOrBuilder getResultOrBuilder(int index); + + /** + * int32 num_results = 5; + * + * @return The numResults. + */ + int getNumResults(); + } + + /** + * Protobuf type {@code datawave.webservice.query.metric.QueryMetricListResponse} + */ + public static final class QueryMetricListResponse extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.query.metric.QueryMetricListResponse) + QueryMetricListResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryMetricListResponse.newBuilder() to construct. + private QueryMetricListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryMetricListResponse() { + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exceptions_ = java.util.Collections.emptyList(); + result_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryMetricListResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetricListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetricListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.class, + datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.Builder.class); + } + + public static final int OPERATION_TIME_MS_FIELD_NUMBER = 1; + private long operationTimeMs_; + + /** + * uint64 operation_time_ms = 1; + * + * @return The operationTimeMs. + */ + @java.lang.Override + public long getOperationTimeMs() { + return operationTimeMs_; + } + + public static final int MESSAGES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList messages_; + + /** + * repeated string messages = 2; + * + * @return A list containing the messages. + */ + public com.google.protobuf.ProtocolStringList getMessagesList() { + return messages_; + } + + /** + * repeated string messages = 2; + * + * @return The count of messages. + */ + public int getMessagesCount() { + return messages_.size(); + } + + /** + * repeated string messages = 2; + * + * @param index + * The index of the element to return. + * @return The messages at the given index. + */ + public java.lang.String getMessages(int index) { + return messages_.get(index); + } + + /** + * repeated string messages = 2; + * + * @param index + * The index of the value to return. + * @return The bytes of the messages at the given index. + */ + public com.google.protobuf.ByteString getMessagesBytes(int index) { + return messages_.getByteString(index); + } + + public static final int EXCEPTIONS_FIELD_NUMBER = 3; + private java.util.List exceptions_; + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + @java.lang.Override + public java.util.List getExceptionsList() { + return exceptions_; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + @java.lang.Override + public java.util.List getExceptionsOrBuilderList() { + return exceptions_; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + @java.lang.Override + public int getExceptionsCount() { + return exceptions_.size(); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + @java.lang.Override + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { + return exceptions_.get(index); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + @java.lang.Override + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { + return exceptions_.get(index); + } + + public static final int RESULT_FIELD_NUMBER = 4; + private java.util.List result_; + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + @java.lang.Override + public java.util.List getResultList() { + return result_; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + @java.lang.Override + public java.util.List getResultOrBuilderList() { + return result_; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + @java.lang.Override + public int getResultCount() { + return result_.size(); + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetric getResult(int index) { + return result_.get(index); + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetricOrBuilder getResultOrBuilder(int index) { + return result_.get(index); + } + + public static final int NUM_RESULTS_FIELD_NUMBER = 5; + private int numResults_; + + /** + * int32 num_results = 5; + * + * @return The numResults. + */ + @java.lang.Override + public int getNumResults() { + return numResults_; + } + + 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 (operationTimeMs_ != 0L) { + output.writeUInt64(1, operationTimeMs_); + } + for (int i = 0; i < messages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, messages_.getRaw(i)); + } + for (int i = 0; i < exceptions_.size(); i++) { + output.writeMessage(3, exceptions_.get(i)); + } + for (int i = 0; i < result_.size(); i++) { + output.writeMessage(4, result_.get(i)); + } + if (numResults_ != 0) { + output.writeInt32(5, numResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (operationTimeMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, operationTimeMs_); + } + { + int dataSize = 0; + for (int i = 0; i < messages_.size(); i++) { + dataSize += computeStringSizeNoTag(messages_.getRaw(i)); + } + size += dataSize; + size += 1 * getMessagesList().size(); + } + for (int i = 0; i < exceptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, exceptions_.get(i)); + } + for (int i = 0; i < result_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, result_.get(i)); + } + if (numResults_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, numResults_); + } + 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 datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse)) { + return super.equals(obj); + } + datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse other = (datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse) obj; + + if (getOperationTimeMs() != other.getOperationTimeMs()) + return false; + if (!getMessagesList().equals(other.getMessagesList())) + return false; + if (!getExceptionsList().equals(other.getExceptionsList())) + return false; + if (!getResultList().equals(other.getResultList())) + return false; + if (getNumResults() != other.getNumResults()) + 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) + OPERATION_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOperationTimeMs()); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (getExceptionsCount() > 0) { + hash = (37 * hash) + EXCEPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExceptionsList().hashCode(); + } + if (getResultCount() > 0) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResultList().hashCode(); + } + hash = (37 * hash) + NUM_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getNumResults(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse 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 datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse 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 datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse 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(datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse 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 datawave.webservice.query.metric.QueryMetricListResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.query.metric.QueryMetricListResponse) + datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetricListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetricListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.class, + datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.Builder.class); + } + + // Construct using datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + operationTimeMs_ = 0L; + + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + } else { + exceptions_ = null; + exceptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + } else { + result_ = null; + resultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + numResults_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.query.metric.MetricsMessages.internal_static_datawave_webservice_query_metric_QueryMetricListResponse_descriptor; + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse getDefaultInstanceForType() { + return datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.getDefaultInstance(); + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse build() { + datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse buildPartial() { + datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse result = new datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse( + this); + int from_bitField0_ = bitField0_; + result.operationTimeMs_ = operationTimeMs_; + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = messages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messages_ = messages_; + if (exceptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + exceptions_ = java.util.Collections.unmodifiableList(exceptions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exceptions_ = exceptions_; + } else { + result.exceptions_ = exceptionsBuilder_.build(); + } + if (resultBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + result_ = java.util.Collections.unmodifiableList(result_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + result.numResults_ = numResults_; + onBuilt(); + return result; + } + + @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 datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse) { + return mergeFrom((datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse other) { + if (other == datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse.getDefaultInstance()) + return this; + if (other.getOperationTimeMs() != 0L) { + setOperationTimeMs(other.getOperationTimeMs()); + } + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + if (exceptionsBuilder_ == null) { + if (!other.exceptions_.isEmpty()) { + if (exceptions_.isEmpty()) { + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExceptionsIsMutable(); + exceptions_.addAll(other.exceptions_); + } + onChanged(); + } + } else { + if (!other.exceptions_.isEmpty()) { + if (exceptionsBuilder_.isEmpty()) { + exceptionsBuilder_.dispose(); + exceptionsBuilder_ = null; + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + exceptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExceptionsFieldBuilder() : null; + } else { + exceptionsBuilder_.addAllMessages(other.exceptions_); + } + } + } + if (resultBuilder_ == null) { + if (!other.result_.isEmpty()) { + if (result_.isEmpty()) { + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResultIsMutable(); + result_.addAll(other.result_); + } + onChanged(); + } + } else { + if (!other.result_.isEmpty()) { + if (resultBuilder_.isEmpty()) { + resultBuilder_.dispose(); + resultBuilder_ = null; + result_ = other.result_; + bitField0_ = (bitField0_ & ~0x00000004); + resultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultFieldBuilder() : null; + } else { + resultBuilder_.addAllMessages(other.result_); + } + } + } + if (other.getNumResults() != 0) { + setNumResults(other.getNumResults()); + } + 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: { + operationTimeMs_ = input.readUInt64(); + + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessagesIsMutable(); + messages_.add(s); + break; + } // case 18 + case 26: { + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType m = input.readMessage( + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.parser(), extensionRegistry); + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(m); + } else { + exceptionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + datawave.webservice.query.metric.MetricsMessages.QueryMetric m = input + .readMessage(datawave.webservice.query.metric.MetricsMessages.QueryMetric.parser(), extensionRegistry); + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(m); + } else { + resultBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + numResults_ = input.readInt32(); + + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long operationTimeMs_; + + /** + * uint64 operation_time_ms = 1; + * + * @return The operationTimeMs. + */ + @java.lang.Override + public long getOperationTimeMs() { + return operationTimeMs_; + } + + /** + * uint64 operation_time_ms = 1; + * + * @param value + * The operationTimeMs to set. + * @return This builder for chaining. + */ + public Builder setOperationTimeMs(long value) { + + operationTimeMs_ = value; + onChanged(); + return this; + } + + /** + * uint64 operation_time_ms = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperationTimeMs() { + + operationTimeMs_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + messages_ = new com.google.protobuf.LazyStringArrayList(messages_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated string messages = 2; + * + * @return A list containing the messages. + */ + public com.google.protobuf.ProtocolStringList getMessagesList() { + return messages_.getUnmodifiableView(); + } + + /** + * repeated string messages = 2; + * + * @return The count of messages. + */ + public int getMessagesCount() { + return messages_.size(); + } + + /** + * repeated string messages = 2; + * + * @param index + * The index of the element to return. + * @return The messages at the given index. + */ + public java.lang.String getMessages(int index) { + return messages_.get(index); + } + + /** + * repeated string messages = 2; + * + * @param index + * The index of the value to return. + * @return The bytes of the messages at the given index. + */ + public com.google.protobuf.ByteString getMessagesBytes(int index) { + return messages_.getByteString(index); + } + + /** + * repeated string messages = 2; + * + * @param index + * The index to set the value at. + * @param value + * The messages to set. + * @return This builder for chaining. + */ + public Builder setMessages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + return this; + } + + /** + * repeated string messages = 2; + * + * @param value + * The messages to add. + * @return This builder for chaining. + */ + public Builder addMessages(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + return this; + } + + /** + * repeated string messages = 2; + * + * @param values + * The messages to add. + * @return This builder for chaining. + */ + public Builder addAllMessages(java.lang.Iterable values) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); + return this; + } + + /** + * repeated string messages = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessages() { + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * repeated string messages = 2; + * + * @param value + * The bytes of the messages to add. + * @return This builder for chaining. + */ + public Builder addMessagesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + return this; + } + + private java.util.List exceptions_ = java.util.Collections.emptyList(); + + private void ensureExceptionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + exceptions_ = new java.util.ArrayList(exceptions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 exceptionsBuilder_; + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsList() { + if (exceptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(exceptions_); + } else { + return exceptionsBuilder_.getMessageList(); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public int getExceptionsCount() { + if (exceptionsBuilder_ == null) { + return exceptions_.size(); + } else { + return exceptionsBuilder_.getCount(); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessage(index); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.set(index, value); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.set(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(index, value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder addAllExceptions(java.lang.Iterable values) { + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptions_); + onChanged(); + } else { + exceptionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder clearExceptions() { + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + exceptionsBuilder_.clear(); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public Builder removeExceptions(int index) { + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.remove(index); + onChanged(); + } else { + exceptionsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder getExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsOrBuilderList() { + if (exceptionsBuilder_ != null) { + return exceptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exceptions_); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder() { + return getExceptionsFieldBuilder().addBuilder(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().addBuilder(index, + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsBuilderList() { + return getExceptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getExceptionsFieldBuilder() { + if (exceptionsBuilder_ == null) { + exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + exceptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + exceptions_ = null; + } + return exceptionsBuilder_; + } + + private java.util.List result_ = java.util.Collections.emptyList(); + + private void ensureResultIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + result_ = new java.util.ArrayList(result_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 resultBuilder_; + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public java.util.List getResultList() { + if (resultBuilder_ == null) { + return java.util.Collections.unmodifiableList(result_); + } else { + return resultBuilder_.getMessageList(); + } + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public int getResultCount() { + if (resultBuilder_ == null) { + return result_.size(); + } else { + return resultBuilder_.getCount(); + } + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public datawave.webservice.query.metric.MetricsMessages.QueryMetric getResult(int index) { + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessage(index); + } + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder setResult(int index, datawave.webservice.query.metric.MetricsMessages.QueryMetric value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.set(index, value); + onChanged(); + } else { + resultBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder setResult(int index, datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.set(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder addResult(datawave.webservice.query.metric.MetricsMessages.QueryMetric value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(value); + onChanged(); + } else { + resultBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder addResult(int index, datawave.webservice.query.metric.MetricsMessages.QueryMetric value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultIsMutable(); + result_.add(index, value); + onChanged(); + } else { + resultBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder addResult(datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder addResult(int index, datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder builderForValue) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.add(index, builderForValue.build()); + onChanged(); + } else { + resultBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder addAllResult(java.lang.Iterable values) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, result_); + onChanged(); + } else { + resultBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + resultBuilder_.clear(); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public Builder removeResult(int index) { + if (resultBuilder_ == null) { + ensureResultIsMutable(); + result_.remove(index); + onChanged(); + } else { + resultBuilder_.remove(index); + } + return this; + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder getResultBuilder(int index) { + return getResultFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public datawave.webservice.query.metric.MetricsMessages.QueryMetricOrBuilder getResultOrBuilder(int index) { + if (resultBuilder_ == null) { + return result_.get(index); + } else { + return resultBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public java.util.List getResultOrBuilderList() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(result_); + } + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder addResultBuilder() { + return getResultFieldBuilder().addBuilder(datawave.webservice.query.metric.MetricsMessages.QueryMetric.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public datawave.webservice.query.metric.MetricsMessages.QueryMetric.Builder addResultBuilder(int index) { + return getResultFieldBuilder().addBuilder(index, datawave.webservice.query.metric.MetricsMessages.QueryMetric.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.metric.QueryMetric result = 4; + */ + public java.util.List getResultBuilderList() { + return getResultFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + result_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + result_ = null; + } + return resultBuilder_; + } + + private int numResults_; + + /** + * int32 num_results = 5; + * + * @return The numResults. + */ + @java.lang.Override + public int getNumResults() { + return numResults_; + } + + /** + * int32 num_results = 5; + * + * @param value + * The numResults to set. + * @return This builder for chaining. + */ + public Builder setNumResults(int value) { + + numResults_ = value; + onChanged(); + return this; + } + + /** + * int32 num_results = 5; + * + * @return This builder for chaining. + */ + public Builder clearNumResults() { + + numResults_ = 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:datawave.webservice.query.metric.QueryMetricListResponse) + } + + // @@protoc_insertion_point(class_scope:datawave.webservice.query.metric.QueryMetricListResponse) + private static final datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse(); + } + + public static datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryMetricListResponse 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 datawave.webservice.query.metric.MetricsMessages.QueryMetricListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_query_metric_PageMetric_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_query_metric_PageMetric_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_query_metric_QueryMetric_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_query_metric_QueryMetric_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_query_metric_QueryMetricListResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_query_metric_QueryMetricListResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\026metrics_messages.proto\022 datawave.webse" + "rvice.query.metric\032\030exception_messages.p" + + "roto\"3\n\nPageMetric\022\020\n\010pagesize\030\001 \001(\004\022\023\n\013" + + "return_time\030\002 \001(\004\"\211\002\n\013QueryMetric\022\027\n\nque" + + "ry_type\030\001 \001(\tH\000\210\001\001\022\021\n\004user\030\002 \001(\tH\001\210\001\001\022\030\n" + + "\013create_date\030\003 \001(\003H\002\210\001\001\022\025\n\010query_id\030\004 \001(" + + "\tH\003\210\001\001\022\027\n\nsetup_time\030\005 \001(\004H\004\210\001\001\022@\n\npage_" + + "times\030\006 \003(\0132,.datawave.webservice.query." + "metric.PageMetricB\r\n\013_query_typeB\007\n\005_use" + + "rB\016\n\014_create_dateB\013\n\t_query_idB\r\n\013_setup" + "_time\"\347\001\n\027QueryMetricListResponse\022\031\n\021ope" + + "ration_time_ms\030\001 \001(\004\022\020\n\010messages\030\002 \003(\t\022K" + + "\n\nexceptions\030\003 \003(\01327.datawave.webservice" + ".query.exception.QueryExceptionType\022=\n\006r" + + "esult\030\004 \003(\0132-.datawave.webservice.query." + "metric.QueryMetric\022\023\n\013num_results\030\005 \001(\005B" + + "$\n datawave.webservice.query.metricH\003b\006p" + "roto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {datawave.webservice.query.exception.ExceptionMessages.getDescriptor(),}); + internal_static_datawave_webservice_query_metric_PageMetric_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_webservice_query_metric_PageMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_query_metric_PageMetric_descriptor, new java.lang.String[] {"Pagesize", "ReturnTime",}); + internal_static_datawave_webservice_query_metric_QueryMetric_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_datawave_webservice_query_metric_QueryMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_query_metric_QueryMetric_descriptor, new java.lang.String[] {"QueryType", "User", "CreateDate", + "QueryId", "SetupTime", "PageTimes", "QueryType", "User", "CreateDate", "QueryId", "SetupTime",}); + internal_static_datawave_webservice_query_metric_QueryMetricListResponse_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_datawave_webservice_query_metric_QueryMetricListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_query_metric_QueryMetricListResponse_descriptor, + new java.lang.String[] {"OperationTimeMs", "Messages", "Exceptions", "Result", "NumResults",}); + datawave.webservice.query.exception.ExceptionMessages.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/web-services/client/src/main/java/datawave/webservice/result/ResponseMessages.java b/web-services/client/src/main/java/datawave/webservice/result/ResponseMessages.java index 9036b931e6c..5f881176a8d 100644 --- a/web-services/client/src/main/java/datawave/webservice/result/ResponseMessages.java +++ b/web-services/client/src/main/java/datawave/webservice/result/ResponseMessages.java @@ -8,35 +8,32 @@ private ResponseMessages() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - public interface VoidResponseOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } - // required uint64 operation_time_ms = 1 [default = 0]; - /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time in ms - */ - boolean hasOperationTimeMs(); + public interface VoidResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.result.VoidResponse) + com.google.protobuf.MessageOrBuilder { /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ long getOperationTimeMs(); - // repeated string messages = 2; /** * repeated string messages = 2; * - * @return list of messages + * @return A list containing the messages. */ java.util.List getMessagesList(); /** * repeated string messages = 2; * - * @return the number of messages in the list + * @return The count of messages. */ int getMessagesCount(); @@ -44,9 +41,8 @@ public interface VoidResponseOrBuilder extends com.google.protobuf.MessageLiteOr * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ java.lang.String getMessages(int index); @@ -54,169 +50,106 @@ public interface VoidResponseOrBuilder extends com.google.protobuf.MessageLiteOr * repeated string messages = 2; * * @param index - * the index - * - * @return the message byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ com.google.protobuf.ByteString getMessagesBytes(int index); - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return list of exceptions */ java.util.List getExceptionsList(); /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index); /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions */ int getExceptionsCount(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + java.util.List getExceptionsOrBuilderList(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index); } /** * Protobuf type {@code datawave.webservice.result.VoidResponse} */ - public static final class VoidResponse extends com.google.protobuf.GeneratedMessageLite implements VoidResponseOrBuilder { + public static final class VoidResponse extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.result.VoidResponse) + VoidResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use VoidResponse.newBuilder() to construct. - private VoidResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private VoidResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private VoidResponse(boolean noInit) {} - - private static final VoidResponse defaultInstance; - - public static VoidResponse getDefaultInstance() { - return defaultInstance; + private VoidResponse() { + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exceptions_ = java.util.Collections.emptyList(); } - public VoidResponse getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VoidResponse(); } - private VoidResponse(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - operationTimeMs_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - messages_.add(input.readBytes()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - exceptions_.add(input.readMessage(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.PARSER, - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.UnmodifiableLazyStringList(messages_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = java.util.Collections.unmodifiableList(exceptions_); - } - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public VoidResponse parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VoidResponse(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_VoidResponse_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_VoidResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.result.ResponseMessages.VoidResponse.class, + datawave.webservice.result.ResponseMessages.VoidResponse.Builder.class); } - private int bitField0_; - // required uint64 operation_time_ms = 1 [default = 0]; public static final int OPERATION_TIME_MS_FIELD_NUMBER = 1; private long operationTimeMs_; /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has an operation time - */ - public boolean hasOperationTimeMs() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ + @java.lang.Override public long getOperationTimeMs() { return operationTimeMs_; } - // repeated string messages = 2; public static final int MESSAGES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList messages_; /** * repeated string messages = 2; * - * @return the list of messages + * @return A list containing the messages. */ - public java.util.List getMessagesList() { + public com.google.protobuf.ProtocolStringList getMessagesList() { return messages_; } /** * repeated string messages = 2; * - * @return the number of messages + * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); @@ -226,9 +159,8 @@ public int getMessagesCount() { * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the index provided + * The index of the element to return. + * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); @@ -238,118 +170,98 @@ public java.lang.String getMessages(int index) { * repeated string messages = 2; * * @param index - * the index - * - * @return message byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; public static final int EXCEPTIONS_FIELD_NUMBER = 3; private java.util.List exceptions_; /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return list of exceptions */ + @java.lang.Override public java.util.List getExceptionsList() { return exceptions_; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return list of exceptions */ + @java.lang.Override public java.util.List getExceptionsOrBuilderList() { return exceptions_; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions in the list */ + @java.lang.Override public int getExceptionsCount() { return exceptions_.size(); } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the index */ + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { return exceptions_.get(index); } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the index */ + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { return exceptions_.get(index); } - private void initFields() { - operationTimeMs_ = 0L; - messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptions_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasOperationTimeMs()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (operationTimeMs_ != 0L) { output.writeUInt64(1, operationTimeMs_); } for (int i = 0; i < messages_.size(); i++) { - output.writeBytes(2, messages_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, messages_.getRaw(i)); } for (int i = 0; i < exceptions_.size(); i++) { output.writeMessage(3, exceptions_.get(i)); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (operationTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, operationTimeMs_); } { int dataSize = 0; for (int i = 0; i < messages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(messages_.getByteString(i)); + dataSize += computeStringSizeNoTag(messages_.getRaw(i)); } size += dataSize; size += 1 * getMessagesList().size(); @@ -357,15 +269,62 @@ public int getSerializedSize() { for (int i = 0; i < exceptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, exceptions_.get(i)); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.result.ResponseMessages.VoidResponse)) { + return super.equals(obj); + } + datawave.webservice.result.ResponseMessages.VoidResponse other = (datawave.webservice.result.ResponseMessages.VoidResponse) obj; + + if (getOperationTimeMs() != other.getOperationTimeMs()) + return false; + if (!getMessagesList().equals(other.getMessagesList())) + return false; + if (!getExceptionsList().equals(other.getExceptionsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATION_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOperationTimeMs()); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (getExceptionsCount() > 0) { + hash = (37 * hash) + EXCEPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExceptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(com.google.protobuf.ByteString data) @@ -389,85 +348,112 @@ public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom } public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.VoidResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.VoidResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.VoidResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.result.ResponseMessages.VoidResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.result.VoidResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.result.ResponseMessages.VoidResponseOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.result.VoidResponse) + datawave.webservice.result.ResponseMessages.VoidResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_VoidResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_VoidResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.result.ResponseMessages.VoidResponse.class, + datawave.webservice.result.ResponseMessages.VoidResponse.Builder.class); + } + // Construct using datawave.webservice.result.ResponseMessages.VoidResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); operationTimeMs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + } else { + exceptions_ = null; + exceptionsBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000002); - exceptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_VoidResponse_descriptor; } + @java.lang.Override public datawave.webservice.result.ResponseMessages.VoidResponse getDefaultInstanceForType() { return datawave.webservice.result.ResponseMessages.VoidResponse.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.result.ResponseMessages.VoidResponse build() { datawave.webservice.result.ResponseMessages.VoidResponse result = buildPartial(); if (!result.isInitialized()) { @@ -476,154 +462,233 @@ public datawave.webservice.result.ResponseMessages.VoidResponse build() { return result; } + @java.lang.Override public datawave.webservice.result.ResponseMessages.VoidResponse buildPartial() { datawave.webservice.result.ResponseMessages.VoidResponse result = new datawave.webservice.result.ResponseMessages.VoidResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.operationTimeMs_ = operationTimeMs_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.UnmodifiableLazyStringList(messages_); - bitField0_ = (bitField0_ & ~0x00000002); + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = messages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = java.util.Collections.unmodifiableList(exceptions_); - bitField0_ = (bitField0_ & ~0x00000004); + if (exceptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + exceptions_ = java.util.Collections.unmodifiableList(exceptions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exceptions_ = exceptions_; + } else { + result.exceptions_ = exceptionsBuilder_.build(); } - result.exceptions_ = exceptions_; - result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.result.ResponseMessages.VoidResponse) { + return mergeFrom((datawave.webservice.result.ResponseMessages.VoidResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.result.ResponseMessages.VoidResponse other) { if (other == datawave.webservice.result.ResponseMessages.VoidResponse.getDefaultInstance()) return this; - if (other.hasOperationTimeMs()) { + if (other.getOperationTimeMs() != 0L) { setOperationTimeMs(other.getOperationTimeMs()); } if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } - + onChanged(); } - if (!other.exceptions_.isEmpty()) { - if (exceptions_.isEmpty()) { - exceptions_ = other.exceptions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExceptionsIsMutable(); - exceptions_.addAll(other.exceptions_); + if (exceptionsBuilder_ == null) { + if (!other.exceptions_.isEmpty()) { + if (exceptions_.isEmpty()) { + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExceptionsIsMutable(); + exceptions_.addAll(other.exceptions_); + } + onChanged(); + } + } else { + if (!other.exceptions_.isEmpty()) { + if (exceptionsBuilder_.isEmpty()) { + exceptionsBuilder_.dispose(); + exceptionsBuilder_ = null; + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + exceptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExceptionsFieldBuilder() : null; + } else { + exceptionsBuilder_.addAllMessages(other.exceptions_); + } } - } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasOperationTimeMs()) { - - return false; - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.webservice.result.ResponseMessages.VoidResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + operationTimeMs_ = input.readUInt64(); + + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessagesIsMutable(); + messages_.add(s); + break; + } // case 18 + case 26: { + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType m = input.readMessage( + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.parser(), extensionRegistry); + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(m); + } else { + exceptionsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.webservice.result.ResponseMessages.VoidResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // required uint64 operation_time_ms = 1 [default = 0]; private long operationTimeMs_; /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time in ms - */ - public boolean hasOperationTimeMs() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return operation time in ms + * @return The operationTimeMs. */ + @java.lang.Override public long getOperationTimeMs() { return operationTimeMs_; } /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * * @param value - * the new operation time in ms - * - * @return builder to set operation time in ms + * The operationTimeMs to set. + * @return This builder for chaining. */ public Builder setOperationTimeMs(long value) { - bitField0_ |= 0x00000001; - operationTimeMs_ = value; + operationTimeMs_ = value; + onChanged(); return this; } /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return builder to clear operation time + * @return This builder for chaining. */ public Builder clearOperationTimeMs() { - bitField0_ = (bitField0_ & ~0x00000001); - operationTimeMs_ = 0L; + operationTimeMs_ = 0L; + onChanged(); return this; } - // repeated string messages = 2; private com.google.protobuf.LazyStringList messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** * repeated string messages = 2; * - * @return the message list + * @return A list containing the messages. */ - public java.util.List getMessagesList() { - return java.util.Collections.unmodifiableList(messages_); + public com.google.protobuf.ProtocolStringList getMessagesList() { + return messages_.getUnmodifiableView(); } /** * repeated string messages = 2; * - * @return the number of messages in the list + * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); @@ -633,9 +698,8 @@ public int getMessagesCount() { * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); @@ -645,9 +709,8 @@ public java.lang.String getMessages(int index) { * repeated string messages = 2; * * @param index - * the index - * - * @return the message byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); @@ -657,11 +720,10 @@ public com.google.protobuf.ByteString getMessagesBytes(int index) { * repeated string messages = 2; * * @param index - * the index + * The index to set the value at. * @param value - * the new messagew - * - * @return builder to set the message value at the provided index + * The messages to set. + * @return This builder for chaining. */ public Builder setMessages(int index, java.lang.String value) { if (value == null) { @@ -669,7 +731,7 @@ public Builder setMessages(int index, java.lang.String value) { } ensureMessagesIsMutable(); messages_.set(index, value); - + onChanged(); return this; } @@ -677,9 +739,8 @@ public Builder setMessages(int index, java.lang.String value) { * repeated string messages = 2; * * @param value - * a message to add to the lsit - * - * @return builder to add the provided message + * The messages to add. + * @return This builder for chaining. */ public Builder addMessages(java.lang.String value) { if (value == null) { @@ -687,7 +748,7 @@ public Builder addMessages(java.lang.String value) { } ensureMessagesIsMutable(); messages_.add(value); - + onChanged(); return this; } @@ -695,26 +756,25 @@ public Builder addMessages(java.lang.String value) { * repeated string messages = 2; * * @param values - * iterable of messages to add - * - * @return builder to add all messages provided + * The messages to add. + * @return This builder for chaining. */ public Builder addAllMessages(java.lang.Iterable values) { ensureMessagesIsMutable(); - super.addAll(values, messages_); - + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); return this; } /** * repeated string messages = 2; * - * @return builder to clear the message list + * @return This builder for chaining. */ public Builder clearMessages() { messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -722,249 +782,338 @@ public Builder clearMessages() { * repeated string messages = 2; * * @param value - * new message byte string - * - * @return builder to add the provided message as byte string + * The bytes of the messages to add. + * @return This builder for chaining. */ public Builder addMessagesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); - + onChanged(); return this; } - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000002) != 0)) { exceptions_ = new java.util.ArrayList(exceptions_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } + private com.google.protobuf.RepeatedFieldBuilderV3 exceptionsBuilder_; + /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return list of exceptions */ public java.util.List getExceptionsList() { - return java.util.Collections.unmodifiableList(exceptions_); + if (exceptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(exceptions_); + } else { + return exceptionsBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions in the list */ public int getExceptionsCount() { - return exceptions_.size(); + if (exceptionsBuilder_ == null) { + return exceptions_.size(); + } else { + return exceptionsBuilder_.getCount(); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { - return exceptions_.get(index); + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param value - * the new exception type - * - * @return builder to set exception at provided index to the value */ public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.set(index, value); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, value); } - ensureExceptionsIsMutable(); - exceptions_.set(index, value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param builderForValue - * query exception type builder - * - * @return builder to set the exception at the index to the provided value */ public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.set(index, builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.set(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param value - * the exception type to add - * - * @return builder to add the provided value */ public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(value); } - ensureExceptionsIsMutable(); - exceptions_.add(value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param value - * the exception to add - * - * @return builder to add the provided exception to the provided index */ public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(index, value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, value); } - ensureExceptionsIsMutable(); - exceptions_.add(index, value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param builderForValue - * the builder with new value - * - * @return builder to add provided exception */ public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.add(builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param builderForValue - * the builder to add a value - * - * @return builder to add exception at provided index */ public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.add(index, builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param values - * iterable of values to add to exceptions list - * - * @return builder to add provided values */ public Builder addAllExceptions(java.lang.Iterable values) { - ensureExceptionsIsMutable(); - super.addAll(values, exceptions_); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptions_); + onChanged(); + } else { + exceptionsBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return builder to clear exceptions */ public Builder clearExceptions() { - exceptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + exceptionsBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return builder to remove exceptions at the provided index */ public Builder removeExceptions(int index) { - ensureExceptionsIsMutable(); - exceptions_.remove(index); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.remove(index); + onChanged(); + } else { + exceptionsBuilder_.remove(index); + } return this; } + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder getExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsOrBuilderList() { + if (exceptionsBuilder_ != null) { + return exceptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exceptions_); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder() { + return getExceptionsFieldBuilder().addBuilder(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().addBuilder(index, + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsBuilderList() { + return getExceptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getExceptionsFieldBuilder() { + if (exceptionsBuilder_ == null) { + exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + exceptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + exceptions_ = null; + } + return exceptionsBuilder_; + } + + @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:datawave.webservice.result.VoidResponse) } + // @@protoc_insertion_point(class_scope:datawave.webservice.result.VoidResponse) + private static final datawave.webservice.result.ResponseMessages.VoidResponse DEFAULT_INSTANCE; static { - defaultInstance = new VoidResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.result.ResponseMessages.VoidResponse(); } - // @@protoc_insertion_point(class_scope:datawave.webservice.result.VoidResponse) - } + public static datawave.webservice.result.ResponseMessages.VoidResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoidResponse 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 interface QueryImplListResponseOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // required uint64 operation_time_ms = 1 [default = 0]; - /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time - */ - boolean hasOperationTimeMs(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datawave.webservice.result.ResponseMessages.VoidResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueryImplListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.result.QueryImplListResponse) + com.google.protobuf.MessageOrBuilder { /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ long getOperationTimeMs(); - // repeated string messages = 2; /** * repeated string messages = 2; * - * @return the messages list + * @return A list containing the messages. */ java.util.List getMessagesList(); /** * repeated string messages = 2; * - * @return the number of messages in the list + * @return The count of messages. */ int getMessagesCount(); @@ -972,9 +1121,8 @@ public interface QueryImplListResponseOrBuilder extends com.google.protobuf.Mess * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ java.lang.String getMessages(int index); @@ -982,74 +1130,72 @@ public interface QueryImplListResponseOrBuilder extends com.google.protobuf.Mess * repeated string messages = 2; * * @param index - * the index - * - * @return the message byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ com.google.protobuf.ByteString getMessagesBytes(int index); - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return list of exceptions */ java.util.List getExceptionsList(); /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index); /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions in the list */ int getExceptionsCount(); - // repeated .datawave.webservice.query.QueryImpl query = 4; + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + java.util.List getExceptionsOrBuilderList(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index); + /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the query list */ java.util.List getQueryList(); /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * - * @return the query message at the provided index */ datawave.webservice.query.QueryMessages.QueryImpl getQuery(int index); /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the number of queries in the list */ int getQueryCount(); - // optional uint32 numResults = 5 [default = 0]; /** - * optional uint32 numResults = 5 [default = 0]; + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + java.util.List getQueryOrBuilderList(); + + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + datawave.webservice.query.QueryMessages.QueryImplOrBuilder getQueryOrBuilder(int index); + + /** + * uint32 numResults = 5; * - * @return if it has a number of results + * @return Whether the numResults field is set. */ boolean hasNumResults(); /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * - * @return the number of results + * @return The numResults. */ int getNumResults(); } @@ -1057,150 +1203,74 @@ public interface QueryImplListResponseOrBuilder extends com.google.protobuf.Mess /** * Protobuf type {@code datawave.webservice.result.QueryImplListResponse} */ - public static final class QueryImplListResponse extends com.google.protobuf.GeneratedMessageLite implements QueryImplListResponseOrBuilder { + public static final class QueryImplListResponse extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.result.QueryImplListResponse) + QueryImplListResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryImplListResponse.newBuilder() to construct. - private QueryImplListResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private QueryImplListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private QueryImplListResponse(boolean noInit) {} - - private static final QueryImplListResponse defaultInstance; - - public static QueryImplListResponse getDefaultInstance() { - return defaultInstance; + private QueryImplListResponse() { + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exceptions_ = java.util.Collections.emptyList(); + query_ = java.util.Collections.emptyList(); } - public QueryImplListResponse getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryImplListResponse(); } - private QueryImplListResponse(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - operationTimeMs_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - messages_.add(input.readBytes()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - exceptions_.add(input.readMessage(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.PARSER, - extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - query_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - query_.add(input.readMessage(datawave.webservice.query.QueryMessages.QueryImpl.PARSER, extensionRegistry)); - break; - } - case 40: { - bitField0_ |= 0x00000002; - numResults_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.UnmodifiableLazyStringList(messages_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = java.util.Collections.unmodifiableList(exceptions_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - query_ = java.util.Collections.unmodifiableList(query_); - } - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public QueryImplListResponse parsePartialFrom(com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryImplListResponse(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_QueryImplListResponse_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_QueryImplListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.result.ResponseMessages.QueryImplListResponse.class, + datawave.webservice.result.ResponseMessages.QueryImplListResponse.Builder.class); } private int bitField0_; - // required uint64 operation_time_ms = 1 [default = 0]; public static final int OPERATION_TIME_MS_FIELD_NUMBER = 1; private long operationTimeMs_; /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time - */ - public boolean hasOperationTimeMs() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ + @java.lang.Override public long getOperationTimeMs() { return operationTimeMs_; } - // repeated string messages = 2; public static final int MESSAGES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList messages_; /** * repeated string messages = 2; * - * @return the messages list + * @return A list containing the messages. */ - public java.util.List getMessagesList() { + public com.google.protobuf.ProtocolStringList getMessagesList() { return messages_; } /** * repeated string messages = 2; * - * @return the number of messages in the list + * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); @@ -1210,9 +1280,8 @@ public int getMessagesCount() { * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); @@ -1222,182 +1291,143 @@ public java.lang.String getMessages(int index) { * repeated string messages = 2; * * @param index - * the index - * - * @return the message byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; public static final int EXCEPTIONS_FIELD_NUMBER = 3; private java.util.List exceptions_; /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the exception list */ + @java.lang.Override public java.util.List getExceptionsList() { return exceptions_; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the exception list */ + @java.lang.Override public java.util.List getExceptionsOrBuilderList() { return exceptions_; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions in the list */ + @java.lang.Override public int getExceptionsCount() { return exceptions_.size(); } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { return exceptions_.get(index); } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return exception at the provided index */ + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { return exceptions_.get(index); } - // repeated .datawave.webservice.query.QueryImpl query = 4; public static final int QUERY_FIELD_NUMBER = 4; private java.util.List query_; /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the query list */ + @java.lang.Override public java.util.List getQueryList() { return query_; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the query list */ + @java.lang.Override public java.util.List getQueryOrBuilderList() { return query_; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the number of queries in the list */ + @java.lang.Override public int getQueryCount() { return query_.size(); } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * - * @return the query at the provided index */ + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImpl getQuery(int index) { return query_.get(index); } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * - * @return the query at the provided index */ + @java.lang.Override public datawave.webservice.query.QueryMessages.QueryImplOrBuilder getQueryOrBuilder(int index) { return query_.get(index); } - // optional uint32 numResults = 5 [default = 0]; public static final int NUMRESULTS_FIELD_NUMBER = 5; private int numResults_; /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * - * @return if there are a number of results + * @return Whether the numResults field is set. */ + @java.lang.Override public boolean hasNumResults() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * - * @return the number of results + * @return The numResults. */ + @java.lang.Override public int getNumResults() { return numResults_; } - private void initFields() { - operationTimeMs_ = 0L; - messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptions_ = java.util.Collections.emptyList(); - query_ = java.util.Collections.emptyList(); - numResults_ = 0; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasOperationTimeMs()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } - for (int i = 0; i < getQueryCount(); i++) { - if (!getQuery(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (operationTimeMs_ != 0L) { output.writeUInt64(1, operationTimeMs_); } for (int i = 0; i < messages_.size(); i++) { - output.writeBytes(2, messages_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, messages_.getRaw(i)); } for (int i = 0; i < exceptions_.size(); i++) { output.writeMessage(3, exceptions_.get(i)); @@ -1405,26 +1435,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < query_.size(); i++) { output.writeMessage(4, query_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(5, numResults_); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (operationTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, operationTimeMs_); } { int dataSize = 0; for (int i = 0; i < messages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(messages_.getByteString(i)); + dataSize += computeStringSizeNoTag(messages_.getRaw(i)); } size += dataSize; size += 1 * getMessagesList().size(); @@ -1435,18 +1465,81 @@ public int getSerializedSize() { for (int i = 0; i < query_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, query_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, numResults_); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.result.ResponseMessages.QueryImplListResponse)) { + return super.equals(obj); + } + datawave.webservice.result.ResponseMessages.QueryImplListResponse other = (datawave.webservice.result.ResponseMessages.QueryImplListResponse) obj; + + if (getOperationTimeMs() != other.getOperationTimeMs()) + return false; + if (!getMessagesList().equals(other.getMessagesList())) + return false; + if (!getExceptionsList().equals(other.getExceptionsList())) + return false; + if (!getQueryList().equals(other.getQueryList())) + return false; + if (hasNumResults() != other.hasNumResults()) + return false; + if (hasNumResults()) { + if (getNumResults() != other.getNumResults()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATION_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOperationTimeMs()); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (getExceptionsCount() > 0) { + hash = (37 * hash) + EXCEPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExceptionsList().hashCode(); + } + if (getQueryCount() > 0) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQueryList().hashCode(); + } + if (hasNumResults()) { + hash = (37 * hash) + NUMRESULTS_FIELD_NUMBER; + hash = (53 * hash) + getNumResults(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(com.google.protobuf.ByteString data) @@ -1470,90 +1563,122 @@ public static datawave.webservice.result.ResponseMessages.QueryImplListResponse } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.QueryImplListResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.result.ResponseMessages.QueryImplListResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.result.QueryImplListResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.result.ResponseMessages.QueryImplListResponseOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.result.QueryImplListResponse) + datawave.webservice.result.ResponseMessages.QueryImplListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_QueryImplListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_QueryImplListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.result.ResponseMessages.QueryImplListResponse.class, + datawave.webservice.result.ResponseMessages.QueryImplListResponse.Builder.class); + } + // Construct using datawave.webservice.result.ResponseMessages.QueryImplListResponse.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); operationTimeMs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + } else { + exceptions_ = null; + exceptionsBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000002); - exceptions_ = java.util.Collections.emptyList(); + if (queryBuilder_ == null) { + query_ = java.util.Collections.emptyList(); + } else { + query_ = null; + queryBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000004); - query_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); numResults_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_QueryImplListResponse_descriptor; } + @java.lang.Override public datawave.webservice.result.ResponseMessages.QueryImplListResponse getDefaultInstanceForType() { return datawave.webservice.result.ResponseMessages.QueryImplListResponse.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.result.ResponseMessages.QueryImplListResponse build() { datawave.webservice.result.ResponseMessages.QueryImplListResponse result = buildPartial(); if (!result.isInitialized()) { @@ -1562,183 +1687,292 @@ public datawave.webservice.result.ResponseMessages.QueryImplListResponse build() return result; } + @java.lang.Override public datawave.webservice.result.ResponseMessages.QueryImplListResponse buildPartial() { datawave.webservice.result.ResponseMessages.QueryImplListResponse result = new datawave.webservice.result.ResponseMessages.QueryImplListResponse( this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.operationTimeMs_ = operationTimeMs_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.UnmodifiableLazyStringList(messages_); - bitField0_ = (bitField0_ & ~0x00000002); + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = messages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = java.util.Collections.unmodifiableList(exceptions_); - bitField0_ = (bitField0_ & ~0x00000004); + if (exceptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + exceptions_ = java.util.Collections.unmodifiableList(exceptions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exceptions_ = exceptions_; + } else { + result.exceptions_ = exceptionsBuilder_.build(); } - result.exceptions_ = exceptions_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - query_ = java.util.Collections.unmodifiableList(query_); - bitField0_ = (bitField0_ & ~0x00000008); + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + query_ = java.util.Collections.unmodifiableList(query_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.query_ = query_; + } else { + result.query_ = queryBuilder_.build(); } - result.query_ = query_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000002; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.numResults_ = numResults_; + to_bitField0_ |= 0x00000001; } - result.numResults_ = numResults_; result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.result.ResponseMessages.QueryImplListResponse) { + return mergeFrom((datawave.webservice.result.ResponseMessages.QueryImplListResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.result.ResponseMessages.QueryImplListResponse other) { if (other == datawave.webservice.result.ResponseMessages.QueryImplListResponse.getDefaultInstance()) return this; - if (other.hasOperationTimeMs()) { + if (other.getOperationTimeMs() != 0L) { setOperationTimeMs(other.getOperationTimeMs()); } if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } - + onChanged(); } - if (!other.exceptions_.isEmpty()) { - if (exceptions_.isEmpty()) { - exceptions_ = other.exceptions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExceptionsIsMutable(); - exceptions_.addAll(other.exceptions_); + if (exceptionsBuilder_ == null) { + if (!other.exceptions_.isEmpty()) { + if (exceptions_.isEmpty()) { + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExceptionsIsMutable(); + exceptions_.addAll(other.exceptions_); + } + onChanged(); + } + } else { + if (!other.exceptions_.isEmpty()) { + if (exceptionsBuilder_.isEmpty()) { + exceptionsBuilder_.dispose(); + exceptionsBuilder_ = null; + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + exceptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExceptionsFieldBuilder() : null; + } else { + exceptionsBuilder_.addAllMessages(other.exceptions_); + } } - } - if (!other.query_.isEmpty()) { - if (query_.isEmpty()) { - query_ = other.query_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureQueryIsMutable(); - query_.addAll(other.query_); + if (queryBuilder_ == null) { + if (!other.query_.isEmpty()) { + if (query_.isEmpty()) { + query_ = other.query_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureQueryIsMutable(); + query_.addAll(other.query_); + } + onChanged(); + } + } else { + if (!other.query_.isEmpty()) { + if (queryBuilder_.isEmpty()) { + queryBuilder_.dispose(); + queryBuilder_ = null; + query_ = other.query_; + bitField0_ = (bitField0_ & ~0x00000004); + queryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueryFieldBuilder() : null; + } else { + queryBuilder_.addAllMessages(other.query_); + } } - } if (other.hasNumResults()) { setNumResults(other.getNumResults()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasOperationTimeMs()) { - - return false; - } - for (int i = 0; i < getQueryCount(); i++) { - if (!getQuery(i).isInitialized()) { - - return false; - } - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.webservice.result.ResponseMessages.QueryImplListResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + operationTimeMs_ = input.readUInt64(); + + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessagesIsMutable(); + messages_.add(s); + break; + } // case 18 + case 26: { + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType m = input.readMessage( + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.parser(), extensionRegistry); + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(m); + } else { + exceptionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + datawave.webservice.query.QueryMessages.QueryImpl m = input + .readMessage(datawave.webservice.query.QueryMessages.QueryImpl.parser(), extensionRegistry); + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.add(m); + } else { + queryBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: { + numResults_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + 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) { - parsedMessage = (datawave.webservice.result.ResponseMessages.QueryImplListResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // required uint64 operation_time_ms = 1 [default = 0]; private long operationTimeMs_; /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time - */ - public boolean hasOperationTimeMs() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ + @java.lang.Override public long getOperationTimeMs() { return operationTimeMs_; } /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * * @param value - * new operation time in ms - * - * @return builder to set operation time to provided value + * The operationTimeMs to set. + * @return This builder for chaining. */ public Builder setOperationTimeMs(long value) { - bitField0_ |= 0x00000001; - operationTimeMs_ = value; + operationTimeMs_ = value; + onChanged(); return this; } /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return builder to clear operation time + * @return This builder for chaining. */ public Builder clearOperationTimeMs() { - bitField0_ = (bitField0_ & ~0x00000001); - operationTimeMs_ = 0L; + operationTimeMs_ = 0L; + onChanged(); return this; } - // repeated string messages = 2; private com.google.protobuf.LazyStringList messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** * repeated string messages = 2; * - * @return the messages list + * @return A list containing the messages. */ - public java.util.List getMessagesList() { - return java.util.Collections.unmodifiableList(messages_); + public com.google.protobuf.ProtocolStringList getMessagesList() { + return messages_.getUnmodifiableView(); } /** * repeated string messages = 2; * - * @return the number of messages in the list + * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); @@ -1748,9 +1982,8 @@ public int getMessagesCount() { * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); @@ -1760,9 +1993,8 @@ public java.lang.String getMessages(int index) { * repeated string messages = 2; * * @param index - * the index - * - * @return the message byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); @@ -1772,11 +2004,10 @@ public com.google.protobuf.ByteString getMessagesBytes(int index) { * repeated string messages = 2; * * @param index - * the index + * The index to set the value at. * @param value - * the new message - * - * @return builder to set the message at the provided index to the provided value + * The messages to set. + * @return This builder for chaining. */ public Builder setMessages(int index, java.lang.String value) { if (value == null) { @@ -1784,7 +2015,7 @@ public Builder setMessages(int index, java.lang.String value) { } ensureMessagesIsMutable(); messages_.set(index, value); - + onChanged(); return this; } @@ -1792,9 +2023,8 @@ public Builder setMessages(int index, java.lang.String value) { * repeated string messages = 2; * * @param value - * the new message - * - * @return builder to add the message + * The messages to add. + * @return This builder for chaining. */ public Builder addMessages(java.lang.String value) { if (value == null) { @@ -1802,7 +2032,7 @@ public Builder addMessages(java.lang.String value) { } ensureMessagesIsMutable(); messages_.add(value); - + onChanged(); return this; } @@ -1810,26 +2040,25 @@ public Builder addMessages(java.lang.String value) { * repeated string messages = 2; * * @param values - * iterable of messages to add to the list - * - * @return builder to add all messages + * The messages to add. + * @return This builder for chaining. */ public Builder addAllMessages(java.lang.Iterable values) { ensureMessagesIsMutable(); - super.addAll(values, messages_); - + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); return this; } /** * repeated string messages = 2; * - * @return builder to clear messages + * @return This builder for chaining. */ public Builder clearMessages() { messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -1837,487 +2066,624 @@ public Builder clearMessages() { * repeated string messages = 2; * * @param value - * message byte string - * - * @return builder to add message byte string + * The bytes of the messages to add. + * @return This builder for chaining. */ public Builder addMessagesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); - + onChanged(); return this; } - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000002) != 0)) { exceptions_ = new java.util.ArrayList(exceptions_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } + private com.google.protobuf.RepeatedFieldBuilderV3 exceptionsBuilder_; + /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return list of exceptions */ public java.util.List getExceptionsList() { - return java.util.Collections.unmodifiableList(exceptions_); + if (exceptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(exceptions_); + } else { + return exceptionsBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the size of the exceptions list */ public int getExceptionsCount() { - return exceptions_.size(); + if (exceptionsBuilder_ == null) { + return exceptions_.size(); + } else { + return exceptionsBuilder_.getCount(); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { - return exceptions_.get(index); + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param value - * the exception to add - * - * @return builder to set the exception at the provided index */ public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.set(index, value); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, value); } - ensureExceptionsIsMutable(); - exceptions_.set(index, value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param builderForValue - * builder with the value for the exception to add - * - * @return builder to set exception to provided builder */ public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.set(index, builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.set(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param value - * exception to add - * - * @return builder to add exceptions provided */ public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(value); } - ensureExceptionsIsMutable(); - exceptions_.add(value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param value - * the exception to add - * - * @return builder to add exception to provided index */ public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(index, value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, value); } - ensureExceptionsIsMutable(); - exceptions_.add(index, value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param builderForValue - * builder for the exception - * - * @return builder to add exception provided */ public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.add(builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param builderForValue - * builder to create exception - * - * @return builder to add exception from builder to provided index */ public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.add(index, builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param values - * iterable of exceptions to add - * - * @return builder to add provided exceptions */ public Builder addAllExceptions(java.lang.Iterable values) { - ensureExceptionsIsMutable(); - super.addAll(values, exceptions_); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptions_); + onChanged(); + } else { + exceptionsBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return builder to clear exceptions */ public Builder clearExceptions() { - exceptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + exceptionsBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return builder to remove the exception at the provided index */ public Builder removeExceptions(int index) { - ensureExceptionsIsMutable(); - exceptions_.remove(index); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.remove(index); + onChanged(); + } else { + exceptionsBuilder_.remove(index); + } return this; } - // repeated .datawave.webservice.query.QueryImpl query = 4; + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder getExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsOrBuilderList() { + if (exceptionsBuilder_ != null) { + return exceptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exceptions_); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder() { + return getExceptionsFieldBuilder().addBuilder(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().addBuilder(index, + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsBuilderList() { + return getExceptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getExceptionsFieldBuilder() { + if (exceptionsBuilder_ == null) { + exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + exceptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + exceptions_ = null; + } + return exceptionsBuilder_; + } + private java.util.List query_ = java.util.Collections.emptyList(); private void ensureQueryIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { + if (!((bitField0_ & 0x00000004) != 0)) { query_ = new java.util.ArrayList(query_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } + private com.google.protobuf.RepeatedFieldBuilderV3 queryBuilder_; + /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the query list */ public java.util.List getQueryList() { - return java.util.Collections.unmodifiableList(query_); + if (queryBuilder_ == null) { + return java.util.Collections.unmodifiableList(query_); + } else { + return queryBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return the number of queries in the list */ public int getQueryCount() { - return query_.size(); + if (queryBuilder_ == null) { + return query_.size(); + } else { + return queryBuilder_.getCount(); + } } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * - * @return return the query at the provided index */ public datawave.webservice.query.QueryMessages.QueryImpl getQuery(int index) { - return query_.get(index); + if (queryBuilder_ == null) { + return query_.get(index); + } else { + return queryBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * @param value - * the query to set - * - * @return builder to set the query at the provided index to the provided value */ public Builder setQuery(int index, datawave.webservice.query.QueryMessages.QueryImpl value) { - if (value == null) { - throw new NullPointerException(); + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryIsMutable(); + query_.set(index, value); + onChanged(); + } else { + queryBuilder_.setMessage(index, value); } - ensureQueryIsMutable(); - query_.set(index, value); - return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * @param builderForValue - * the builder for the value - * - * @return builder to set query at the provided index */ public Builder setQuery(int index, datawave.webservice.query.QueryMessages.QueryImpl.Builder builderForValue) { - ensureQueryIsMutable(); - query_.set(index, builderForValue.build()); - + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.set(index, builderForValue.build()); + onChanged(); + } else { + queryBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param value - * the query to add - * - * @return builder to add the query value */ public Builder addQuery(datawave.webservice.query.QueryMessages.QueryImpl value) { - if (value == null) { - throw new NullPointerException(); + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryIsMutable(); + query_.add(value); + onChanged(); + } else { + queryBuilder_.addMessage(value); } - ensureQueryIsMutable(); - query_.add(value); - return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * @param value - * the query to add - * - * @return builder to add query to provided index */ public Builder addQuery(int index, datawave.webservice.query.QueryMessages.QueryImpl value) { - if (value == null) { - throw new NullPointerException(); + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryIsMutable(); + query_.add(index, value); + onChanged(); + } else { + queryBuilder_.addMessage(index, value); } - ensureQueryIsMutable(); - query_.add(index, value); - return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param builderForValue - * builder with the query to add - * - * @return builder to add query */ public Builder addQuery(datawave.webservice.query.QueryMessages.QueryImpl.Builder builderForValue) { - ensureQueryIsMutable(); - query_.add(builderForValue.build()); - + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.add(builderForValue.build()); + onChanged(); + } else { + queryBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * @param builderForValue - * query to add - * - * @return builder to add query to provided index */ public Builder addQuery(int index, datawave.webservice.query.QueryMessages.QueryImpl.Builder builderForValue) { - ensureQueryIsMutable(); - query_.add(index, builderForValue.build()); - + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.add(index, builderForValue.build()); + onChanged(); + } else { + queryBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param values - * iterable of queries to add - * - * @return builder to add all provided queries */ public Builder addAllQuery(java.lang.Iterable values) { - ensureQueryIsMutable(); - super.addAll(values, query_); - + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, query_); + onChanged(); + } else { + queryBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @return builder to clear the query list */ public Builder clearQuery() { - query_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - + if (queryBuilder_ == null) { + query_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + queryBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.query.QueryImpl query = 4; - * - * @param index - * the index - * - * @return builder to remove the query at the provided index */ public Builder removeQuery(int index) { - ensureQueryIsMutable(); - query_.remove(index); - + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.remove(index); + onChanged(); + } else { + queryBuilder_.remove(index); + } return this; } - // optional uint32 numResults = 5 [default = 0]; + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.Builder getQueryBuilder(int index) { + return getQueryFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + public datawave.webservice.query.QueryMessages.QueryImplOrBuilder getQueryOrBuilder(int index) { + if (queryBuilder_ == null) { + return query_.get(index); + } else { + return queryBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + public java.util.List getQueryOrBuilderList() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(query_); + } + } + + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.Builder addQueryBuilder() { + return getQueryFieldBuilder().addBuilder(datawave.webservice.query.QueryMessages.QueryImpl.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + public datawave.webservice.query.QueryMessages.QueryImpl.Builder addQueryBuilder(int index) { + return getQueryFieldBuilder().addBuilder(index, datawave.webservice.query.QueryMessages.QueryImpl.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.QueryImpl query = 4; + */ + public java.util.List getQueryBuilderList() { + return getQueryFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + query_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + query_ = null; + } + return queryBuilder_; + } + private int numResults_; /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * - * @return if it has a number of results + * @return Whether the numResults field is set. */ + @java.lang.Override public boolean hasNumResults() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * - * @return the number of results + * @return The numResults. */ + @java.lang.Override public int getNumResults() { return numResults_; } /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * * @param value - * new number of results - * - * @return builder to set the number of results + * The numResults to set. + * @return This builder for chaining. */ public Builder setNumResults(int value) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000008; numResults_ = value; - + onChanged(); return this; } /** - * optional uint32 numResults = 5 [default = 0]; + * uint32 numResults = 5; * - * @return builder to clear the number of results + * @return This builder for chaining. */ public Builder clearNumResults() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000008); numResults_ = 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:datawave.webservice.result.QueryImplListResponse) } + // @@protoc_insertion_point(class_scope:datawave.webservice.result.QueryImplListResponse) + private static final datawave.webservice.result.ResponseMessages.QueryImplListResponse DEFAULT_INSTANCE; static { - defaultInstance = new QueryImplListResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.result.ResponseMessages.QueryImplListResponse(); } - // @@protoc_insertion_point(class_scope:datawave.webservice.result.QueryImplListResponse) - } + public static datawave.webservice.result.ResponseMessages.QueryImplListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public interface GenericResponseOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryImplListResponse 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(); + } + }; - // required uint64 operation_time_ms = 1 [default = 0]; - /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time - */ - boolean hasOperationTimeMs(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datawave.webservice.result.ResponseMessages.QueryImplListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenericResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.result.GenericResponse) + com.google.protobuf.MessageOrBuilder { /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ long getOperationTimeMs(); - // repeated string messages = 2; - /** * repeated string messages = 2; * - * @return list of messages + * @return A list containing the messages. */ java.util.List getMessagesList(); /** * repeated string messages = 2; * - * @return the number of messages + * @return The count of messages. */ int getMessagesCount(); @@ -2325,9 +2691,8 @@ public interface GenericResponseOrBuilder extends com.google.protobuf.MessageLit * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ java.lang.String getMessages(int index); @@ -2335,372 +2700,248 @@ public interface GenericResponseOrBuilder extends com.google.protobuf.MessageLit * repeated string messages = 2; * * @param index - * the index - * - * @return the byte string for the message at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ com.google.protobuf.ByteString getMessagesBytes(int index); - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the list of exceptions */ java.util.List getExceptionsList(); /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index); /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions */ int getExceptionsCount(); - // required string result_class_name = 4; /** - * required string result_class_name = 4; - * - * @return if it has a result class name + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + java.util.List getExceptionsOrBuilderList(); + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; */ - boolean hasResultClassName(); + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index); /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return the result class name + * @return The resultClassName. */ java.lang.String getResultClassName(); /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return the result class name byte string + * @return The bytes for resultClassName. */ com.google.protobuf.ByteString getResultClassNameBytes(); - // optional string result_as_string = 5; /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return if it has result as a string + * @return Whether the resultAsString field is set. */ boolean hasResultAsString(); /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return the results as a string + * @return The resultAsString. */ java.lang.String getResultAsString(); /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return the result as a byte string + * @return The bytes for resultAsString. */ com.google.protobuf.ByteString getResultAsStringBytes(); - // optional bool result_as_boolean = 6; /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return if it has the result as boolean + * @return Whether the resultAsBoolean field is set. */ boolean hasResultAsBoolean(); /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return the result as a boolean + * @return The resultAsBoolean. */ boolean getResultAsBoolean(); - // optional sint32 result_as_int = 7; /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return if it has result as integer + * @return Whether the resultAsInt field is set. */ boolean hasResultAsInt(); /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return the result as an integer + * @return The resultAsInt. */ int getResultAsInt(); - // optional sint64 result_as_long = 8; /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return if it has result as a long + * @return Whether the resultAsLong field is set. */ boolean hasResultAsLong(); /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return the result as a long + * @return The resultAsLong. */ long getResultAsLong(); - // optional float result_as_float = 9; /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return if it has the result as a float + * @return Whether the resultAsFloat field is set. */ boolean hasResultAsFloat(); /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return the result as a float + * @return The resultAsFloat. */ float getResultAsFloat(); - // optional double result_as_double = 10; /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return if it has the result as a double + * @return Whether the resultAsDouble field is set. */ boolean hasResultAsDouble(); /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return the result as a double + * @return The resultAsDouble. */ double getResultAsDouble(); - // optional bytes result_as_bytes = 11; /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return if it has result as bytes + * @return Whether the resultAsBytes field is set. */ boolean hasResultAsBytes(); /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return the result as bytes + * @return The resultAsBytes. */ com.google.protobuf.ByteString getResultAsBytes(); - // optional .datawave.webservice.results.cached.result.Description result_as_description = 12; /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; + * .datawave.webservice.results.cached.result.Description result_as_description = 12; * - * @return if the result is a description + * @return Whether the resultAsDescription field is set. */ boolean hasResultAsDescription(); /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; + * .datawave.webservice.results.cached.result.Description result_as_description = 12; * - * @return the result as a description + * @return The resultAsDescription. */ datawave.webservice.results.cached.result.CachedresultMessages.Description getResultAsDescription(); + + /** + * .datawave.webservice.results.cached.result.Description result_as_description = 12; + */ + datawave.webservice.results.cached.result.CachedresultMessages.DescriptionOrBuilder getResultAsDescriptionOrBuilder(); } /** * Protobuf type {@code datawave.webservice.result.GenericResponse} */ - public static final class GenericResponse extends com.google.protobuf.GeneratedMessageLite implements GenericResponseOrBuilder { + public static final class GenericResponse extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.result.GenericResponse) + GenericResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenericResponse.newBuilder() to construct. - private GenericResponse(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private GenericResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private GenericResponse(boolean noInit) {} - - private static final GenericResponse defaultInstance; - - public static GenericResponse getDefaultInstance() { - return defaultInstance; - } - - public GenericResponse getDefaultInstanceForType() { - return defaultInstance; + private GenericResponse() { + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + exceptions_ = java.util.Collections.emptyList(); + resultClassName_ = ""; + resultAsString_ = ""; + resultAsBytes_ = com.google.protobuf.ByteString.EMPTY; } - - private GenericResponse(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - operationTimeMs_ = input.readUInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - messages_.add(input.readBytes()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - exceptions_.add(input.readMessage(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.PARSER, - extensionRegistry)); - break; - } - case 34: { - bitField0_ |= 0x00000002; - resultClassName_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000004; - resultAsString_ = input.readBytes(); - break; - } - case 48: { - bitField0_ |= 0x00000008; - resultAsBoolean_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000010; - resultAsInt_ = input.readSInt32(); - break; - } - case 64: { - bitField0_ |= 0x00000020; - resultAsLong_ = input.readSInt64(); - break; - } - case 77: { - bitField0_ |= 0x00000040; - resultAsFloat_ = input.readFloat(); - break; - } - case 81: { - bitField0_ |= 0x00000080; - resultAsDouble_ = input.readDouble(); - break; - } - case 90: { - bitField0_ |= 0x00000100; - resultAsBytes_ = input.readBytes(); - break; - } - case 98: { - datawave.webservice.results.cached.result.CachedresultMessages.Description.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = resultAsDescription_.toBuilder(); - } - resultAsDescription_ = input.readMessage(datawave.webservice.results.cached.result.CachedresultMessages.Description.PARSER, - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultAsDescription_); - resultAsDescription_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.UnmodifiableLazyStringList(messages_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = java.util.Collections.unmodifiableList(exceptions_); - } - makeExtensionsImmutable(); - } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenericResponse(); } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public GenericResponse parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenericResponse(input, extensionRegistry); - } - }; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_GenericResponse_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_GenericResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.result.ResponseMessages.GenericResponse.class, + datawave.webservice.result.ResponseMessages.GenericResponse.Builder.class); } private int bitField0_; - // required uint64 operation_time_ms = 1 [default = 0]; public static final int OPERATION_TIME_MS_FIELD_NUMBER = 1; private long operationTimeMs_; /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has an operation time - */ - public boolean hasOperationTimeMs() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ + @java.lang.Override public long getOperationTimeMs() { return operationTimeMs_; } - // repeated string messages = 2; public static final int MESSAGES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList messages_; /** * repeated string messages = 2; * - * @return the message list + * @return A list containing the messages. */ - public java.util.List getMessagesList() { + public com.google.protobuf.ProtocolStringList getMessagesList() { return messages_; } /** * repeated string messages = 2; * - * @return the number of messages in the lsit + * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); @@ -2710,9 +2951,8 @@ public int getMessagesCount() { * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); @@ -2722,87 +2962,65 @@ public java.lang.String getMessages(int index) { * repeated string messages = 2; * * @param index - * the index - * - * @return message as byte string at the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); } - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; public static final int EXCEPTIONS_FIELD_NUMBER = 3; private java.util.List exceptions_; /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the exceptions list */ + @java.lang.Override public java.util.List getExceptionsList() { return exceptions_; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the exceptions list */ + @java.lang.Override public java.util.List getExceptionsOrBuilderList() { return exceptions_; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions in the list */ + @java.lang.Override public int getExceptionsCount() { return exceptions_.size(); } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { return exceptions_.get(index); } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the index provided */ + @java.lang.Override public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { return exceptions_.get(index); } - // required string result_class_name = 4; public static final int RESULT_CLASS_NAME_FIELD_NUMBER = 4; - private java.lang.Object resultClassName_; - - /** - * required string result_class_name = 4; - * - * @return if it has a result class name - */ - public boolean hasResultClassName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } + private volatile java.lang.Object resultClassName_; /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return the result class name + * @return The resultClassName. */ + @java.lang.Override public java.lang.String getResultClassName() { java.lang.Object ref = resultClassName_; if (ref instanceof java.lang.String) { @@ -2810,18 +3028,17 @@ public java.lang.String getResultClassName() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resultClassName_ = s; - } + resultClassName_ = s; return s; } } /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return the result class name byte string + * @return The bytes for resultClassName. */ + @java.lang.Override public com.google.protobuf.ByteString getResultClassNameBytes() { java.lang.Object ref = resultClassName_; if (ref instanceof java.lang.String) { @@ -2833,24 +3050,25 @@ public com.google.protobuf.ByteString getResultClassNameBytes() { } } - // optional string result_as_string = 5; public static final int RESULT_AS_STRING_FIELD_NUMBER = 5; - private java.lang.Object resultAsString_; + private volatile java.lang.Object resultAsString_; /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return if it has results as a string + * @return Whether the resultAsString field is set. */ + @java.lang.Override public boolean hasResultAsString() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000001) != 0); } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return the results as a string + * @return The resultAsString. */ + @java.lang.Override public java.lang.String getResultAsString() { java.lang.Object ref = resultAsString_; if (ref instanceof java.lang.String) { @@ -2858,18 +3076,17 @@ public java.lang.String getResultAsString() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resultAsString_ = s; - } + resultAsString_ = s; return s; } } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return the result as a byte string + * @return The bytes for resultAsString. */ + @java.lang.Override public com.google.protobuf.ByteString getResultAsStringBytes() { java.lang.Object ref = resultAsString_; if (ref instanceof java.lang.String) { @@ -2881,255 +3098,246 @@ public com.google.protobuf.ByteString getResultAsStringBytes() { } } - // optional bool result_as_boolean = 6; public static final int RESULT_AS_BOOLEAN_FIELD_NUMBER = 6; private boolean resultAsBoolean_; /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return if it has result as a boolean + * @return Whether the resultAsBoolean field is set. */ + @java.lang.Override public boolean hasResultAsBoolean() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000002) != 0); } /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return the result as a boolean + * @return The resultAsBoolean. */ + @java.lang.Override public boolean getResultAsBoolean() { return resultAsBoolean_; } - // optional sint32 result_as_int = 7; public static final int RESULT_AS_INT_FIELD_NUMBER = 7; private int resultAsInt_; /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return if it has result as an integer + * @return Whether the resultAsInt field is set. */ + @java.lang.Override public boolean hasResultAsInt() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return result as an integer + * @return The resultAsInt. */ + @java.lang.Override public int getResultAsInt() { return resultAsInt_; } - // optional sint64 result_as_long = 8; public static final int RESULT_AS_LONG_FIELD_NUMBER = 8; private long resultAsLong_; /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return if it has result as a long + * @return Whether the resultAsLong field is set. */ + @java.lang.Override public boolean hasResultAsLong() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return the result as a long + * @return The resultAsLong. */ + @java.lang.Override public long getResultAsLong() { return resultAsLong_; } - // optional float result_as_float = 9; public static final int RESULT_AS_FLOAT_FIELD_NUMBER = 9; private float resultAsFloat_; /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return if it has result as a float + * @return Whether the resultAsFloat field is set. */ + @java.lang.Override public boolean hasResultAsFloat() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000010) != 0); } /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return the result as a float + * @return The resultAsFloat. */ + @java.lang.Override public float getResultAsFloat() { return resultAsFloat_; } - // optional double result_as_double = 10; public static final int RESULT_AS_DOUBLE_FIELD_NUMBER = 10; private double resultAsDouble_; /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return if it has a result as a double + * @return Whether the resultAsDouble field is set. */ + @java.lang.Override public boolean hasResultAsDouble() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return the result as a double + * @return The resultAsDouble. */ + @java.lang.Override public double getResultAsDouble() { return resultAsDouble_; } - // optional bytes result_as_bytes = 11; public static final int RESULT_AS_BYTES_FIELD_NUMBER = 11; private com.google.protobuf.ByteString resultAsBytes_; /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return if it has result as a byte string + * @return Whether the resultAsBytes field is set. */ + @java.lang.Override public boolean hasResultAsBytes() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return the result as a byte string + * @return The resultAsBytes. */ + @java.lang.Override public com.google.protobuf.ByteString getResultAsBytes() { return resultAsBytes_; } - // optional .datawave.webservice.results.cached.result.Description result_as_description = 12; public static final int RESULT_AS_DESCRIPTION_FIELD_NUMBER = 12; private datawave.webservice.results.cached.result.CachedresultMessages.Description resultAsDescription_; /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; + * .datawave.webservice.results.cached.result.Description result_as_description = 12; * - * @return if iut has the result as a description + * @return Whether the resultAsDescription field is set. */ + @java.lang.Override public boolean hasResultAsDescription() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; + * .datawave.webservice.results.cached.result.Description result_as_description = 12; * - * @return the result as a description + * @return The resultAsDescription. */ + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Description getResultAsDescription() { - return resultAsDescription_; + return resultAsDescription_ == null ? datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance() + : resultAsDescription_; } - private void initFields() { - operationTimeMs_ = 0L; - messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; - exceptions_ = java.util.Collections.emptyList(); - resultClassName_ = ""; - resultAsString_ = ""; - resultAsBoolean_ = false; - resultAsInt_ = 0; - resultAsLong_ = 0L; - resultAsFloat_ = 0F; - resultAsDouble_ = 0D; - resultAsBytes_ = com.google.protobuf.ByteString.EMPTY; - resultAsDescription_ = datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance(); + /** + * .datawave.webservice.results.cached.result.Description result_as_description = 12; + */ + @java.lang.Override + public datawave.webservice.results.cached.result.CachedresultMessages.DescriptionOrBuilder getResultAsDescriptionOrBuilder() { + return resultAsDescription_ == null ? datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance() + : resultAsDescription_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasOperationTimeMs()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasResultClassName()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } - if (hasResultAsDescription()) { - if (!getResultAsDescription().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (operationTimeMs_ != 0L) { output.writeUInt64(1, operationTimeMs_); } for (int i = 0; i < messages_.size(); i++) { - output.writeBytes(2, messages_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, messages_.getRaw(i)); } for (int i = 0; i < exceptions_.size(); i++) { output.writeMessage(3, exceptions_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(4, getResultClassNameBytes()); + if (!getResultClassNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resultClassName_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(5, getResultAsStringBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resultAsString_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(6, resultAsBoolean_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeSInt32(7, resultAsInt_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeSInt64(8, resultAsLong_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(9, resultAsFloat_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeDouble(10, resultAsDouble_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBytes(11, resultAsBytes_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(12, resultAsDescription_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(12, getResultAsDescription()); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (operationTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, operationTimeMs_); } { int dataSize = 0; for (int i = 0; i < messages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(messages_.getByteString(i)); + dataSize += computeStringSizeNoTag(messages_.getRaw(i)); } size += dataSize; size += 1 * getMessagesList().size(); @@ -3137,42 +3345,173 @@ public int getSerializedSize() { for (int i = 0; i < exceptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, exceptions_.get(i)); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, getResultClassNameBytes()); + if (!getResultClassNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resultClassName_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, getResultAsStringBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resultAsString_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, resultAsBoolean_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeSInt32Size(7, resultAsInt_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeSInt64Size(8, resultAsLong_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, resultAsFloat_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(10, resultAsDouble_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, resultAsBytes_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, resultAsDescription_); + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getResultAsDescription()); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.result.ResponseMessages.GenericResponse)) { + return super.equals(obj); + } + datawave.webservice.result.ResponseMessages.GenericResponse other = (datawave.webservice.result.ResponseMessages.GenericResponse) obj; + + if (getOperationTimeMs() != other.getOperationTimeMs()) + return false; + if (!getMessagesList().equals(other.getMessagesList())) + return false; + if (!getExceptionsList().equals(other.getExceptionsList())) + return false; + if (!getResultClassName().equals(other.getResultClassName())) + return false; + if (hasResultAsString() != other.hasResultAsString()) + return false; + if (hasResultAsString()) { + if (!getResultAsString().equals(other.getResultAsString())) + return false; + } + if (hasResultAsBoolean() != other.hasResultAsBoolean()) + return false; + if (hasResultAsBoolean()) { + if (getResultAsBoolean() != other.getResultAsBoolean()) + return false; + } + if (hasResultAsInt() != other.hasResultAsInt()) + return false; + if (hasResultAsInt()) { + if (getResultAsInt() != other.getResultAsInt()) + return false; + } + if (hasResultAsLong() != other.hasResultAsLong()) + return false; + if (hasResultAsLong()) { + if (getResultAsLong() != other.getResultAsLong()) + return false; + } + if (hasResultAsFloat() != other.hasResultAsFloat()) + return false; + if (hasResultAsFloat()) { + if (java.lang.Float.floatToIntBits(getResultAsFloat()) != java.lang.Float.floatToIntBits(other.getResultAsFloat())) + return false; + } + if (hasResultAsDouble() != other.hasResultAsDouble()) + return false; + if (hasResultAsDouble()) { + if (java.lang.Double.doubleToLongBits(getResultAsDouble()) != java.lang.Double.doubleToLongBits(other.getResultAsDouble())) + return false; + } + if (hasResultAsBytes() != other.hasResultAsBytes()) + return false; + if (hasResultAsBytes()) { + if (!getResultAsBytes().equals(other.getResultAsBytes())) + return false; + } + if (hasResultAsDescription() != other.hasResultAsDescription()) + return false; + if (hasResultAsDescription()) { + if (!getResultAsDescription().equals(other.getResultAsDescription())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATION_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOperationTimeMs()); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + if (getExceptionsCount() > 0) { + hash = (37 * hash) + EXCEPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExceptionsList().hashCode(); + } + hash = (37 * hash) + RESULT_CLASS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResultClassName().hashCode(); + if (hasResultAsString()) { + hash = (37 * hash) + RESULT_AS_STRING_FIELD_NUMBER; + hash = (53 * hash) + getResultAsString().hashCode(); + } + if (hasResultAsBoolean()) { + hash = (37 * hash) + RESULT_AS_BOOLEAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResultAsBoolean()); + } + if (hasResultAsInt()) { + hash = (37 * hash) + RESULT_AS_INT_FIELD_NUMBER; + hash = (53 * hash) + getResultAsInt(); + } + if (hasResultAsLong()) { + hash = (37 * hash) + RESULT_AS_LONG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResultAsLong()); + } + if (hasResultAsFloat()) { + hash = (37 * hash) + RESULT_AS_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getResultAsFloat()); + } + if (hasResultAsDouble()) { + hash = (37 * hash) + RESULT_AS_DOUBLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getResultAsDouble())); + } + if (hasResultAsBytes()) { + hash = (37 * hash) + RESULT_AS_BYTES_FIELD_NUMBER; + hash = (53 * hash) + getResultAsBytes().hashCode(); + } + if (hasResultAsDescription()) { + hash = (37 * hash) + RESULT_AS_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getResultAsDescription().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(com.google.protobuf.ByteString data) @@ -3196,103 +3535,141 @@ public static datawave.webservice.result.ResponseMessages.GenericResponse parseF } public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.GenericResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.GenericResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.result.ResponseMessages.GenericResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.result.ResponseMessages.GenericResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.result.GenericResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.result.ResponseMessages.GenericResponseOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.result.GenericResponse) + datawave.webservice.result.ResponseMessages.GenericResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_GenericResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_GenericResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.result.ResponseMessages.GenericResponse.class, + datawave.webservice.result.ResponseMessages.GenericResponse.Builder.class); + } + // Construct using datawave.webservice.result.ResponseMessages.GenericResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private static Builder create() { - return new Builder(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExceptionsFieldBuilder(); + getResultAsDescriptionFieldBuilder(); + } } + @java.lang.Override public Builder clear() { super.clear(); operationTimeMs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); + messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + } else { + exceptions_ = null; + exceptionsBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000002); - exceptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); resultClassName_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); + resultAsString_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); resultAsBoolean_ = false; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); resultAsInt_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); resultAsLong_ = 0L; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); resultAsFloat_ = 0F; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); resultAsDouble_ = 0D; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); resultAsBytes_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000400); - resultAsDescription_ = datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000100); + if (resultAsDescriptionBuilder_ == null) { + resultAsDescription_ = null; + } else { + resultAsDescriptionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.result.ResponseMessages.internal_static_datawave_webservice_result_GenericResponse_descriptor; } + @java.lang.Override public datawave.webservice.result.ResponseMessages.GenericResponse getDefaultInstanceForType() { return datawave.webservice.result.ResponseMessages.GenericResponse.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.result.ResponseMessages.GenericResponse build() { datawave.webservice.result.ResponseMessages.GenericResponse result = buildPartial(); if (!result.isInitialized()) { @@ -3301,99 +3678,156 @@ public datawave.webservice.result.ResponseMessages.GenericResponse build() { return result; } + @java.lang.Override public datawave.webservice.result.ResponseMessages.GenericResponse buildPartial() { datawave.webservice.result.ResponseMessages.GenericResponse result = new datawave.webservice.result.ResponseMessages.GenericResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.operationTimeMs_ = operationTimeMs_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new com.google.protobuf.UnmodifiableLazyStringList(messages_); - bitField0_ = (bitField0_ & ~0x00000002); + if (((bitField0_ & 0x00000001) != 0)) { + messages_ = messages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - exceptions_ = java.util.Collections.unmodifiableList(exceptions_); - bitField0_ = (bitField0_ & ~0x00000004); + if (exceptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + exceptions_ = java.util.Collections.unmodifiableList(exceptions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.exceptions_ = exceptions_; + } else { + result.exceptions_ = exceptionsBuilder_.build(); + } + result.resultClassName_ = resultClassName_; + if (((from_bitField0_ & 0x00000004) != 0)) { + to_bitField0_ |= 0x00000001; } - result.exceptions_ = exceptions_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + result.resultAsString_ = resultAsString_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resultAsBoolean_ = resultAsBoolean_; to_bitField0_ |= 0x00000002; } - result.resultClassName_ = resultClassName_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resultAsInt_ = resultAsInt_; to_bitField0_ |= 0x00000004; } - result.resultAsString_ = resultAsString_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resultAsLong_ = resultAsLong_; to_bitField0_ |= 0x00000008; } - result.resultAsBoolean_ = resultAsBoolean_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + if (((from_bitField0_ & 0x00000040) != 0)) { + result.resultAsFloat_ = resultAsFloat_; to_bitField0_ |= 0x00000010; } - result.resultAsInt_ = resultAsInt_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.resultAsDouble_ = resultAsDouble_; to_bitField0_ |= 0x00000020; } - result.resultAsLong_ = resultAsLong_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000040; } - result.resultAsFloat_ = resultAsFloat_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000080; - } - result.resultAsDouble_ = resultAsDouble_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000100; - } result.resultAsBytes_ = resultAsBytes_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000200; + if (((from_bitField0_ & 0x00000200) != 0)) { + if (resultAsDescriptionBuilder_ == null) { + result.resultAsDescription_ = resultAsDescription_; + } else { + result.resultAsDescription_ = resultAsDescriptionBuilder_.build(); + } + to_bitField0_ |= 0x00000080; } - result.resultAsDescription_ = resultAsDescription_; result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.result.ResponseMessages.GenericResponse) { + return mergeFrom((datawave.webservice.result.ResponseMessages.GenericResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.result.ResponseMessages.GenericResponse other) { if (other == datawave.webservice.result.ResponseMessages.GenericResponse.getDefaultInstance()) return this; - if (other.hasOperationTimeMs()) { + if (other.getOperationTimeMs() != 0L) { setOperationTimeMs(other.getOperationTimeMs()); } if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); } - + onChanged(); } - if (!other.exceptions_.isEmpty()) { - if (exceptions_.isEmpty()) { - exceptions_ = other.exceptions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExceptionsIsMutable(); - exceptions_.addAll(other.exceptions_); + if (exceptionsBuilder_ == null) { + if (!other.exceptions_.isEmpty()) { + if (exceptions_.isEmpty()) { + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureExceptionsIsMutable(); + exceptions_.addAll(other.exceptions_); + } + onChanged(); + } + } else { + if (!other.exceptions_.isEmpty()) { + if (exceptionsBuilder_.isEmpty()) { + exceptionsBuilder_.dispose(); + exceptionsBuilder_ = null; + exceptions_ = other.exceptions_; + bitField0_ = (bitField0_ & ~0x00000002); + exceptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExceptionsFieldBuilder() : null; + } else { + exceptionsBuilder_.addAllMessages(other.exceptions_); + } } - } - if (other.hasResultClassName()) { - bitField0_ |= 0x00000008; + if (!other.getResultClassName().isEmpty()) { resultClassName_ = other.resultClassName_; - + onChanged(); } if (other.hasResultAsString()) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; resultAsString_ = other.resultAsString_; - + onChanged(); } if (other.hasResultAsBoolean()) { setResultAsBoolean(other.getResultAsBoolean()); @@ -3416,116 +3850,175 @@ public Builder mergeFrom(datawave.webservice.result.ResponseMessages.GenericResp if (other.hasResultAsDescription()) { mergeResultAsDescription(other.getResultAsDescription()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasOperationTimeMs()) { - - return false; - } - if (!hasResultClassName()) { - - return false; - } - if (hasResultAsDescription()) { - if (!getResultAsDescription().isInitialized()) { - - return false; - } - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.webservice.result.ResponseMessages.GenericResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + operationTimeMs_ = input.readUInt64(); + + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMessagesIsMutable(); + messages_.add(s); + break; + } // case 18 + case 26: { + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType m = input.readMessage( + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.parser(), extensionRegistry); + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(m); + } else { + exceptionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + resultClassName_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + resultAsString_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: { + resultAsBoolean_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 56: { + resultAsInt_ = input.readSInt32(); + bitField0_ |= 0x00000010; + break; + } // case 56 + case 64: { + resultAsLong_ = input.readSInt64(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 77: { + resultAsFloat_ = input.readFloat(); + bitField0_ |= 0x00000040; + break; + } // case 77 + case 81: { + resultAsDouble_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 81 + case 90: { + resultAsBytes_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 98: { + input.readMessage(getResultAsDescriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.webservice.result.ResponseMessages.GenericResponse) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // required uint64 operation_time_ms = 1 [default = 0]; private long operationTimeMs_; /** - * required uint64 operation_time_ms = 1 [default = 0]; - * - * @return if it has operation time - */ - public boolean hasOperationTimeMs() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return the operation time in ms + * @return The operationTimeMs. */ + @java.lang.Override public long getOperationTimeMs() { return operationTimeMs_; } /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * * @param value - * the new operation time in ms - * - * @return builder to set operation time in ms + * The operationTimeMs to set. + * @return This builder for chaining. */ public Builder setOperationTimeMs(long value) { - bitField0_ |= 0x00000001; - operationTimeMs_ = value; + operationTimeMs_ = value; + onChanged(); return this; } /** - * required uint64 operation_time_ms = 1 [default = 0]; + * uint64 operation_time_ms = 1; * - * @return builder to clear operation time + * @return This builder for chaining. */ public Builder clearOperationTimeMs() { - bitField0_ = (bitField0_ & ~0x00000001); - operationTimeMs_ = 0L; + operationTimeMs_ = 0L; + onChanged(); return this; } - // repeated string messages = 2; private com.google.protobuf.LazyStringList messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new com.google.protobuf.LazyStringArrayList(messages_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** * repeated string messages = 2; * - * @return the message list + * @return A list containing the messages. */ - public java.util.List getMessagesList() { - return java.util.Collections.unmodifiableList(messages_); + public com.google.protobuf.ProtocolStringList getMessagesList() { + return messages_.getUnmodifiableView(); } /** * repeated string messages = 2; * - * @return the messages count + * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); @@ -3535,9 +4028,8 @@ public int getMessagesCount() { * repeated string messages = 2; * * @param index - * the index - * - * @return the message at the provided index + * The index of the element to return. + * @return The messages at the given index. */ public java.lang.String getMessages(int index) { return messages_.get(index); @@ -3547,9 +4039,8 @@ public java.lang.String getMessages(int index) { * repeated string messages = 2; * * @param index - * the index - * - * @return the message byte string for the provided index + * The index of the value to return. + * @return The bytes of the messages at the given index. */ public com.google.protobuf.ByteString getMessagesBytes(int index) { return messages_.getByteString(index); @@ -3559,11 +4050,10 @@ public com.google.protobuf.ByteString getMessagesBytes(int index) { * repeated string messages = 2; * * @param index - * the index + * The index to set the value at. * @param value - * the message to add - * - * @return builder to set the message at the provided index + * The messages to set. + * @return This builder for chaining. */ public Builder setMessages(int index, java.lang.String value) { if (value == null) { @@ -3571,7 +4061,7 @@ public Builder setMessages(int index, java.lang.String value) { } ensureMessagesIsMutable(); messages_.set(index, value); - + onChanged(); return this; } @@ -3579,9 +4069,8 @@ public Builder setMessages(int index, java.lang.String value) { * repeated string messages = 2; * * @param value - * the new message - * - * @return builder to add the provided value + * The messages to add. + * @return This builder for chaining. */ public Builder addMessages(java.lang.String value) { if (value == null) { @@ -3589,7 +4078,7 @@ public Builder addMessages(java.lang.String value) { } ensureMessagesIsMutable(); messages_.add(value); - + onChanged(); return this; } @@ -3597,26 +4086,25 @@ public Builder addMessages(java.lang.String value) { * repeated string messages = 2; * * @param values - * iterable of messages to add - * - * @return builder to add the values provided + * The messages to add. + * @return This builder for chaining. */ public Builder addAllMessages(java.lang.Iterable values) { ensureMessagesIsMutable(); - super.addAll(values, messages_); - + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + onChanged(); return this; } /** * repeated string messages = 2; * - * @return builder to clear messages + * @return This builder for chaining. */ public Builder clearMessages() { messages_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -3624,230 +4112,271 @@ public Builder clearMessages() { * repeated string messages = 2; * * @param value - * message byte string - * - * @return builder to add message byte string + * The bytes of the messages to add. + * @return This builder for chaining. */ public Builder addMessagesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); ensureMessagesIsMutable(); messages_.add(value); - + onChanged(); return this; } - // repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000002) != 0)) { exceptions_ = new java.util.ArrayList(exceptions_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } + private com.google.protobuf.RepeatedFieldBuilderV3 exceptionsBuilder_; + /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the list of exceptions */ public java.util.List getExceptionsList() { - return java.util.Collections.unmodifiableList(exceptions_); + if (exceptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(exceptions_); + } else { + return exceptionsBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return the number of exceptions */ public int getExceptionsCount() { - return exceptions_.size(); + if (exceptionsBuilder_ == null) { + return exceptions_.size(); + } else { + return exceptionsBuilder_.getCount(); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return the exception at the provided index */ public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType getExceptions(int index) { - return exceptions_.get(index); + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param value - * the new exception to add - * - * @return builder to set exception at index to provided value */ public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.set(index, value); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, value); } - ensureExceptionsIsMutable(); - exceptions_.set(index, value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param builderForValue - * builder for the value - * - * @return builder to set exception at provided index */ public Builder setExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.set(index, builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.set(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param value - * the exception to add - * - * @return builder to add exception */ public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(value); } - ensureExceptionsIsMutable(); - exceptions_.add(value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param value - * the exception to add - * - * @return builder to add exception to the list */ public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType value) { - if (value == null) { - throw new NullPointerException(); + if (exceptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExceptionsIsMutable(); + exceptions_.add(index, value); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, value); } - ensureExceptionsIsMutable(); - exceptions_.add(index, value); - return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param builderForValue - * builder to create exception to add - * - * @return builder to add exception */ public Builder addExceptions(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.add(builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * @param builderForValue - * builder to create exception - * - * @return builder to add exception at provided index */ public Builder addExceptions(int index, datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder builderForValue) { - ensureExceptionsIsMutable(); - exceptions_.add(index, builderForValue.build()); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.add(index, builderForValue.build()); + onChanged(); + } else { + exceptionsBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param values - * iterable of exceptions to add - * - * @return builder to add exceptions */ public Builder addAllExceptions(java.lang.Iterable values) { - ensureExceptionsIsMutable(); - super.addAll(values, exceptions_); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exceptions_); + onChanged(); + } else { + exceptionsBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @return builder to clear exceptions */ public Builder clearExceptions() { - exceptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - + if (exceptionsBuilder_ == null) { + exceptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + exceptionsBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - * - * @param index - * the index - * - * @return builder to remove exception at given index */ public Builder removeExceptions(int index) { - ensureExceptionsIsMutable(); - exceptions_.remove(index); - + if (exceptionsBuilder_ == null) { + ensureExceptionsIsMutable(); + exceptions_.remove(index); + onChanged(); + } else { + exceptionsBuilder_.remove(index); + } return this; } - // required string result_class_name = 4; - private java.lang.Object resultClassName_ = ""; + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder getExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().getBuilder(index); + } /** - * required string result_class_name = 4; - * - * @return if it has result class name + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionTypeOrBuilder getExceptionsOrBuilder(int index) { + if (exceptionsBuilder_ == null) { + return exceptions_.get(index); + } else { + return exceptionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; */ - public boolean hasResultClassName() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public java.util.List getExceptionsOrBuilderList() { + if (exceptionsBuilder_ != null) { + return exceptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exceptions_); + } + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder() { + return getExceptionsFieldBuilder().addBuilder(datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.Builder addExceptionsBuilder(int index) { + return getExceptionsFieldBuilder().addBuilder(index, + datawave.webservice.query.exception.ExceptionMessages.QueryExceptionType.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.query.exception.QueryExceptionType exceptions = 3; + */ + public java.util.List getExceptionsBuilderList() { + return getExceptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getExceptionsFieldBuilder() { + if (exceptionsBuilder_ == null) { + exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + exceptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + exceptions_ = null; + } + return exceptionsBuilder_; } + private java.lang.Object resultClassName_ = ""; + /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return the result class name + * @return The resultClassName. */ public java.lang.String getResultClassName() { java.lang.Object ref = resultClassName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resultClassName_ = s; return s; } else { @@ -3856,9 +4385,9 @@ public java.lang.String getResultClassName() { } /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return result class name byte string + * @return The bytes for resultClassName. */ public com.google.protobuf.ByteString getResultClassNameBytes() { java.lang.Object ref = resultClassName_; @@ -3872,74 +4401,73 @@ public com.google.protobuf.ByteString getResultClassNameBytes() { } /** - * required string result_class_name = 4; + * string result_class_name = 4; * * @param value - * the new result class name - * - * @return builder to set result class name + * The resultClassName to set. + * @return This builder for chaining. */ public Builder setResultClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - resultClassName_ = value; + resultClassName_ = value; + onChanged(); return this; } /** - * required string result_class_name = 4; + * string result_class_name = 4; * - * @return builder to clear the result class name + * @return This builder for chaining. */ public Builder clearResultClassName() { - bitField0_ = (bitField0_ & ~0x00000008); - resultClassName_ = getDefaultInstance().getResultClassName(); + resultClassName_ = getDefaultInstance().getResultClassName(); + onChanged(); return this; } /** - * required string result_class_name = 4; + * string result_class_name = 4; * * @param value - * result class name byte string - * - * @return builder to set result class name + * The bytes for resultClassName to set. + * @return This builder for chaining. */ public Builder setResultClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - resultClassName_ = value; + checkByteStringIsUtf8(value); + resultClassName_ = value; + onChanged(); return this; } - // optional string result_as_string = 5; private java.lang.Object resultAsString_ = ""; /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * return if it has result as a string + * @return Whether the resultAsString field is set. */ public boolean hasResultAsString() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000004) != 0); } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return the result as a string + * @return The resultAsString. */ public java.lang.String getResultAsString() { java.lang.Object ref = resultAsString_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); resultAsString_ = s; return s; } else { @@ -3948,9 +4476,9 @@ public java.lang.String getResultAsString() { } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return the result as a string + * @return The bytes for resultAsString. */ public com.google.protobuf.ByteString getResultAsStringBytes() { java.lang.Object ref = resultAsString_; @@ -3964,444 +4492,580 @@ public com.google.protobuf.ByteString getResultAsStringBytes() { } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * * @param value - * new result string - * - * @return builder to set result string + * The resultAsString to set. + * @return This builder for chaining. */ public Builder setResultAsString(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; resultAsString_ = value; - + onChanged(); return this; } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * - * @return builder to clear string result + * @return This builder for chaining. */ public Builder clearResultAsString() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); resultAsString_ = getDefaultInstance().getResultAsString(); - + onChanged(); return this; } /** - * optional string result_as_string = 5; + * string result_as_string = 5; * * @param value - * byte string - * - * @return builder to set result to byte string + * The bytes for resultAsString to set. + * @return This builder for chaining. */ public Builder setResultAsStringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000004; resultAsString_ = value; - + onChanged(); return this; } - // optional bool result_as_boolean = 6; private boolean resultAsBoolean_; /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return if the result is a boolean + * @return Whether the resultAsBoolean field is set. */ + @java.lang.Override public boolean hasResultAsBoolean() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000008) != 0); } /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return the result as a boolean + * @return The resultAsBoolean. */ + @java.lang.Override public boolean getResultAsBoolean() { return resultAsBoolean_; } /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * * @param value - * the new boolean value - * - * @return the result as a boolean + * The resultAsBoolean to set. + * @return This builder for chaining. */ public Builder setResultAsBoolean(boolean value) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; resultAsBoolean_ = value; - + onChanged(); return this; } /** - * optional bool result_as_boolean = 6; + * bool result_as_boolean = 6; * - * @return builder to clear result as a boolean + * @return This builder for chaining. */ public Builder clearResultAsBoolean() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000008); resultAsBoolean_ = false; - + onChanged(); return this; } - // optional sint32 result_as_int = 7; private int resultAsInt_; /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return if the result has an integer + * @return Whether the resultAsInt field is set. */ + @java.lang.Override public boolean hasResultAsInt() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000010) != 0); } /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return the result as an integer + * @return The resultAsInt. */ + @java.lang.Override public int getResultAsInt() { return resultAsInt_; } /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * * @param value - * the new int value - * - * @return builder to set result to provided value + * The resultAsInt to set. + * @return This builder for chaining. */ public Builder setResultAsInt(int value) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; resultAsInt_ = value; - + onChanged(); return this; } /** - * optional sint32 result_as_int = 7; + * sint32 result_as_int = 7; * - * @return builder to clear results as int + * @return This builder for chaining. */ public Builder clearResultAsInt() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); resultAsInt_ = 0; - + onChanged(); return this; } - // optional sint64 result_as_long = 8; private long resultAsLong_; /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return if it has result as a long + * @return Whether the resultAsLong field is set. */ + @java.lang.Override public boolean hasResultAsLong() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return the result as a long + * @return The resultAsLong. */ + @java.lang.Override public long getResultAsLong() { return resultAsLong_; } /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * * @param value - * the new long value - * - * @return builder to set result to long value provided + * The resultAsLong to set. + * @return This builder for chaining. */ public Builder setResultAsLong(long value) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; resultAsLong_ = value; - + onChanged(); return this; } /** - * optional sint64 result_as_long = 8; + * sint64 result_as_long = 8; * - * @return builder to clear result as long + * @return This builder for chaining. */ public Builder clearResultAsLong() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); resultAsLong_ = 0L; - + onChanged(); return this; } - // optional float result_as_float = 9; private float resultAsFloat_; /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return if the result is a float + * @return Whether the resultAsFloat field is set. */ + @java.lang.Override public boolean hasResultAsFloat() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return the result as a float + * @return The resultAsFloat. */ + @java.lang.Override public float getResultAsFloat() { return resultAsFloat_; } /** - * optional float result_as_float = 9; + * float result_as_float = 9; * * @param value - * the new float value - * - * @return builder to set result as float provided + * The resultAsFloat to set. + * @return This builder for chaining. */ public Builder setResultAsFloat(float value) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; resultAsFloat_ = value; - + onChanged(); return this; } /** - * optional float result_as_float = 9; + * float result_as_float = 9; * - * @return builder to clear results as float + * @return This builder for chaining. */ public Builder clearResultAsFloat() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000040); resultAsFloat_ = 0F; - + onChanged(); return this; } - // optional double result_as_double = 10; private double resultAsDouble_; /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return if it has result as a double + * @return Whether the resultAsDouble field is set. */ + @java.lang.Override public boolean hasResultAsDouble() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return results as a double + * @return The resultAsDouble. */ + @java.lang.Override public double getResultAsDouble() { return resultAsDouble_; } /** - * optional double result_as_double = 10; + * double result_as_double = 10; * * @param value - * the new double value - * - * @return builder to set result as a double + * The resultAsDouble to set. + * @return This builder for chaining. */ public Builder setResultAsDouble(double value) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; resultAsDouble_ = value; - + onChanged(); return this; } /** - * optional double result_as_double = 10; + * double result_as_double = 10; * - * @return builder to clear result as double + * @return This builder for chaining. */ public Builder clearResultAsDouble() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); resultAsDouble_ = 0D; - + onChanged(); return this; } - // optional bytes result_as_bytes = 11; private com.google.protobuf.ByteString resultAsBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return if it has result as byte string + * @return Whether the resultAsBytes field is set. */ + @java.lang.Override public boolean hasResultAsBytes() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000100) != 0); } /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return the result as byte string + * @return The resultAsBytes. */ + @java.lang.Override public com.google.protobuf.ByteString getResultAsBytes() { return resultAsBytes_; } /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * * @param value - * new value as byte string - * - * @return builder to set result as byte string + * The resultAsBytes to set. + * @return This builder for chaining. */ public Builder setResultAsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; resultAsBytes_ = value; - + onChanged(); return this; } /** - * optional bytes result_as_bytes = 11; + * bytes result_as_bytes = 11; * - * @return builder to clear rseult as byte string + * @return This builder for chaining. */ public Builder clearResultAsBytes() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000100); resultAsBytes_ = getDefaultInstance().getResultAsBytes(); - + onChanged(); return this; } - // optional .datawave.webservice.results.cached.result.Description result_as_description = 12; - private datawave.webservice.results.cached.result.CachedresultMessages.Description resultAsDescription_ = datawave.webservice.results.cached.result.CachedresultMessages.Description - .getDefaultInstance(); + private datawave.webservice.results.cached.result.CachedresultMessages.Description resultAsDescription_; + private com.google.protobuf.SingleFieldBuilderV3 resultAsDescriptionBuilder_; /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; + * .datawave.webservice.results.cached.result.Description result_as_description = 12; * - * @return if it has result as a description + * @return Whether the resultAsDescription field is set. */ public boolean hasResultAsDescription() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000200) != 0); } /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; + * .datawave.webservice.results.cached.result.Description result_as_description = 12; * - * @return the result as a description + * @return The resultAsDescription. */ public datawave.webservice.results.cached.result.CachedresultMessages.Description getResultAsDescription() { - return resultAsDescription_; + if (resultAsDescriptionBuilder_ == null) { + return resultAsDescription_ == null ? datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance() + : resultAsDescription_; + } else { + return resultAsDescriptionBuilder_.getMessage(); + } } /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; - * - * @param value - * the new description value - * - * @return builder to set result as description provided + * .datawave.webservice.results.cached.result.Description result_as_description = 12; */ public Builder setResultAsDescription(datawave.webservice.results.cached.result.CachedresultMessages.Description value) { - if (value == null) { - throw new NullPointerException(); + if (resultAsDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resultAsDescription_ = value; + onChanged(); + } else { + resultAsDescriptionBuilder_.setMessage(value); } - resultAsDescription_ = value; - - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; return this; } /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; - * - * @param builderForValue - * builder to create description - * - * @return builder to set result to provided description + * .datawave.webservice.results.cached.result.Description result_as_description = 12; */ public Builder setResultAsDescription(datawave.webservice.results.cached.result.CachedresultMessages.Description.Builder builderForValue) { - resultAsDescription_ = builderForValue.build(); - - bitField0_ |= 0x00000800; + if (resultAsDescriptionBuilder_ == null) { + resultAsDescription_ = builderForValue.build(); + onChanged(); + } else { + resultAsDescriptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; return this; } /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; - * - * @param value - * the new description value - * - * @return builder to merge result as description provided + * .datawave.webservice.results.cached.result.Description result_as_description = 12; */ public Builder mergeResultAsDescription(datawave.webservice.results.cached.result.CachedresultMessages.Description value) { - if (((bitField0_ & 0x00000800) == 0x00000800) - && resultAsDescription_ != datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance()) { - resultAsDescription_ = datawave.webservice.results.cached.result.CachedresultMessages.Description.newBuilder(resultAsDescription_) - .mergeFrom(value).buildPartial(); + if (resultAsDescriptionBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && resultAsDescription_ != null + && resultAsDescription_ != datawave.webservice.results.cached.result.CachedresultMessages.Description + .getDefaultInstance()) { + resultAsDescription_ = datawave.webservice.results.cached.result.CachedresultMessages.Description.newBuilder(resultAsDescription_) + .mergeFrom(value).buildPartial(); + } else { + resultAsDescription_ = value; + } + onChanged(); } else { - resultAsDescription_ = value; + resultAsDescriptionBuilder_.mergeFrom(value); } - - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; return this; } /** - * optional .datawave.webservice.results.cached.result.Description result_as_description = 12; - * - * @return builder to clear the result as description + * .datawave.webservice.results.cached.result.Description result_as_description = 12; */ public Builder clearResultAsDescription() { - resultAsDescription_ = datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000800); + if (resultAsDescriptionBuilder_ == null) { + resultAsDescription_ = null; + onChanged(); + } else { + resultAsDescriptionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); return this; } + /** + * .datawave.webservice.results.cached.result.Description result_as_description = 12; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.Description.Builder getResultAsDescriptionBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getResultAsDescriptionFieldBuilder().getBuilder(); + } + + /** + * .datawave.webservice.results.cached.result.Description result_as_description = 12; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.DescriptionOrBuilder getResultAsDescriptionOrBuilder() { + if (resultAsDescriptionBuilder_ != null) { + return resultAsDescriptionBuilder_.getMessageOrBuilder(); + } else { + return resultAsDescription_ == null ? datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance() + : resultAsDescription_; + } + } + + /** + * .datawave.webservice.results.cached.result.Description result_as_description = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3 getResultAsDescriptionFieldBuilder() { + if (resultAsDescriptionBuilder_ == null) { + resultAsDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getResultAsDescription(), getParentForChildren(), isClean()); + resultAsDescription_ = null; + } + return resultAsDescriptionBuilder_; + } + + @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:datawave.webservice.result.GenericResponse) } + // @@protoc_insertion_point(class_scope:datawave.webservice.result.GenericResponse) + private static final datawave.webservice.result.ResponseMessages.GenericResponse DEFAULT_INSTANCE; static { - defaultInstance = new GenericResponse(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.result.ResponseMessages.GenericResponse(); + } + + public static datawave.webservice.result.ResponseMessages.GenericResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenericResponse 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 datawave.webservice.result.ResponseMessages.GenericResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.webservice.result.GenericResponse) } - static {} + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_result_VoidResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_result_VoidResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_result_QueryImplListResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_result_QueryImplListResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_result_GenericResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_result_GenericResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\027response_messages.proto\022\032datawave.webs" + "ervice.result\032\030exception_messages.proto\032" + + "\024query_messages.proto\032\033cachedresult_mess" + "ages.proto\"\210\001\n\014VoidResponse\022\031\n\021operation" + + "_time_ms\030\001 \001(\004\022\020\n\010messages\030\002 \003(\t\022K\n\nexce" + + "ptions\030\003 \003(\01327.datawave.webservice.query" + ".exception.QueryExceptionType\"\356\001\n\025QueryI" + + "mplListResponse\022\031\n\021operation_time_ms\030\001 \001" + + "(\004\022\020\n\010messages\030\002 \003(\t\022K\n\nexceptions\030\003 \003(\013" + "27.datawave.webservice.query.exception.Q" + + "ueryExceptionType\0223\n\005query\030\004 \003(\0132$.dataw" + "ave.webservice.query.QueryImpl\022\027\n\nnumRes" + + "ults\030\005 \001(\rH\000\210\001\001B\r\n\013_numResults\"\374\004\n\017Gener" + + "icResponse\022\031\n\021operation_time_ms\030\001 \001(\004\022\020\n" + + "\010messages\030\002 \003(\t\022K\n\nexceptions\030\003 \003(\01327.da" + "tawave.webservice.query.exception.QueryE" + + "xceptionType\022\031\n\021result_class_name\030\004 \001(\t\022" + + "\035\n\020result_as_string\030\005 \001(\tH\000\210\001\001\022\036\n\021result" + + "_as_boolean\030\006 \001(\010H\001\210\001\001\022\032\n\rresult_as_int\030" + + "\007 \001(\021H\002\210\001\001\022\033\n\016result_as_long\030\010 \001(\022H\003\210\001\001\022" + + "\034\n\017result_as_float\030\t \001(\002H\004\210\001\001\022\035\n\020result_" + + "as_double\030\n \001(\001H\005\210\001\001\022\034\n\017result_as_bytes\030" + + "\013 \001(\014H\006\210\001\001\022Z\n\025result_as_description\030\014 \001(" + "\01326.datawave.webservice.results.cached.r" + + "esult.DescriptionH\007\210\001\001B\023\n\021_result_as_str" + "ingB\024\n\022_result_as_booleanB\020\n\016_result_as_" + + "intB\021\n\017_result_as_longB\022\n\020_result_as_flo" + "atB\023\n\021_result_as_doubleB\022\n\020_result_as_by" + + "tesB\030\n\026_result_as_descriptionB\036\n\032datawav" + "e.webservice.resultH\003b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {datawave.webservice.query.exception.ExceptionMessages.getDescriptor(), + datawave.webservice.query.QueryMessages.getDescriptor(), + datawave.webservice.results.cached.result.CachedresultMessages.getDescriptor(),}); + internal_static_datawave_webservice_result_VoidResponse_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_webservice_result_VoidResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_result_VoidResponse_descriptor, + new java.lang.String[] {"OperationTimeMs", "Messages", "Exceptions",}); + internal_static_datawave_webservice_result_QueryImplListResponse_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_datawave_webservice_result_QueryImplListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_result_QueryImplListResponse_descriptor, + new java.lang.String[] {"OperationTimeMs", "Messages", "Exceptions", "Query", "NumResults", "NumResults",}); + internal_static_datawave_webservice_result_GenericResponse_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_datawave_webservice_result_GenericResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_result_GenericResponse_descriptor, + new java.lang.String[] {"OperationTimeMs", "Messages", "Exceptions", "ResultClassName", "ResultAsString", "ResultAsBoolean", + "ResultAsInt", "ResultAsLong", "ResultAsFloat", "ResultAsDouble", "ResultAsBytes", "ResultAsDescription", "ResultAsString", + "ResultAsBoolean", "ResultAsInt", "ResultAsLong", "ResultAsFloat", "ResultAsDouble", "ResultAsBytes", "ResultAsDescription",}); + datawave.webservice.query.exception.ExceptionMessages.getDescriptor(); + datawave.webservice.query.QueryMessages.getDescriptor(); + datawave.webservice.results.cached.result.CachedresultMessages.getDescriptor(); + } // @@protoc_insertion_point(outer_class_scope) } diff --git a/web-services/client/src/main/java/datawave/webservice/results/cached/result/CachedresultMessages.java b/web-services/client/src/main/java/datawave/webservice/results/cached/result/CachedresultMessages.java index c9d3e2aa47a..1f8783611ed 100644 --- a/web-services/client/src/main/java/datawave/webservice/results/cached/result/CachedresultMessages.java +++ b/web-services/client/src/main/java/datawave/webservice/results/cached/result/CachedresultMessages.java @@ -8,27 +8,25 @@ private CachedresultMessages() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - public interface ColumnVisibilityOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } - // required string visibility = 1; - /** - * required string visibility = 1; - * - * @return if it has visibility - */ - boolean hasVisibility(); + public interface ColumnVisibilityOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.results.cached.result.ColumnVisibility) + com.google.protobuf.MessageOrBuilder { /** - * required string visibility = 1; + * string visibility = 1; * - * @return the visibility + * @return The visibility. */ java.lang.String getVisibility(); /** - * required string visibility = 1; + * string visibility = 1; * - * @return the visibility as a byte string + * @return The bytes for visibility. */ com.google.protobuf.ByteString getVisibilityBytes(); } @@ -36,90 +34,51 @@ public interface ColumnVisibilityOrBuilder extends com.google.protobuf.MessageLi /** * Protobuf type {@code datawave.webservice.results.cached.result.ColumnVisibility} */ - public static final class ColumnVisibility extends com.google.protobuf.GeneratedMessageLite implements ColumnVisibilityOrBuilder { + public static final class ColumnVisibility extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.results.cached.result.ColumnVisibility) + ColumnVisibilityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnVisibility.newBuilder() to construct. - private ColumnVisibility(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private ColumnVisibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private ColumnVisibility(boolean noInit) {} - - private static final ColumnVisibility defaultInstance; - - public static ColumnVisibility getDefaultInstance() { - return defaultInstance; + private ColumnVisibility() { + visibility_ = ""; } - public ColumnVisibility getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnVisibility(); } - private ColumnVisibility(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - visibility_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public ColumnVisibility parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColumnVisibility(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_ColumnVisibility_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_ColumnVisibility_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.class, + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder.class); } - private int bitField0_; - // required string visibility = 1; public static final int VISIBILITY_FIELD_NUMBER = 1; - private java.lang.Object visibility_; - - /** - * required string visibility = 1; - * - * @return if it has visibility - */ - public boolean hasVisibility() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } + private volatile java.lang.Object visibility_; /** - * required string visibility = 1; + * string visibility = 1; * - * @return the visibility + * @return The visibility. */ + @java.lang.Override public java.lang.String getVisibility() { java.lang.Object ref = visibility_; if (ref instanceof java.lang.String) { @@ -127,18 +86,17 @@ public java.lang.String getVisibility() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - visibility_ = s; - } + visibility_ = s; return s; } } /** - * required string visibility = 1; + * string visibility = 1; * - * @return the visibility as a byte string + * @return The bytes for visibility. */ + @java.lang.Override public com.google.protobuf.ByteString getVisibilityBytes() { java.lang.Object ref = visibility_; if (ref instanceof java.lang.String) { @@ -150,52 +108,82 @@ public com.google.protobuf.ByteString getVisibilityBytes() { } } - private void initFields() { - visibility_ = ""; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasVisibility()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getVisibilityBytes()); + if (!getVisibilityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, visibility_); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getVisibilityBytes()); + if (!getVisibilityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, visibility_); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility)) { + return super.equals(obj); + } + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility other = (datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility) obj; + + if (!getVisibility().equals(other.getVisibility())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + getVisibility().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(com.google.protobuf.ByteString data) @@ -220,82 +208,104 @@ public static datawave.webservice.results.cached.result.CachedresultMessages.Col public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.results.cached.result.ColumnVisibility} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibilityOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.results.cached.result.ColumnVisibility) + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibilityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_ColumnVisibility_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_ColumnVisibility_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.class, + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder.class); + } + // Construct using datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); visibility_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); + return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_ColumnVisibility_descriptor; } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility getDefaultInstanceForType() { return datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility build() { datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility result = buildPartial(); if (!result.isInitialized()) { @@ -304,77 +314,119 @@ public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisi return result; } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility buildPartial() { datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility result = new datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility( this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.visibility_ = visibility_; - result.bitField0_ = to_bitField0_; + onBuilt(); return result; } + @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 datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility) { + return mergeFrom((datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility) other); + } else { + super.mergeFrom(other); + return this; + } + } + public Builder mergeFrom(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility other) { if (other == datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.getDefaultInstance()) return this; - if (other.hasVisibility()) { - bitField0_ |= 0x00000001; + if (!other.getVisibility().isEmpty()) { visibility_ = other.visibility_; - + onChanged(); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { - if (!hasVisibility()) { - - return false; - } return true; } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + visibility_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - - // required string visibility = 1; private java.lang.Object visibility_ = ""; /** - * required string visibility = 1; - * - * @return if it has visibility - */ - public boolean hasVisibility() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required string visibility = 1; + * string visibility = 1; * - * @return the visibility + * @return The visibility. */ public java.lang.String getVisibility() { java.lang.Object ref = visibility_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); visibility_ = s; return s; } else { @@ -383,9 +435,9 @@ public java.lang.String getVisibility() { } /** - * required string visibility = 1; + * string visibility = 1; * - * @return the visibility byte string + * @return The bytes for visibility. */ public com.google.protobuf.ByteString getVisibilityBytes() { java.lang.Object ref = visibility_; @@ -399,85 +451,124 @@ public com.google.protobuf.ByteString getVisibilityBytes() { } /** - * required string visibility = 1; + * string visibility = 1; * * @param value - * the new visibility value - * - * @return builder to set visibility to the provided value + * The visibility to set. + * @return This builder for chaining. */ public Builder setVisibility(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - visibility_ = value; + visibility_ = value; + onChanged(); return this; } /** - * required string visibility = 1; + * string visibility = 1; * - * @return builder to clear visibility + * @return This builder for chaining. */ public Builder clearVisibility() { - bitField0_ = (bitField0_ & ~0x00000001); - visibility_ = getDefaultInstance().getVisibility(); + visibility_ = getDefaultInstance().getVisibility(); + onChanged(); return this; } /** - * required string visibility = 1; + * string visibility = 1; * * @param value - * visibility byte string - * - * @return builder to set the visibility bytes + * The bytes for visibility to set. + * @return This builder for chaining. */ public Builder setVisibilityBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - visibility_ = value; + checkByteStringIsUtf8(value); + visibility_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.webservice.results.cached.result.ColumnVisibility) } + // @@protoc_insertion_point(class_scope:datawave.webservice.results.cached.result.ColumnVisibility) + private static final datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility DEFAULT_INSTANCE; static { - defaultInstance = new ColumnVisibility(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility(); } - // @@protoc_insertion_point(class_scope:datawave.webservice.results.cached.result.ColumnVisibility) - } + public static datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public interface AttributeOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnVisibility 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(); + } + }; - // required string name = 1; - /** - * required string name = 1; - * - * @return if it has a name - */ - boolean hasName(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AttributeOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.results.cached.result.Attribute) + com.google.protobuf.MessageOrBuilder { /** - * required string name = 1; + * string name = 1; * - * @return the name + * @return The name. */ java.lang.String getName(); /** - * required string name = 1; + * string name = 1; * - * @return the name as a byte string + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } @@ -485,90 +576,51 @@ public interface AttributeOrBuilder extends com.google.protobuf.MessageLiteOrBui /** * Protobuf type {@code datawave.webservice.results.cached.result.Attribute} */ - public static final class Attribute extends com.google.protobuf.GeneratedMessageLite implements AttributeOrBuilder { + public static final class Attribute extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.results.cached.result.Attribute) + AttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Attribute.newBuilder() to construct. - private Attribute(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private Attribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private Attribute(boolean noInit) {} - - private static final Attribute defaultInstance; - - public static Attribute getDefaultInstance() { - return defaultInstance; + private Attribute() { + name_ = ""; } - public Attribute getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Attribute(); } - private Attribute(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public Attribute parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attribute(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Attribute_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Attribute_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.results.cached.result.CachedresultMessages.Attribute.class, + datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder.class); } - private int bitField0_; - // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - - /** - * required string name = 1; - * - * @return if it has a name - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } + private volatile java.lang.Object name_; /** - * required string name = 1; + * string name = 1; * - * @return the name + * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -576,18 +628,17 @@ public java.lang.String getName() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } + name_ = s; return s; } } /** - * required string name = 1; + * string name = 1; * - * @return the name as a byte string + * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -599,52 +650,82 @@ public com.google.protobuf.ByteString getNameBytes() { } } - private void initFields() { - name_ = ""; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasName()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getNameBytes()); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.results.cached.result.CachedresultMessages.Attribute)) { + return super.equals(obj); + } + datawave.webservice.results.cached.result.CachedresultMessages.Attribute other = (datawave.webservice.results.cached.result.CachedresultMessages.Attribute) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(com.google.protobuf.ByteString data) @@ -668,82 +749,104 @@ public static datawave.webservice.results.cached.result.CachedresultMessages.Att } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.results.cached.result.CachedresultMessages.Attribute prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.results.cached.result.Attribute} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.results.cached.result.CachedresultMessages.AttributeOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.results.cached.result.Attribute) + datawave.webservice.results.cached.result.CachedresultMessages.AttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Attribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Attribute_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.results.cached.result.CachedresultMessages.Attribute.class, + datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder.class); + } + // Construct using datawave.webservice.results.cached.result.CachedresultMessages.Attribute.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); + return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Attribute_descriptor; } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Attribute getDefaultInstanceForType() { return datawave.webservice.results.cached.result.CachedresultMessages.Attribute.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Attribute build() { datawave.webservice.results.cached.result.CachedresultMessages.Attribute result = buildPartial(); if (!result.isInitialized()) { @@ -752,77 +855,119 @@ public datawave.webservice.results.cached.result.CachedresultMessages.Attribute return result; } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Attribute buildPartial() { datawave.webservice.results.cached.result.CachedresultMessages.Attribute result = new datawave.webservice.results.cached.result.CachedresultMessages.Attribute( this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.name_ = name_; - result.bitField0_ = to_bitField0_; + onBuilt(); return result; } - public Builder mergeFrom(datawave.webservice.results.cached.result.CachedresultMessages.Attribute other) { - if (other == datawave.webservice.results.cached.result.CachedresultMessages.Attribute.getDefaultInstance()) - return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - } - return this; + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - public final boolean isInitialized() { - if (!hasName()) { + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - return false; - } - return true; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - datawave.webservice.results.cached.result.CachedresultMessages.Attribute parsedMessage = null; + @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 datawave.webservice.results.cached.result.CachedresultMessages.Attribute) { + return mergeFrom((datawave.webservice.results.cached.result.CachedresultMessages.Attribute) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(datawave.webservice.results.cached.result.CachedresultMessages.Attribute other) { + if (other == datawave.webservice.results.cached.result.CachedresultMessages.Attribute.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { - parsedMessage = (datawave.webservice.results.cached.result.CachedresultMessages.Attribute) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - - // required string name = 1; private java.lang.Object name_ = ""; /** - * required string name = 1; - * - * @return if it has a name - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required string name = 1; + * string name = 1; * - * @return the name + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { @@ -831,9 +976,9 @@ public java.lang.String getName() { } /** - * required string name = 1; + * string name = 1; * - * @return the name as a byte string + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -847,251 +992,228 @@ public com.google.protobuf.ByteString getNameBytes() { } /** - * required string name = 1; + * string name = 1; * * @param value - * the new name value - * - * @return builder to set the name + * The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - name_ = value; + name_ = value; + onChanged(); return this; } /** - * required string name = 1; + * string name = 1; * - * @return builder to clear the name + * @return This builder for chaining. */ public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } /** - * required string name = 1; + * string name = 1; * * @param value - * the name byte string - * - * @return builder to set the name to the provided byte string + * The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - name_ = value; + checkByteStringIsUtf8(value); + name_ = value; + onChanged(); return this; } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:datawave.webservice.results.cached.result.Attribute) } + // @@protoc_insertion_point(class_scope:datawave.webservice.results.cached.result.Attribute) + private static final datawave.webservice.results.cached.result.CachedresultMessages.Attribute DEFAULT_INSTANCE; static { - defaultInstance = new Attribute(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.results.cached.result.CachedresultMessages.Attribute(); } - // @@protoc_insertion_point(class_scope:datawave.webservice.results.cached.result.Attribute) - } + public static datawave.webservice.results.cached.result.CachedresultMessages.Attribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attribute 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 interface DescriptionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // required string view = 1; - /** - * required string view = 1; - * - * @return if it has a view - */ - boolean hasView(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public datawave.webservice.results.cached.result.CachedresultMessages.Attribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DescriptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:datawave.webservice.results.cached.result.Description) + com.google.protobuf.MessageOrBuilder { /** - * required string view = 1; + * string view = 1; * - * @return the view + * @return The view. */ java.lang.String getView(); /** - * required string view = 1; - * - * @return the view as a byte string + * string view = 1; * + * @return The bytes for view. */ com.google.protobuf.ByteString getViewBytes(); - // repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return list of attributes */ java.util.List getAttributesList(); /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * - * @return the attribute at the provided index */ datawave.webservice.results.cached.result.CachedresultMessages.Attribute getAttributes(int index); /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return the number of attributes */ int getAttributesCount(); - // repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + java.util.List getAttributesOrBuilderList(); + + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + datawave.webservice.results.cached.result.CachedresultMessages.AttributeOrBuilder getAttributesOrBuilder(int index); + /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return the visibility list */ java.util.List getVisibilitiesList(); /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * - * @return the visibility at the provided index */ datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility getVisibilities(int index); /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return the number of visibility */ int getVisibilitiesCount(); + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + java.util.List getVisibilitiesOrBuilderList(); + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibilityOrBuilder getVisibilitiesOrBuilder(int index); } /** * Protobuf type {@code datawave.webservice.results.cached.result.Description} */ - public static final class Description extends com.google.protobuf.GeneratedMessageLite implements DescriptionOrBuilder { + public static final class Description extends com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datawave.webservice.results.cached.result.Description) + DescriptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Description.newBuilder() to construct. - private Description(com.google.protobuf.GeneratedMessageLite.Builder builder) { + private Description(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); - } - private Description(boolean noInit) {} - - private static final Description defaultInstance; - - public static Description getDefaultInstance() { - return defaultInstance; + private Description() { + view_ = ""; + attributes_ = java.util.Collections.emptyList(); + visibilities_ = java.util.Collections.emptyList(); } - public Description getDefaultInstanceForType() { - return defaultInstance; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Description(); } - private Description(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - view_ = input.readBytes(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - attributes_.add(input.readMessage(datawave.webservice.results.cached.result.CachedresultMessages.Attribute.PARSER, - extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - visibilities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - visibilities_.add(input.readMessage(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.PARSER, - extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - visibilities_ = java.util.Collections.unmodifiableList(visibilities_); - } - makeExtensionsImmutable(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - public Description parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Description(input, extensionRegistry); - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Description_descriptor; + } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Description_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.results.cached.result.CachedresultMessages.Description.class, + datawave.webservice.results.cached.result.CachedresultMessages.Description.Builder.class); } - private int bitField0_; - // required string view = 1; public static final int VIEW_FIELD_NUMBER = 1; - private java.lang.Object view_; - - /** - * required string view = 1; - * - * @return if there is a view - */ - public boolean hasView() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } + private volatile java.lang.Object view_; /** - * required string view = 1; + * string view = 1; * - * @return the view + * @return The view. */ + @java.lang.Override public java.lang.String getView() { java.lang.Object ref = view_; if (ref instanceof java.lang.String) { @@ -1099,18 +1221,17 @@ public java.lang.String getView() { } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - view_ = s; - } + view_ = s; return s; } } /** - * required string view = 1; + * string view = 1; * - * @return the view as a byte string + * @return The bytes for view. */ + @java.lang.Override public com.google.protobuf.ByteString getViewBytes() { java.lang.Object ref = view_; if (ref instanceof java.lang.String) { @@ -1122,153 +1243,110 @@ public com.google.protobuf.ByteString getViewBytes() { } } - // repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; public static final int ATTRIBUTES_FIELD_NUMBER = 2; private java.util.List attributes_; /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return the attributes list */ + @java.lang.Override public java.util.List getAttributesList() { return attributes_; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return list of attributes */ + @java.lang.Override public java.util.List getAttributesOrBuilderList() { return attributes_; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return the number of attributes in the list */ + @java.lang.Override public int getAttributesCount() { return attributes_.size(); } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * - * @return the attribute at the provided index */ + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Attribute getAttributes(int index) { return attributes_.get(index); } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * - * @return the attribute at the provided index */ + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.AttributeOrBuilder getAttributesOrBuilder(int index) { return attributes_.get(index); } - // repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; public static final int VISIBILITIES_FIELD_NUMBER = 3; private java.util.List visibilities_; /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return the visibility list */ + @java.lang.Override public java.util.List getVisibilitiesList() { return visibilities_; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return the visibility list */ + @java.lang.Override public java.util.List getVisibilitiesOrBuilderList() { return visibilities_; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return the number of visibilities in the list */ + @java.lang.Override public int getVisibilitiesCount() { return visibilities_.size(); } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * - * @return the visibility at the provided index */ + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility getVisibilities(int index) { return visibilities_.get(index); } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * - * @return visibility at the provided index */ + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibilityOrBuilder getVisibilitiesOrBuilder(int index) { return visibilities_.get(index); } - private void initFields() { - view_ = ""; - attributes_ = java.util.Collections.emptyList(); - visibilities_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) - return isInitialized == 1; - - if (!hasView()) { - memoizedIsInitialized = 0; + if (isInitialized == 1) + return true; + if (isInitialized == 0) return false; - } - for (int i = 0; i < getAttributesCount(); i++) { - if (!getAttributes(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getVisibilitiesCount(); i++) { - if (!getVisibilities(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } + memoizedIsInitialized = 1; return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getViewBytes()); + if (!getViewBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, view_); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(2, attributes_.get(i)); @@ -1276,18 +1354,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < visibilities_.size(); i++) { output.writeMessage(3, visibilities_.get(i)); } + getUnknownFields().writeTo(output); } - private int memoizedSerializedSize = -1; - + @java.lang.Override public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, getViewBytes()); + if (!getViewBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, view_); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes_.get(i)); @@ -1295,15 +1373,62 @@ public int getSerializedSize() { for (int i = 0; i < visibilities_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, visibilities_.get(i)); } - memoizedSerializedSize = size; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof datawave.webservice.results.cached.result.CachedresultMessages.Description)) { + return super.equals(obj); + } + datawave.webservice.results.cached.result.CachedresultMessages.Description other = (datawave.webservice.results.cached.result.CachedresultMessages.Description) obj; + + if (!getView().equals(other.getView())) + return false; + if (!getAttributesList().equals(other.getAttributesList())) + return false; + if (!getVisibilitiesList().equals(other.getVisibilitiesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } @java.lang.Override - protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { - return super.writeReplace(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + getView().hashCode(); + if (getAttributesCount() > 0) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getAttributesList().hashCode(); + } + if (getVisibilitiesCount() > 0) { + hash = (37 * hash) + VISIBILITIES_FIELD_NUMBER; + hash = (53 * hash) + getVisibilitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(com.google.protobuf.ByteString data) @@ -1328,86 +1453,118 @@ public static datawave.webservice.results.cached.result.CachedresultMessages.Des public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datawave.webservice.results.cached.result.CachedresultMessages.Description parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { - return Builder.create(); + 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(datawave.webservice.results.cached.result.CachedresultMessages.Description prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return newBuilder(this); + 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 datawave.webservice.results.cached.result.Description} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder - implements datawave.webservice.results.cached.result.CachedresultMessages.DescriptionOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:datawave.webservice.results.cached.result.Description) + datawave.webservice.results.cached.result.CachedresultMessages.DescriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Description_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Description_fieldAccessorTable + .ensureFieldAccessorsInitialized(datawave.webservice.results.cached.result.CachedresultMessages.Description.class, + datawave.webservice.results.cached.result.CachedresultMessages.Description.Builder.class); + } + // Construct using datawave.webservice.results.cached.result.CachedresultMessages.Description.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private void maybeForceBuilderInitialization() {} + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - private static Builder create() { - return new Builder(); } + @java.lang.Override public Builder clear() { super.clear(); view_ = ""; + + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + } else { + attributes_ = null; + attributesBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000001); - attributes_ = java.util.Collections.emptyList(); + if (visibilitiesBuilder_ == null) { + visibilities_ = java.util.Collections.emptyList(); + } else { + visibilities_ = null; + visibilitiesBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000002); - visibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return datawave.webservice.results.cached.result.CachedresultMessages.internal_static_datawave_webservice_results_cached_result_Description_descriptor; } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Description getDefaultInstanceForType() { return datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance(); } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Description build() { datawave.webservice.results.cached.result.CachedresultMessages.Description result = buildPartial(); if (!result.isInitialized()) { @@ -1416,119 +1573,210 @@ public datawave.webservice.results.cached.result.CachedresultMessages.Descriptio return result; } + @java.lang.Override public datawave.webservice.results.cached.result.CachedresultMessages.Description buildPartial() { datawave.webservice.results.cached.result.CachedresultMessages.Description result = new datawave.webservice.results.cached.result.CachedresultMessages.Description( this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } result.view_ = view_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - bitField0_ = (bitField0_ & ~0x00000002); + if (attributesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.attributes_ = attributes_; + } else { + result.attributes_ = attributesBuilder_.build(); } - result.attributes_ = attributes_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - visibilities_ = java.util.Collections.unmodifiableList(visibilities_); - bitField0_ = (bitField0_ & ~0x00000004); + if (visibilitiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + visibilities_ = java.util.Collections.unmodifiableList(visibilities_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.visibilities_ = visibilities_; + } else { + result.visibilities_ = visibilitiesBuilder_.build(); } - result.visibilities_ = visibilities_; - result.bitField0_ = to_bitField0_; + onBuilt(); return result; } - public Builder mergeFrom(datawave.webservice.results.cached.result.CachedresultMessages.Description other) { - if (other == datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance()) - return this; - if (other.hasView()) { - bitField0_ |= 0x00000001; - view_ = other.view_; - - } - if (!other.attributes_.isEmpty()) { - if (attributes_.isEmpty()) { - attributes_ = other.attributes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAttributesIsMutable(); - attributes_.addAll(other.attributes_); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - } - if (!other.visibilities_.isEmpty()) { - if (visibilities_.isEmpty()) { - visibilities_ = other.visibilities_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureVisibilitiesIsMutable(); - visibilities_.addAll(other.visibilities_); - } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - } - return this; + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - public final boolean isInitialized() { - if (!hasView()) { + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - return false; - } - for (int i = 0; i < getAttributesCount(); i++) { - if (!getAttributes(i).isInitialized()) { + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - return false; - } - } - for (int i = 0; i < getVisibilitiesCount(); i++) { - if (!getVisibilities(i).isInitialized()) { + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - return false; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof datawave.webservice.results.cached.result.CachedresultMessages.Description) { + return mergeFrom((datawave.webservice.results.cached.result.CachedresultMessages.Description) other); + } else { + super.mergeFrom(other); + return this; } - return true; } + public Builder mergeFrom(datawave.webservice.results.cached.result.CachedresultMessages.Description other) { + if (other == datawave.webservice.results.cached.result.CachedresultMessages.Description.getDefaultInstance()) + return this; + if (!other.getView().isEmpty()) { + view_ = other.view_; + onChanged(); + } + if (attributesBuilder_ == null) { + if (!other.attributes_.isEmpty()) { + if (attributes_.isEmpty()) { + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAttributesIsMutable(); + attributes_.addAll(other.attributes_); + } + onChanged(); + } + } else { + if (!other.attributes_.isEmpty()) { + if (attributesBuilder_.isEmpty()) { + attributesBuilder_.dispose(); + attributesBuilder_ = null; + attributes_ = other.attributes_; + bitField0_ = (bitField0_ & ~0x00000001); + attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; + } else { + attributesBuilder_.addAllMessages(other.attributes_); + } + } + } + if (visibilitiesBuilder_ == null) { + if (!other.visibilities_.isEmpty()) { + if (visibilities_.isEmpty()) { + visibilities_ = other.visibilities_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVisibilitiesIsMutable(); + visibilities_.addAll(other.visibilities_); + } + onChanged(); + } + } else { + if (!other.visibilities_.isEmpty()) { + if (visibilitiesBuilder_.isEmpty()) { + visibilitiesBuilder_.dispose(); + visibilitiesBuilder_ = null; + visibilities_ = other.visibilities_; + bitField0_ = (bitField0_ & ~0x00000002); + visibilitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVisibilitiesFieldBuilder() : null; + } else { + visibilitiesBuilder_.addAllMessages(other.visibilities_); + } + } + } + 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 { - datawave.webservice.results.cached.result.CachedresultMessages.Description parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + view_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + datawave.webservice.results.cached.result.CachedresultMessages.Attribute m = input.readMessage( + datawave.webservice.results.cached.result.CachedresultMessages.Attribute.parser(), extensionRegistry); + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(m); + } else { + attributesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility m = input.readMessage( + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.parser(), extensionRegistry); + if (visibilitiesBuilder_ == null) { + ensureVisibilitiesIsMutable(); + visibilities_.add(m); + } else { + visibilitiesBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datawave.webservice.results.cached.result.CachedresultMessages.Description) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; - // required string view = 1; private java.lang.Object view_ = ""; /** - * required string view = 1; - * - * @return if it has a view - */ - public boolean hasView() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - * required string view = 1; + * string view = 1; * - * @return the view + * @return The view. */ public java.lang.String getView() { java.lang.Object ref = view_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); view_ = s; return s; } else { @@ -1537,9 +1785,9 @@ public java.lang.String getView() { } /** - * required string view = 1; + * string view = 1; * - * @return the view as a byte string + * @return The bytes for view. */ public com.google.protobuf.ByteString getViewBytes() { java.lang.Object ref = view_; @@ -1553,445 +1801,622 @@ public com.google.protobuf.ByteString getViewBytes() { } /** - * required string view = 1; + * string view = 1; * * @param value - * the new view - * - * @return builder to set the view to the provided value + * The view to set. + * @return This builder for chaining. */ public Builder setView(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - view_ = value; + view_ = value; + onChanged(); return this; } /** - * required string view = 1; + * string view = 1; * - * @return builder to clear the view + * @return This builder for chaining. */ public Builder clearView() { - bitField0_ = (bitField0_ & ~0x00000001); - view_ = getDefaultInstance().getView(); + view_ = getDefaultInstance().getView(); + onChanged(); return this; } /** - * required string view = 1; + * string view = 1; * * @param value - * the new view value - * - * @return builder to set view bytes to provided value + * The bytes for view to set. + * @return This builder for chaining. */ public Builder setViewBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - view_ = value; + checkByteStringIsUtf8(value); + view_ = value; + onChanged(); return this; } - // repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000001) != 0)) { attributes_ = new java.util.ArrayList(attributes_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } + private com.google.protobuf.RepeatedFieldBuilderV3 attributesBuilder_; + /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return attributes list */ public java.util.List getAttributesList() { - return java.util.Collections.unmodifiableList(attributes_); + if (attributesBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributes_); + } else { + return attributesBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return the number of attributes in the list */ public int getAttributesCount() { - return attributes_.size(); + if (attributesBuilder_ == null) { + return attributes_.size(); + } else { + return attributesBuilder_.getCount(); + } } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * - * @return the attribute at the provided index */ public datawave.webservice.results.cached.result.CachedresultMessages.Attribute getAttributes(int index) { - return attributes_.get(index); + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * @param value - * the new attribute - * - * @return builder to set the attribute at the provided index to the provided value */ public Builder setAttributes(int index, datawave.webservice.results.cached.result.CachedresultMessages.Attribute value) { - if (value == null) { - throw new NullPointerException(); + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.set(index, value); + onChanged(); + } else { + attributesBuilder_.setMessage(index, value); } - ensureAttributesIsMutable(); - attributes_.set(index, value); - return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * @param builderForValue - * the new attribute builder - * - * @return builder to set the attribute at the provided index to the provided value */ public Builder setAttributes(int index, datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder builderForValue) { - ensureAttributesIsMutable(); - attributes_.set(index, builderForValue.build()); - + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.set(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param value - * the new attribute - * - * @return builder to add the provided attribute */ public Builder addAttributes(datawave.webservice.results.cached.result.CachedresultMessages.Attribute value) { - if (value == null) { - throw new NullPointerException(); + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(value); + onChanged(); + } else { + attributesBuilder_.addMessage(value); } - ensureAttributesIsMutable(); - attributes_.add(value); - return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * @param value - * the attribute to add - * - * @return builder to add the provided attribute to the provided index */ public Builder addAttributes(int index, datawave.webservice.results.cached.result.CachedresultMessages.Attribute value) { - if (value == null) { - throw new NullPointerException(); + if (attributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributesIsMutable(); + attributes_.add(index, value); + onChanged(); + } else { + attributesBuilder_.addMessage(index, value); } - ensureAttributesIsMutable(); - attributes_.add(index, value); - return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param builderForValue - * builder to create attribute - * - * @return builder to add attribute provided */ public Builder addAttributes(datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder builderForValue) { - ensureAttributesIsMutable(); - attributes_.add(builderForValue.build()); - + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * @param builderForValue - * builder to create attribute - * - * @return builder to add attribute at provided index */ public Builder addAttributes(int index, datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder builderForValue) { - ensureAttributesIsMutable(); - attributes_.add(index, builderForValue.build()); - + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.add(index, builderForValue.build()); + onChanged(); + } else { + attributesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param values - * iterable of values to add - * - * @return builder to add iterable of attributes */ public Builder addAllAttributes(java.lang.Iterable values) { - ensureAttributesIsMutable(); - super.addAll(values, attributes_); - + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributes_); + onChanged(); + } else { + attributesBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @return builder to clear attributes */ public Builder clearAttributes() { - attributes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - + if (attributesBuilder_ == null) { + attributes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + attributesBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; - * - * @param index - * the index - * - * @return builder to remove attributes */ public Builder removeAttributes(int index) { - ensureAttributesIsMutable(); - attributes_.remove(index); - + if (attributesBuilder_ == null) { + ensureAttributesIsMutable(); + attributes_.remove(index); + onChanged(); + } else { + attributesBuilder_.remove(index); + } return this; } - // repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder getAttributesBuilder(int index) { + return getAttributesFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.AttributeOrBuilder getAttributesOrBuilder(int index) { + if (attributesBuilder_ == null) { + return attributes_.get(index); + } else { + return attributesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + public java.util.List getAttributesOrBuilderList() { + if (attributesBuilder_ != null) { + return attributesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attributes_); + } + } + + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder addAttributesBuilder() { + return getAttributesFieldBuilder().addBuilder(datawave.webservice.results.cached.result.CachedresultMessages.Attribute.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.Attribute.Builder addAttributesBuilder(int index) { + return getAttributesFieldBuilder().addBuilder(index, + datawave.webservice.results.cached.result.CachedresultMessages.Attribute.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.results.cached.result.Attribute attributes = 2; + */ + public java.util.List getAttributesBuilderList() { + return getAttributesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getAttributesFieldBuilder() { + if (attributesBuilder_ == null) { + attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + attributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + attributes_ = null; + } + return attributesBuilder_; + } + private java.util.List visibilities_ = java.util.Collections .emptyList(); private void ensureVisibilitiesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000002) != 0)) { visibilities_ = new java.util.ArrayList(visibilities_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } + private com.google.protobuf.RepeatedFieldBuilderV3 visibilitiesBuilder_; + /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return list of visibilities */ public java.util.List getVisibilitiesList() { - return java.util.Collections.unmodifiableList(visibilities_); + if (visibilitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(visibilities_); + } else { + return visibilitiesBuilder_.getMessageList(); + } } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return the number of visibilities in the list */ public int getVisibilitiesCount() { - return visibilities_.size(); + if (visibilitiesBuilder_ == null) { + return visibilities_.size(); + } else { + return visibilitiesBuilder_.getCount(); + } } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * - * @return the visibility at the provided index */ public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility getVisibilities(int index) { - return visibilities_.get(index); + if (visibilitiesBuilder_ == null) { + return visibilities_.get(index); + } else { + return visibilitiesBuilder_.getMessage(index); + } } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * @param value - * the visibility to add - * - * @return builder to set the visibility at the provided index to the provided value */ public Builder setVisibilities(int index, datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility value) { - if (value == null) { - throw new NullPointerException(); + if (visibilitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVisibilitiesIsMutable(); + visibilities_.set(index, value); + onChanged(); + } else { + visibilitiesBuilder_.setMessage(index, value); } - ensureVisibilitiesIsMutable(); - visibilities_.set(index, value); - return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * @param builderForValue - * visibility builder - * - * @return builder to set the visibility at the provided index to the provided value */ public Builder setVisibilities(int index, datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder builderForValue) { - ensureVisibilitiesIsMutable(); - visibilities_.set(index, builderForValue.build()); - + if (visibilitiesBuilder_ == null) { + ensureVisibilitiesIsMutable(); + visibilities_.set(index, builderForValue.build()); + onChanged(); + } else { + visibilitiesBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param value - * visibility to add - * - * @return builder to add visibility */ public Builder addVisibilities(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility value) { - if (value == null) { - throw new NullPointerException(); + if (visibilitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVisibilitiesIsMutable(); + visibilities_.add(value); + onChanged(); + } else { + visibilitiesBuilder_.addMessage(value); } - ensureVisibilitiesIsMutable(); - visibilities_.add(value); - return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * @param value - * the visibility to add - * - * @return builder to add visibility */ public Builder addVisibilities(int index, datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility value) { - if (value == null) { - throw new NullPointerException(); + if (visibilitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVisibilitiesIsMutable(); + visibilities_.add(index, value); + onChanged(); + } else { + visibilitiesBuilder_.addMessage(index, value); } - ensureVisibilitiesIsMutable(); - visibilities_.add(index, value); - return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param builderForValue - * visibility builder - * - * @return builder to add visibility */ public Builder addVisibilities(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder builderForValue) { - ensureVisibilitiesIsMutable(); - visibilities_.add(builderForValue.build()); - + if (visibilitiesBuilder_ == null) { + ensureVisibilitiesIsMutable(); + visibilities_.add(builderForValue.build()); + onChanged(); + } else { + visibilitiesBuilder_.addMessage(builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * @param builderForValue - * visibility builder - * - * @return builder to add visibility at provided index */ public Builder addVisibilities(int index, datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder builderForValue) { - ensureVisibilitiesIsMutable(); - visibilities_.add(index, builderForValue.build()); - + if (visibilitiesBuilder_ == null) { + ensureVisibilitiesIsMutable(); + visibilities_.add(index, builderForValue.build()); + onChanged(); + } else { + visibilitiesBuilder_.addMessage(index, builderForValue.build()); + } return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param values - * iterable of visilibities - * - * @return builder to add all visibilities provided */ public Builder addAllVisibilities( java.lang.Iterable values) { - ensureVisibilitiesIsMutable(); - super.addAll(values, visibilities_); - + if (visibilitiesBuilder_ == null) { + ensureVisibilitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visibilities_); + onChanged(); + } else { + visibilitiesBuilder_.addAllMessages(values); + } return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @return builder to clear visibilities */ public Builder clearVisibilities() { - visibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - + if (visibilitiesBuilder_ == null) { + visibilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + visibilitiesBuilder_.clear(); + } return this; } /** * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; - * - * @param index - * the index - * - * @return builder to remove the visibility at the proivided index */ public Builder removeVisibilities(int index) { - ensureVisibilitiesIsMutable(); - visibilities_.remove(index); - + if (visibilitiesBuilder_ == null) { + ensureVisibilitiesIsMutable(); + visibilities_.remove(index); + onChanged(); + } else { + visibilitiesBuilder_.remove(index); + } return this; } + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder getVisibilitiesBuilder(int index) { + return getVisibilitiesFieldBuilder().getBuilder(index); + } + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibilityOrBuilder getVisibilitiesOrBuilder(int index) { + if (visibilitiesBuilder_ == null) { + return visibilities_.get(index); + } else { + return visibilitiesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + public java.util.List getVisibilitiesOrBuilderList() { + if (visibilitiesBuilder_ != null) { + return visibilitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(visibilities_); + } + } + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder addVisibilitiesBuilder() { + return getVisibilitiesFieldBuilder() + .addBuilder(datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + public datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.Builder addVisibilitiesBuilder(int index) { + return getVisibilitiesFieldBuilder().addBuilder(index, + datawave.webservice.results.cached.result.CachedresultMessages.ColumnVisibility.getDefaultInstance()); + } + + /** + * repeated .datawave.webservice.results.cached.result.ColumnVisibility visibilities = 3; + */ + public java.util.List getVisibilitiesBuilderList() { + return getVisibilitiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getVisibilitiesFieldBuilder() { + if (visibilitiesBuilder_ == null) { + visibilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + visibilities_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + visibilities_ = null; + } + return visibilitiesBuilder_; + } + + @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:datawave.webservice.results.cached.result.Description) } + // @@protoc_insertion_point(class_scope:datawave.webservice.results.cached.result.Description) + private static final datawave.webservice.results.cached.result.CachedresultMessages.Description DEFAULT_INSTANCE; static { - defaultInstance = new Description(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new datawave.webservice.results.cached.result.CachedresultMessages.Description(); + } + + public static datawave.webservice.results.cached.result.CachedresultMessages.Description getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Description 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 datawave.webservice.results.cached.result.CachedresultMessages.Description getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:datawave.webservice.results.cached.result.Description) } - static {} + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_results_cached_result_ColumnVisibility_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_results_cached_result_ColumnVisibility_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_results_cached_result_Attribute_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_results_cached_result_Attribute_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_datawave_webservice_results_cached_result_Description_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datawave_webservice_results_cached_result_Description_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\033cachedresult_messages.proto\022)datawave." + "webservice.results.cached.result\"&\n\020Colu" + + "mnVisibility\022\022\n\nvisibility\030\001 \001(\t\"\031\n\tAttr" + + "ibute\022\014\n\004name\030\001 \001(\t\"\270\001\n\013Description\022\014\n\004v" + + "iew\030\001 \001(\t\022H\n\nattributes\030\002 \003(\01324.datawave" + ".webservice.results.cached.result.Attrib" + + "ute\022Q\n\014visibilities\030\003 \003(\0132;.datawave.web" + "service.results.cached.result.ColumnVisi" + + "bilityB-\n)datawave.webservice.results.ca" + "ched.resultH\003b\006proto3"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_datawave_webservice_results_cached_result_ColumnVisibility_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_datawave_webservice_results_cached_result_ColumnVisibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_results_cached_result_ColumnVisibility_descriptor, new java.lang.String[] {"Visibility",}); + internal_static_datawave_webservice_results_cached_result_Attribute_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_datawave_webservice_results_cached_result_Attribute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_results_cached_result_Attribute_descriptor, new java.lang.String[] {"Name",}); + internal_static_datawave_webservice_results_cached_result_Description_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_datawave_webservice_results_cached_result_Description_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_datawave_webservice_results_cached_result_Description_descriptor, + new java.lang.String[] {"View", "Attributes", "Visibilities",}); + } // @@protoc_insertion_point(outer_class_scope) } diff --git a/web-services/client/src/main/protobuf/cachedresult_messages.proto b/web-services/client/src/main/protobuf/cachedresult_messages.proto index c5f889c68a8..ef1a330fcef 100644 --- a/web-services/client/src/main/protobuf/cachedresult_messages.proto +++ b/web-services/client/src/main/protobuf/cachedresult_messages.proto @@ -1,18 +1,19 @@ -package datawave.webservice.results.cached.result; +syntax = "proto3"; +package datawave.webservice.results.cached.result; option optimize_for = LITE_RUNTIME; option java_package = "datawave.webservice.results.cached.result"; message ColumnVisibility { - required string visibility = 1; + string visibility = 1; } message Attribute { - required string name = 1; + string name = 1; } message Description { - required string view = 1; + string view = 1; repeated Attribute attributes = 2; repeated ColumnVisibility visibilities = 3; } diff --git a/web-services/client/src/main/protobuf/exception_messages.proto b/web-services/client/src/main/protobuf/exception_messages.proto index 03bcdf41a89..8c062a39039 100644 --- a/web-services/client/src/main/protobuf/exception_messages.proto +++ b/web-services/client/src/main/protobuf/exception_messages.proto @@ -1,5 +1,6 @@ -package datawave.webservice.query.exception; +syntax = "proto3"; +package datawave.webservice.query.exception; option optimize_for = LITE_RUNTIME; option java_package = "datawave.webservice.query.exception"; diff --git a/web-services/client/src/main/protobuf/metrics_messages.proto b/web-services/client/src/main/protobuf/metrics_messages.proto index 6ed5e954823..c625b626b31 100644 --- a/web-services/client/src/main/protobuf/metrics_messages.proto +++ b/web-services/client/src/main/protobuf/metrics_messages.proto @@ -1,13 +1,14 @@ -package datawave.webservice.query.metric; +syntax = "proto3"; +package datawave.webservice.query.metric; option optimize_for = LITE_RUNTIME; option java_package = "datawave.webservice.query.metric"; import "exception_messages.proto"; message PageMetric { - required uint64 pagesize = 1 [default=0]; - required uint64 return_time = 2 [default=0]; + uint64 pagesize = 1; + uint64 return_time = 2; } message QueryMetric { @@ -20,9 +21,9 @@ message QueryMetric { } message QueryMetricListResponse { - required uint64 operation_time_ms = 1 [default=0]; + uint64 operation_time_ms = 1; repeated string messages = 2; repeated datawave.webservice.query.exception.QueryExceptionType exceptions = 3; repeated QueryMetric result = 4; - required int32 num_results = 5 [default=0]; + int32 num_results = 5; } \ No newline at end of file diff --git a/web-services/client/src/main/protobuf/query_messages.proto b/web-services/client/src/main/protobuf/query_messages.proto index 4e3c00339e9..9a0cf5a7753 100644 --- a/web-services/client/src/main/protobuf/query_messages.proto +++ b/web-services/client/src/main/protobuf/query_messages.proto @@ -1,24 +1,25 @@ -package datawave.webservice.query; +syntax = "proto3"; +package datawave.webservice.query; option optimize_for = LITE_RUNTIME; option java_package = "datawave.webservice.query"; message QueryImpl { - required string query_logic_name = 1; - required string id = 2; + string query_logic_name = 1; + string id = 2; optional string query_name = 3; - required string user_DN = 4; - required string query = 5; - required string query_visibility = 6; + string user_DN = 4; + string query = 5; + string query_visibility = 6; optional int64 begin_date = 7; optional int64 end_date = 8; - required string query_authorizations = 9; - required int64 expiration_date = 10; - required uint32 pagesize = 11 [default=0]; + string query_authorizations = 9; + int64 expiration_date = 10; + uint32 pagesize = 11; repeated Parameter parameters = 12; message Parameter { - required string parameter_name = 1; - required string parameter_value = 2; + string parameter_name = 1; + string parameter_value = 2; } } diff --git a/web-services/client/src/main/protobuf/response_messages.proto b/web-services/client/src/main/protobuf/response_messages.proto index b8058ceba5c..98d4dcc5b03 100644 --- a/web-services/client/src/main/protobuf/response_messages.proto +++ b/web-services/client/src/main/protobuf/response_messages.proto @@ -1,5 +1,6 @@ -package datawave.webservice.result; +syntax = "proto3"; +package datawave.webservice.result; option optimize_for = LITE_RUNTIME; option java_package = "datawave.webservice.result"; @@ -8,26 +9,26 @@ import "query_messages.proto"; import "cachedresult_messages.proto"; message VoidResponse { - required uint64 operation_time_ms = 1 [default=0]; + uint64 operation_time_ms = 1; repeated string messages = 2; repeated datawave.webservice.query.exception.QueryExceptionType exceptions = 3; } message QueryImplListResponse { - required uint64 operation_time_ms = 1 [default=0]; + uint64 operation_time_ms = 1; repeated string messages = 2; repeated datawave.webservice.query.exception.QueryExceptionType exceptions = 3; repeated datawave.webservice.query.QueryImpl query = 4; - optional uint32 numResults = 5 [default=0]; + optional uint32 numResults = 5; } message GenericResponse { - required uint64 operation_time_ms = 1 [default=0]; + uint64 operation_time_ms = 1; repeated string messages = 2; repeated datawave.webservice.query.exception.QueryExceptionType exceptions = 3; - required string result_class_name = 4; + string result_class_name = 4; optional string result_as_string = 5; optional bool result_as_boolean = 6; optional sint32 result_as_int = 7; diff --git a/web-services/client/src/main/protobuf/user_messages.proto b/web-services/client/src/main/protobuf/user_messages.proto index 66064ea9771..e62cf8d1c6d 100644 --- a/web-services/client/src/main/protobuf/user_messages.proto +++ b/web-services/client/src/main/protobuf/user_messages.proto @@ -1,5 +1,6 @@ -package datawave.user; +syntax = "proto3"; +package datawave.user; option optimize_for = LITE_RUNTIME; option java_package = "datawave.user"; diff --git a/web-services/compile_protos.sh b/web-services/compile_protos.sh index 10cb17fadc9..ff1b86032de 100755 --- a/web-services/compile_protos.sh +++ b/web-services/compile_protos.sh @@ -1,10 +1,21 @@ #!/bin/bash +function usage() { + echo "USAGE: ./compile_protos.sh " + + exit 1 +} + +if [ -z "${1}" ] ; then + usage + return 1 +fi + # test to see if we have protoc installed -VERSION=`protoc --version 2>/dev/null | grep "2.5.0" | wc -l` +VERSION=`protoc --version 2>/dev/null | grep "$1" | wc -l` if [ "$VERSION" -ne 1 ] ; then # Nope: bail - echo "::protoc is not available or incorrect version. Requires libprotoc 2.5.0" + echo "::protoc is not available or incorrect version. Requires libprotoc $1" exit 0 fi diff --git a/web-services/pom.xml b/web-services/pom.xml index 958283e8255..0a63accda19 100644 --- a/web-services/pom.xml +++ b/web-services/pom.xml @@ -52,7 +52,7 @@ 1.0.1 1.1 1.0.0 - 2.5.0 + 3.16.3