All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.skywalking.banyandb.model.v1.BanyandbModel Maven / Gradle / Ivy

There is a newer version: 0.8.0-rc0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: banyandb/v1/banyandb-model.proto

// Protobuf Java Version: 3.25.3
package org.apache.skywalking.banyandb.model.v1;

public final class BanyandbModel {
  private BanyandbModel() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code banyandb.model.v1.AggregationFunction}
   */
  public enum AggregationFunction
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * AGGREGATION_FUNCTION_UNSPECIFIED = 0;
     */
    AGGREGATION_FUNCTION_UNSPECIFIED(0),
    /**
     * AGGREGATION_FUNCTION_MEAN = 1;
     */
    AGGREGATION_FUNCTION_MEAN(1),
    /**
     * AGGREGATION_FUNCTION_MAX = 2;
     */
    AGGREGATION_FUNCTION_MAX(2),
    /**
     * AGGREGATION_FUNCTION_MIN = 3;
     */
    AGGREGATION_FUNCTION_MIN(3),
    /**
     * AGGREGATION_FUNCTION_COUNT = 4;
     */
    AGGREGATION_FUNCTION_COUNT(4),
    /**
     * AGGREGATION_FUNCTION_SUM = 5;
     */
    AGGREGATION_FUNCTION_SUM(5),
    UNRECOGNIZED(-1),
    ;

    /**
     * AGGREGATION_FUNCTION_UNSPECIFIED = 0;
     */
    public static final int AGGREGATION_FUNCTION_UNSPECIFIED_VALUE = 0;
    /**
     * AGGREGATION_FUNCTION_MEAN = 1;
     */
    public static final int AGGREGATION_FUNCTION_MEAN_VALUE = 1;
    /**
     * AGGREGATION_FUNCTION_MAX = 2;
     */
    public static final int AGGREGATION_FUNCTION_MAX_VALUE = 2;
    /**
     * AGGREGATION_FUNCTION_MIN = 3;
     */
    public static final int AGGREGATION_FUNCTION_MIN_VALUE = 3;
    /**
     * AGGREGATION_FUNCTION_COUNT = 4;
     */
    public static final int AGGREGATION_FUNCTION_COUNT_VALUE = 4;
    /**
     * AGGREGATION_FUNCTION_SUM = 5;
     */
    public static final int AGGREGATION_FUNCTION_SUM_VALUE = 5;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AggregationFunction valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static AggregationFunction forNumber(int value) {
      switch (value) {
        case 0: return AGGREGATION_FUNCTION_UNSPECIFIED;
        case 1: return AGGREGATION_FUNCTION_MEAN;
        case 2: return AGGREGATION_FUNCTION_MAX;
        case 3: return AGGREGATION_FUNCTION_MIN;
        case 4: return AGGREGATION_FUNCTION_COUNT;
        case 5: return AGGREGATION_FUNCTION_SUM;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        AggregationFunction> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public AggregationFunction findValueByNumber(int number) {
              return AggregationFunction.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.apache.skywalking.banyandb.model.v1.BanyandbModel.getDescriptor().getEnumTypes().get(0);
    }

    private static final AggregationFunction[] VALUES = values();

    public static AggregationFunction valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private AggregationFunction(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:banyandb.model.v1.AggregationFunction)
  }

  /**
   * Protobuf enum {@code banyandb.model.v1.MeasureAggregate}
   */
  public enum MeasureAggregate
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * MEASURE_AGGREGATE_UNSPECIFIED = 0;
     */
    MEASURE_AGGREGATE_UNSPECIFIED(0),
    /**
     * 
     * Calculate the minimum value of delta measures.
     * 
* * MEASURE_AGGREGATE_MIN = 1; */ MEASURE_AGGREGATE_MIN(1), /** *
     * Calculate the maximum value of delta measures.
     * 
* * MEASURE_AGGREGATE_MAX = 2; */ MEASURE_AGGREGATE_MAX(2), /** *
     * Count the number of delta measures.
     * 
* * MEASURE_AGGREGATE_COUNT = 3; */ MEASURE_AGGREGATE_COUNT(3), /** *
     * Calculate the sum value of delta measures.
     * 
* * MEASURE_AGGREGATE_SUM = 4; */ MEASURE_AGGREGATE_SUM(4), /** *
     * Calculate the average value of delta measures.
     * 
* * MEASURE_AGGREGATE_AVG = 5; */ MEASURE_AGGREGATE_AVG(5), /** *
     * Calculate the percentage of delta measures, where the input matches with the condition.
     * 
* * MEASURE_AGGREGATE_PERCENT = 6; */ MEASURE_AGGREGATE_PERCENT(6), /** *
     * Calculate the ratio for measures, where the input matches with the condition.
     * 
* * MEASURE_AGGREGATE_RATE = 7; */ MEASURE_AGGREGATE_RATE(7), /** *
     * Calculate the histogram for delta measures.
     * 
* * MEASURE_AGGREGATE_HISTOGRAM = 8; */ MEASURE_AGGREGATE_HISTOGRAM(8), /** *
     * Calculate the {p99, p95, p90, p75, p50} for delta measures.
     * 
* * MEASURE_AGGREGATE_PERCENTILE2 = 9; */ MEASURE_AGGREGATE_PERCENTILE2(9), /** *
     * Calculate the apdex for delta measures.
     * 
* * MEASURE_AGGREGATE_APDEX = 10; */ MEASURE_AGGREGATE_APDEX(10), /** *
     * Same like PERCENTILE2, little different on algorithm.
     * 
* * MEASURE_AGGREGATE_PERCENTILE = 11; */ MEASURE_AGGREGATE_PERCENTILE(11), UNRECOGNIZED(-1), ; /** * MEASURE_AGGREGATE_UNSPECIFIED = 0; */ public static final int MEASURE_AGGREGATE_UNSPECIFIED_VALUE = 0; /** *
     * Calculate the minimum value of delta measures.
     * 
* * MEASURE_AGGREGATE_MIN = 1; */ public static final int MEASURE_AGGREGATE_MIN_VALUE = 1; /** *
     * Calculate the maximum value of delta measures.
     * 
* * MEASURE_AGGREGATE_MAX = 2; */ public static final int MEASURE_AGGREGATE_MAX_VALUE = 2; /** *
     * Count the number of delta measures.
     * 
* * MEASURE_AGGREGATE_COUNT = 3; */ public static final int MEASURE_AGGREGATE_COUNT_VALUE = 3; /** *
     * Calculate the sum value of delta measures.
     * 
* * MEASURE_AGGREGATE_SUM = 4; */ public static final int MEASURE_AGGREGATE_SUM_VALUE = 4; /** *
     * Calculate the average value of delta measures.
     * 
* * MEASURE_AGGREGATE_AVG = 5; */ public static final int MEASURE_AGGREGATE_AVG_VALUE = 5; /** *
     * Calculate the percentage of delta measures, where the input matches with the condition.
     * 
* * MEASURE_AGGREGATE_PERCENT = 6; */ public static final int MEASURE_AGGREGATE_PERCENT_VALUE = 6; /** *
     * Calculate the ratio for measures, where the input matches with the condition.
     * 
* * MEASURE_AGGREGATE_RATE = 7; */ public static final int MEASURE_AGGREGATE_RATE_VALUE = 7; /** *
     * Calculate the histogram for delta measures.
     * 
* * MEASURE_AGGREGATE_HISTOGRAM = 8; */ public static final int MEASURE_AGGREGATE_HISTOGRAM_VALUE = 8; /** *
     * Calculate the {p99, p95, p90, p75, p50} for delta measures.
     * 
* * MEASURE_AGGREGATE_PERCENTILE2 = 9; */ public static final int MEASURE_AGGREGATE_PERCENTILE2_VALUE = 9; /** *
     * Calculate the apdex for delta measures.
     * 
* * MEASURE_AGGREGATE_APDEX = 10; */ public static final int MEASURE_AGGREGATE_APDEX_VALUE = 10; /** *
     * Same like PERCENTILE2, little different on algorithm.
     * 
* * MEASURE_AGGREGATE_PERCENTILE = 11; */ public static final int MEASURE_AGGREGATE_PERCENTILE_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MeasureAggregate valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static MeasureAggregate forNumber(int value) { switch (value) { case 0: return MEASURE_AGGREGATE_UNSPECIFIED; case 1: return MEASURE_AGGREGATE_MIN; case 2: return MEASURE_AGGREGATE_MAX; case 3: return MEASURE_AGGREGATE_COUNT; case 4: return MEASURE_AGGREGATE_SUM; case 5: return MEASURE_AGGREGATE_AVG; case 6: return MEASURE_AGGREGATE_PERCENT; case 7: return MEASURE_AGGREGATE_RATE; case 8: return MEASURE_AGGREGATE_HISTOGRAM; case 9: return MEASURE_AGGREGATE_PERCENTILE2; case 10: return MEASURE_AGGREGATE_APDEX; case 11: return MEASURE_AGGREGATE_PERCENTILE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MeasureAggregate> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MeasureAggregate findValueByNumber(int number) { return MeasureAggregate.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.getDescriptor().getEnumTypes().get(1); } private static final MeasureAggregate[] VALUES = values(); public static MeasureAggregate valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private MeasureAggregate(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:banyandb.model.v1.MeasureAggregate) } /** * Protobuf enum {@code banyandb.model.v1.Sort} */ public enum Sort implements com.google.protobuf.ProtocolMessageEnum { /** * SORT_UNSPECIFIED = 0; */ SORT_UNSPECIFIED(0), /** * SORT_DESC = 1; */ SORT_DESC(1), /** * SORT_ASC = 2; */ SORT_ASC(2), UNRECOGNIZED(-1), ; /** * SORT_UNSPECIFIED = 0; */ public static final int SORT_UNSPECIFIED_VALUE = 0; /** * SORT_DESC = 1; */ public static final int SORT_DESC_VALUE = 1; /** * SORT_ASC = 2; */ public static final int SORT_ASC_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Sort valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Sort forNumber(int value) { switch (value) { case 0: return SORT_UNSPECIFIED; case 1: return SORT_DESC; case 2: return SORT_ASC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Sort> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Sort findValueByNumber(int number) { return Sort.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.getDescriptor().getEnumTypes().get(2); } private static final Sort[] VALUES = values(); public static Sort valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Sort(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:banyandb.model.v1.Sort) } /** *
   * Status is the response status for write
   * 
* * Protobuf enum {@code banyandb.model.v1.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** * STATUS_SUCCEED = 1; */ STATUS_SUCCEED(1), /** * STATUS_INVALID_TIMESTAMP = 2; */ STATUS_INVALID_TIMESTAMP(2), /** * STATUS_NOT_FOUND = 3; */ STATUS_NOT_FOUND(3), /** * STATUS_EXPIRED_SCHEMA = 4; */ STATUS_EXPIRED_SCHEMA(4), /** * STATUS_INTERNAL_ERROR = 5; */ STATUS_INTERNAL_ERROR(5), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** * STATUS_SUCCEED = 1; */ public static final int STATUS_SUCCEED_VALUE = 1; /** * STATUS_INVALID_TIMESTAMP = 2; */ public static final int STATUS_INVALID_TIMESTAMP_VALUE = 2; /** * STATUS_NOT_FOUND = 3; */ public static final int STATUS_NOT_FOUND_VALUE = 3; /** * STATUS_EXPIRED_SCHEMA = 4; */ public static final int STATUS_EXPIRED_SCHEMA_VALUE = 4; /** * STATUS_INTERNAL_ERROR = 5; */ public static final int STATUS_INTERNAL_ERROR_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return STATUS_SUCCEED; case 2: return STATUS_INVALID_TIMESTAMP; case 3: return STATUS_NOT_FOUND; case 4: return STATUS_EXPIRED_SCHEMA; case 5: return STATUS_INTERNAL_ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.getDescriptor().getEnumTypes().get(3); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:banyandb.model.v1.Status) } public interface StrOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Str) com.google.protobuf.MessageOrBuilder { /** * string value = 1; * @return The value. */ java.lang.String getValue(); /** * string value = 1; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code banyandb.model.v1.Str} */ public static final class Str extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Str) StrOrBuilder { private static final long serialVersionUID = 0L; // Use Str.newBuilder() to construct. private Str(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Str() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Str(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Str_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Str_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** * string value = 1; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * string value = 1; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) obj; if (!getValue() .equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str 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 banyandb.model.v1.Str} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Str) org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Str_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Str_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Str_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { value_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * string value = 1; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 1; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string value = 1; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:banyandb.model.v1.Str) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Str) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Str 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Int) com.google.protobuf.MessageOrBuilder { /** * int64 value = 1; * @return The value. */ long getValue(); } /** * Protobuf type {@code banyandb.model.v1.Int} */ public static final class Int extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Int) IntOrBuilder { private static final long serialVersionUID = 0L; // Use Int.newBuilder() to construct. private Int(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Int() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Int(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Int_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Int_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private long value_ = 0L; /** * int64 value = 1; * @return The value. */ @java.lang.Override public long getValue() { return value_; } 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 (value_ != 0L) { output.writeInt64(1, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (value_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, value_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) obj; if (getValue() != other.getValue()) 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int 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 banyandb.model.v1.Int} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Int) org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Int_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Int_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Int_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance()) return this; if (other.getValue() != 0L) { setValue(other.getValue()); } 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: { value_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 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 value_ ; /** * int64 value = 1; * @return The value. */ @java.lang.Override public long getValue() { return value_; } /** * int64 value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(long value) { value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 value = 1; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 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:banyandb.model.v1.Int) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Int) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Int 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FloatOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Float) com.google.protobuf.MessageOrBuilder { /** * double value = 1; * @return The value. */ double getValue(); } /** * Protobuf type {@code banyandb.model.v1.Float} */ public static final class Float extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Float) FloatOrBuilder { private static final long serialVersionUID = 0L; // Use Float.newBuilder() to construct. private Float(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Float() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Float(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Float_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Float_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private double value_ = 0D; /** * double value = 1; * @return The value. */ @java.lang.Override public double getValue() { return value_; } 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 (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(1, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, value_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) obj; if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float 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 banyandb.model.v1.Float} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Float) org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Float_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Float_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Float_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance()) return this; if (other.getValue() != 0D) { setValue(other.getValue()); } 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 9: { value_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 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 double value_ ; /** * double value = 1; * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** * double value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * double value = 1; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0D; 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:banyandb.model.v1.Float) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Float) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Float 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StrArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.StrArray) com.google.protobuf.MessageOrBuilder { /** * repeated string value = 1; * @return A list containing the value. */ java.util.List getValueList(); /** * repeated string value = 1; * @return The count of value. */ int getValueCount(); /** * repeated string value = 1; * @param index The index of the element to return. * @return The value at the given index. */ java.lang.String getValue(int index); /** * repeated string value = 1; * @param index The index of the value to return. * @return The bytes of the value at the given index. */ com.google.protobuf.ByteString getValueBytes(int index); } /** * Protobuf type {@code banyandb.model.v1.StrArray} */ public static final class StrArray extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.StrArray) StrArrayOrBuilder { private static final long serialVersionUID = 0L; // Use StrArray.newBuilder() to construct. private StrArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StrArray() { value_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StrArray(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_StrArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_StrArray_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList value_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string value = 1; * @return A list containing the value. */ public com.google.protobuf.ProtocolStringList getValueList() { return value_; } /** * repeated string value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** * repeated string value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 1; * @param index The index of the value to return. * @return The bytes of the value at the given index. */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.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 < value_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.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 < value_.size(); i++) { dataSize += computeStringSizeNoTag(value_.getRaw(i)); } size += dataSize; size += 1 * getValueList().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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) obj; if (!getValueList() .equals(other.getValueList())) 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray 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 banyandb.model.v1.StrArray} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.StrArray) org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_StrArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_StrArray_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_StrArray_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); result.value_ = value_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; } else { ensureValueIsMutable(); value_.addAll(other.value_); } 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(); ensureValueIsMutable(); value_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList value_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValueIsMutable() { if (!value_.isModifiable()) { value_ = new com.google.protobuf.LazyStringArrayList(value_); } bitField0_ |= 0x00000001; } /** * repeated string value = 1; * @return A list containing the value. */ public com.google.protobuf.ProtocolStringList getValueList() { value_.makeImmutable(); return value_; } /** * repeated string value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** * repeated string value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 1; * @param index The index of the value to return. * @return The bytes of the value at the given index. */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** * repeated string value = 1; * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string value = 1; * @param value The value to add. * @return This builder for chaining. */ public Builder addValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string value = 1; * @param values The value to add. * @return This builder for chaining. */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** * repeated string value = 1; * @param value The bytes of the value to add. * @return This builder for chaining. */ public Builder addValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValueIsMutable(); value_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:banyandb.model.v1.StrArray) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.StrArray) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StrArray 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IntArrayOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.IntArray) com.google.protobuf.MessageOrBuilder { /** * repeated int64 value = 1; * @return A list containing the value. */ java.util.List getValueList(); /** * repeated int64 value = 1; * @return The count of value. */ int getValueCount(); /** * repeated int64 value = 1; * @param index The index of the element to return. * @return The value at the given index. */ long getValue(int index); } /** * Protobuf type {@code banyandb.model.v1.IntArray} */ public static final class IntArray extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.IntArray) IntArrayOrBuilder { private static final long serialVersionUID = 0L; // Use IntArray.newBuilder() to construct. private IntArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IntArray() { value_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new IntArray(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_IntArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_IntArray_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList value_ = emptyLongList(); /** * repeated int64 value = 1; * @return A list containing the value. */ @java.lang.Override public java.util.List getValueList() { return value_; } /** * repeated int64 value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** * repeated int64 value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public long getValue(int index) { return value_.getLong(index); } private int valueMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getValueList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(valueMemoizedSerializedSize); } for (int i = 0; i < value_.size(); i++) { output.writeInt64NoTag(value_.getLong(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 < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(value_.getLong(i)); } size += dataSize; if (!getValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) obj; if (!getValueList() .equals(other.getValueList())) 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray 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 banyandb.model.v1.IntArray} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.IntArray) org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_IntArray_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_IntArray_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = emptyLongList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_IntArray_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); result.value_ = value_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; value_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { long v = input.readInt64(); ensureValueIsMutable(); value_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureValueIsMutable(); while (input.getBytesUntilLimit() > 0) { value_.addLong(input.readInt64()); } input.popLimit(limit); 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.Internal.LongList value_ = emptyLongList(); private void ensureValueIsMutable() { if (!value_.isModifiable()) { value_ = makeMutableCopy(value_); } bitField0_ |= 0x00000001; } /** * repeated int64 value = 1; * @return A list containing the value. */ public java.util.List getValueList() { value_.makeImmutable(); return value_; } /** * repeated int64 value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** * repeated int64 value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public long getValue(int index) { return value_.getLong(index); } /** * repeated int64 value = 1; * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( int index, long value) { ensureValueIsMutable(); value_.setLong(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int64 value = 1; * @param value The value to add. * @return This builder for chaining. */ public Builder addValue(long value) { ensureValueIsMutable(); value_.addLong(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int64 value = 1; * @param values The value to add. * @return This builder for chaining. */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated int64 value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:banyandb.model.v1.IntArray) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.IntArray) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IntArray 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagValueOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.TagValue) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.NullValue null = 1; * @return Whether the null field is set. */ boolean hasNull(); /** * .google.protobuf.NullValue null = 1; * @return The enum numeric value on the wire for null. */ int getNullValue(); /** * .google.protobuf.NullValue null = 1; * @return The null. */ com.google.protobuf.NullValue getNull(); /** * .banyandb.model.v1.Str str = 2; * @return Whether the str field is set. */ boolean hasStr(); /** * .banyandb.model.v1.Str str = 2; * @return The str. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getStr(); /** * .banyandb.model.v1.Str str = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder getStrOrBuilder(); /** * .banyandb.model.v1.StrArray str_array = 3; * @return Whether the strArray field is set. */ boolean hasStrArray(); /** * .banyandb.model.v1.StrArray str_array = 3; * @return The strArray. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray getStrArray(); /** * .banyandb.model.v1.StrArray str_array = 3; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder getStrArrayOrBuilder(); /** * .banyandb.model.v1.Int int = 4; * @return Whether the int field is set. */ boolean hasInt(); /** * .banyandb.model.v1.Int int = 4; * @return The int. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getInt(); /** * .banyandb.model.v1.Int int = 4; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder getIntOrBuilder(); /** * .banyandb.model.v1.IntArray int_array = 5; * @return Whether the intArray field is set. */ boolean hasIntArray(); /** * .banyandb.model.v1.IntArray int_array = 5; * @return The intArray. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray getIntArray(); /** * .banyandb.model.v1.IntArray int_array = 5; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder getIntArrayOrBuilder(); /** * bytes binary_data = 6; * @return Whether the binaryData field is set. */ boolean hasBinaryData(); /** * bytes binary_data = 6; * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.ValueCase getValueCase(); } /** * Protobuf type {@code banyandb.model.v1.TagValue} */ public static final class TagValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.TagValue) TagValueOrBuilder { private static final long serialVersionUID = 0L; // Use TagValue.newBuilder() to construct. private TagValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TagValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NULL(1), STR(2), STR_ARRAY(3), INT(4), INT_ARRAY(5), BINARY_DATA(6), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return NULL; case 2: return STR; case 3: return STR_ARRAY; case 4: return INT; case 5: return INT_ARRAY; case 6: return BINARY_DATA; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int NULL_FIELD_NUMBER = 1; /** * .google.protobuf.NullValue null = 1; * @return Whether the null field is set. */ public boolean hasNull() { return valueCase_ == 1; } /** * .google.protobuf.NullValue null = 1; * @return The enum numeric value on the wire for null. */ public int getNullValue() { if (valueCase_ == 1) { return (java.lang.Integer) value_; } return 0; } /** * .google.protobuf.NullValue null = 1; * @return The null. */ public com.google.protobuf.NullValue getNull() { if (valueCase_ == 1) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) value_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } public static final int STR_FIELD_NUMBER = 2; /** * .banyandb.model.v1.Str str = 2; * @return Whether the str field is set. */ @java.lang.Override public boolean hasStr() { return valueCase_ == 2; } /** * .banyandb.model.v1.Str str = 2; * @return The str. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getStr() { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } /** * .banyandb.model.v1.Str str = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder getStrOrBuilder() { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } public static final int STR_ARRAY_FIELD_NUMBER = 3; /** * .banyandb.model.v1.StrArray str_array = 3; * @return Whether the strArray field is set. */ @java.lang.Override public boolean hasStrArray() { return valueCase_ == 3; } /** * .banyandb.model.v1.StrArray str_array = 3; * @return The strArray. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray getStrArray() { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } /** * .banyandb.model.v1.StrArray str_array = 3; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder getStrArrayOrBuilder() { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } public static final int INT_FIELD_NUMBER = 4; /** * .banyandb.model.v1.Int int = 4; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return valueCase_ == 4; } /** * .banyandb.model.v1.Int int = 4; * @return The int. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getInt() { if (valueCase_ == 4) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } /** * .banyandb.model.v1.Int int = 4; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder getIntOrBuilder() { if (valueCase_ == 4) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } public static final int INT_ARRAY_FIELD_NUMBER = 5; /** * .banyandb.model.v1.IntArray int_array = 5; * @return Whether the intArray field is set. */ @java.lang.Override public boolean hasIntArray() { return valueCase_ == 5; } /** * .banyandb.model.v1.IntArray int_array = 5; * @return The intArray. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray getIntArray() { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } /** * .banyandb.model.v1.IntArray int_array = 5; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder getIntArrayOrBuilder() { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } public static final int BINARY_DATA_FIELD_NUMBER = 6; /** * bytes binary_data = 6; * @return Whether the binaryData field is set. */ @java.lang.Override public boolean hasBinaryData() { return valueCase_ == 6; } /** * bytes binary_data = 6; * @return The binaryData. */ @java.lang.Override public com.google.protobuf.ByteString getBinaryData() { if (valueCase_ == 6) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } 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 (valueCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) value_)); } if (valueCase_ == 2) { output.writeMessage(2, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_); } if (valueCase_ == 3) { output.writeMessage(3, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_); } if (valueCase_ == 4) { output.writeMessage(4, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_); } if (valueCase_ == 5) { output.writeMessage(5, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_); } if (valueCase_ == 6) { output.writeBytes( 6, (com.google.protobuf.ByteString) value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ((java.lang.Integer) value_)); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_); } if (valueCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_); } if (valueCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 6, (com.google.protobuf.ByteString) value_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (getNullValue() != other.getNullValue()) return false; break; case 2: if (!getStr() .equals(other.getStr())) return false; break; case 3: if (!getStrArray() .equals(other.getStrArray())) return false; break; case 4: if (!getInt() .equals(other.getInt())) return false; break; case 5: if (!getIntArray() .equals(other.getIntArray())) return false; break; case 6: if (!getBinaryData() .equals(other.getBinaryData())) return false; break; case 0: default: } 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(); switch (valueCase_) { case 1: hash = (37 * hash) + NULL_FIELD_NUMBER; hash = (53 * hash) + getNullValue(); break; case 2: hash = (37 * hash) + STR_FIELD_NUMBER; hash = (53 * hash) + getStr().hashCode(); break; case 3: hash = (37 * hash) + STR_ARRAY_FIELD_NUMBER; hash = (53 * hash) + getStrArray().hashCode(); break; case 4: hash = (37 * hash) + INT_FIELD_NUMBER; hash = (53 * hash) + getInt().hashCode(); break; case 5: hash = (37 * hash) + INT_ARRAY_FIELD_NUMBER; hash = (53 * hash) + getIntArray().hashCode(); break; case 6: hash = (37 * hash) + BINARY_DATA_FIELD_NUMBER; hash = (53 * hash) + getBinaryData().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue 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 banyandb.model.v1.TagValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.TagValue) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (strBuilder_ != null) { strBuilder_.clear(); } if (strArrayBuilder_ != null) { strArrayBuilder_.clear(); } if (intBuilder_ != null) { intBuilder_.clear(); } if (intArrayBuilder_ != null) { intArrayBuilder_.clear(); } valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagValue_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 2 && strBuilder_ != null) { result.value_ = strBuilder_.build(); } if (valueCase_ == 3 && strArrayBuilder_ != null) { result.value_ = strArrayBuilder_.build(); } if (valueCase_ == 4 && intBuilder_ != null) { result.value_ = intBuilder_.build(); } if (valueCase_ == 5 && intArrayBuilder_ != null) { result.value_ = intArrayBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance()) return this; switch (other.getValueCase()) { case NULL: { setNullValue(other.getNullValue()); break; } case STR: { mergeStr(other.getStr()); break; } case STR_ARRAY: { mergeStrArray(other.getStrArray()); break; } case INT: { mergeInt(other.getInt()); break; } case INT_ARRAY: { mergeIntArray(other.getIntArray()); break; } case BINARY_DATA: { setBinaryData(other.getBinaryData()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); valueCase_ = 1; value_ = rawValue; break; } // case 8 case 18: { input.readMessage( getStrFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 2; break; } // case 18 case 26: { input.readMessage( getStrArrayFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 3; break; } // case 26 case 34: { input.readMessage( getIntFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 4; break; } // case 34 case 42: { input.readMessage( getIntArrayFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 5; break; } // case 42 case 50: { value_ = input.readBytes(); valueCase_ = 6; 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 valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; /** * .google.protobuf.NullValue null = 1; * @return Whether the null field is set. */ @java.lang.Override public boolean hasNull() { return valueCase_ == 1; } /** * .google.protobuf.NullValue null = 1; * @return The enum numeric value on the wire for null. */ @java.lang.Override public int getNullValue() { if (valueCase_ == 1) { return ((java.lang.Integer) value_).intValue(); } return 0; } /** * .google.protobuf.NullValue null = 1; * @param value The enum numeric value on the wire for null to set. * @return This builder for chaining. */ public Builder setNullValue(int value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * .google.protobuf.NullValue null = 1; * @return The null. */ @java.lang.Override public com.google.protobuf.NullValue getNull() { if (valueCase_ == 1) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) value_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } /** * .google.protobuf.NullValue null = 1; * @param value The null to set. * @return This builder for chaining. */ public Builder setNull(com.google.protobuf.NullValue value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 1; value_ = value.getNumber(); onChanged(); return this; } /** * .google.protobuf.NullValue null = 1; * @return This builder for chaining. */ public Builder clearNull() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder> strBuilder_; /** * .banyandb.model.v1.Str str = 2; * @return Whether the str field is set. */ @java.lang.Override public boolean hasStr() { return valueCase_ == 2; } /** * .banyandb.model.v1.Str str = 2; * @return The str. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getStr() { if (strBuilder_ == null) { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } else { if (valueCase_ == 2) { return strBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } } /** * .banyandb.model.v1.Str str = 2; */ public Builder setStr(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str value) { if (strBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { strBuilder_.setMessage(value); } valueCase_ = 2; return this; } /** * .banyandb.model.v1.Str str = 2; */ public Builder setStr( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder builderForValue) { if (strBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { strBuilder_.setMessage(builderForValue.build()); } valueCase_ = 2; return this; } /** * .banyandb.model.v1.Str str = 2; */ public Builder mergeStr(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str value) { if (strBuilder_ == null) { if (valueCase_ == 2 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 2) { strBuilder_.mergeFrom(value); } else { strBuilder_.setMessage(value); } } valueCase_ = 2; return this; } /** * .banyandb.model.v1.Str str = 2; */ public Builder clearStr() { if (strBuilder_ == null) { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; } strBuilder_.clear(); } return this; } /** * .banyandb.model.v1.Str str = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder getStrBuilder() { return getStrFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Str str = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder getStrOrBuilder() { if ((valueCase_ == 2) && (strBuilder_ != null)) { return strBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } } /** * .banyandb.model.v1.Str str = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder> getStrFieldBuilder() { if (strBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } strBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 2; onChanged(); return strBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder> strArrayBuilder_; /** * .banyandb.model.v1.StrArray str_array = 3; * @return Whether the strArray field is set. */ @java.lang.Override public boolean hasStrArray() { return valueCase_ == 3; } /** * .banyandb.model.v1.StrArray str_array = 3; * @return The strArray. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray getStrArray() { if (strArrayBuilder_ == null) { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } else { if (valueCase_ == 3) { return strArrayBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } } /** * .banyandb.model.v1.StrArray str_array = 3; */ public Builder setStrArray(org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray value) { if (strArrayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { strArrayBuilder_.setMessage(value); } valueCase_ = 3; return this; } /** * .banyandb.model.v1.StrArray str_array = 3; */ public Builder setStrArray( org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder builderForValue) { if (strArrayBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { strArrayBuilder_.setMessage(builderForValue.build()); } valueCase_ = 3; return this; } /** * .banyandb.model.v1.StrArray str_array = 3; */ public Builder mergeStrArray(org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray value) { if (strArrayBuilder_ == null) { if (valueCase_ == 3 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 3) { strArrayBuilder_.mergeFrom(value); } else { strArrayBuilder_.setMessage(value); } } valueCase_ = 3; return this; } /** * .banyandb.model.v1.StrArray str_array = 3; */ public Builder clearStrArray() { if (strArrayBuilder_ == null) { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; } strArrayBuilder_.clear(); } return this; } /** * .banyandb.model.v1.StrArray str_array = 3; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder getStrArrayBuilder() { return getStrArrayFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.StrArray str_array = 3; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder getStrArrayOrBuilder() { if ((valueCase_ == 3) && (strArrayBuilder_ != null)) { return strArrayBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } } /** * .banyandb.model.v1.StrArray str_array = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder> getStrArrayFieldBuilder() { if (strArrayBuilder_ == null) { if (!(valueCase_ == 3)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.getDefaultInstance(); } strArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArrayOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrArray) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 3; onChanged(); return strArrayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder> intBuilder_; /** * .banyandb.model.v1.Int int = 4; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return valueCase_ == 4; } /** * .banyandb.model.v1.Int int = 4; * @return The int. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getInt() { if (intBuilder_ == null) { if (valueCase_ == 4) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } else { if (valueCase_ == 4) { return intBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } } /** * .banyandb.model.v1.Int int = 4; */ public Builder setInt(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int value) { if (intBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { intBuilder_.setMessage(value); } valueCase_ = 4; return this; } /** * .banyandb.model.v1.Int int = 4; */ public Builder setInt( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder builderForValue) { if (intBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { intBuilder_.setMessage(builderForValue.build()); } valueCase_ = 4; return this; } /** * .banyandb.model.v1.Int int = 4; */ public Builder mergeInt(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int value) { if (intBuilder_ == null) { if (valueCase_ == 4 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 4) { intBuilder_.mergeFrom(value); } else { intBuilder_.setMessage(value); } } valueCase_ = 4; return this; } /** * .banyandb.model.v1.Int int = 4; */ public Builder clearInt() { if (intBuilder_ == null) { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; } intBuilder_.clear(); } return this; } /** * .banyandb.model.v1.Int int = 4; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder getIntBuilder() { return getIntFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Int int = 4; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder getIntOrBuilder() { if ((valueCase_ == 4) && (intBuilder_ != null)) { return intBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 4) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } } /** * .banyandb.model.v1.Int int = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder> getIntFieldBuilder() { if (intBuilder_ == null) { if (!(valueCase_ == 4)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } intBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 4; onChanged(); return intBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder> intArrayBuilder_; /** * .banyandb.model.v1.IntArray int_array = 5; * @return Whether the intArray field is set. */ @java.lang.Override public boolean hasIntArray() { return valueCase_ == 5; } /** * .banyandb.model.v1.IntArray int_array = 5; * @return The intArray. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray getIntArray() { if (intArrayBuilder_ == null) { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } else { if (valueCase_ == 5) { return intArrayBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } } /** * .banyandb.model.v1.IntArray int_array = 5; */ public Builder setIntArray(org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray value) { if (intArrayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { intArrayBuilder_.setMessage(value); } valueCase_ = 5; return this; } /** * .banyandb.model.v1.IntArray int_array = 5; */ public Builder setIntArray( org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder builderForValue) { if (intArrayBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { intArrayBuilder_.setMessage(builderForValue.build()); } valueCase_ = 5; return this; } /** * .banyandb.model.v1.IntArray int_array = 5; */ public Builder mergeIntArray(org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray value) { if (intArrayBuilder_ == null) { if (valueCase_ == 5 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 5) { intArrayBuilder_.mergeFrom(value); } else { intArrayBuilder_.setMessage(value); } } valueCase_ = 5; return this; } /** * .banyandb.model.v1.IntArray int_array = 5; */ public Builder clearIntArray() { if (intArrayBuilder_ == null) { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; } intArrayBuilder_.clear(); } return this; } /** * .banyandb.model.v1.IntArray int_array = 5; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder getIntArrayBuilder() { return getIntArrayFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.IntArray int_array = 5; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder getIntArrayOrBuilder() { if ((valueCase_ == 5) && (intArrayBuilder_ != null)) { return intArrayBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } } /** * .banyandb.model.v1.IntArray int_array = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder> getIntArrayFieldBuilder() { if (intArrayBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.getDefaultInstance(); } intArrayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArrayOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntArray) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged(); return intArrayBuilder_; } /** * bytes binary_data = 6; * @return Whether the binaryData field is set. */ public boolean hasBinaryData() { return valueCase_ == 6; } /** * bytes binary_data = 6; * @return The binaryData. */ public com.google.protobuf.ByteString getBinaryData() { if (valueCase_ == 6) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes binary_data = 6; * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 6; value_ = value; onChanged(); return this; } /** * bytes binary_data = 6; * @return This builder for chaining. */ public Builder clearBinaryData() { if (valueCase_ == 6) { valueCase_ = 0; value_ = null; 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:banyandb.model.v1.TagValue) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.TagValue) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagValue 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagFamilyForWriteOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.TagFamilyForWrite) com.google.protobuf.MessageOrBuilder { /** * repeated .banyandb.model.v1.TagValue tags = 1; */ java.util.List getTagsList(); /** * repeated .banyandb.model.v1.TagValue tags = 1; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getTags(int index); /** * repeated .banyandb.model.v1.TagValue tags = 1; */ int getTagsCount(); /** * repeated .banyandb.model.v1.TagValue tags = 1; */ java.util.List getTagsOrBuilderList(); /** * repeated .banyandb.model.v1.TagValue tags = 1; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getTagsOrBuilder( int index); } /** * Protobuf type {@code banyandb.model.v1.TagFamilyForWrite} */ public static final class TagFamilyForWrite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.TagFamilyForWrite) TagFamilyForWriteOrBuilder { private static final long serialVersionUID = 0L; // Use TagFamilyForWrite.newBuilder() to construct. private TagFamilyForWrite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagFamilyForWrite() { tags_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TagFamilyForWrite(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamilyForWrite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamilyForWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder.class); } public static final int TAGS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List tags_; /** * repeated .banyandb.model.v1.TagValue tags = 1; */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ @java.lang.Override public java.util.List getTagsOrBuilderList() { return tags_; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getTags(int index) { return tags_.get(index); } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getTagsOrBuilder( int index) { return tags_.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 { for (int i = 0; i < tags_.size(); i++) { output.writeMessage(1, tags_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tags_.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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite) obj; if (!getTagsList() .equals(other.getTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite 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 banyandb.model.v1.TagFamilyForWrite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.TagFamilyForWrite) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamilyForWrite_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamilyForWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); } else { tags_ = null; tagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamilyForWrite_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite result) { if (tagsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tags_ = java.util.Collections.unmodifiableList(tags_); bitField0_ = (bitField0_ & ~0x00000001); } result.tags_ = tags_; } else { result.tags_ = tagsBuilder_.build(); } } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.getDefaultInstance()) return this; if (tagsBuilder_ == null) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } } else { if (!other.tags_.isEmpty()) { if (tagsBuilder_.isEmpty()) { tagsBuilder_.dispose(); tagsBuilder_ = null; tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000001); tagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagsFieldBuilder() : null; } else { tagsBuilder_.addAllMessages(other.tags_); } } } 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: { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue m = input.readMessage( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.parser(), extensionRegistry); if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(m); } else { tagsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List tags_ = java.util.Collections.emptyList(); private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tags_ = new java.util.ArrayList(tags_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder> tagsBuilder_; /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public java.util.List getTagsList() { if (tagsBuilder_ == null) { return java.util.Collections.unmodifiableList(tags_); } else { return tagsBuilder_.getMessageList(); } } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public int getTagsCount() { if (tagsBuilder_ == null) { return tags_.size(); } else { return tagsBuilder_.getCount(); } } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getTags(int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessage(index); } } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder setTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); } else { tagsBuilder_.setMessage(index, value); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder setTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.set(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder addTags(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); } else { tagsBuilder_.addMessage(value); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder addTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(index, value); onChanged(); } else { tagsBuilder_.addMessage(index, value); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder addTags( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder addTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder addAllTags( java.lang.Iterable values) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); } else { tagsBuilder_.addAllMessages(values); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder clearTags() { if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tagsBuilder_.clear(); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public Builder removeTags(int index) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.remove(index); onChanged(); } else { tagsBuilder_.remove(index); } return this; } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder getTagsBuilder( int index) { return getTagsFieldBuilder().getBuilder(index); } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getTagsOrBuilder( int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessageOrBuilder(index); } } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public java.util.List getTagsOrBuilderList() { if (tagsBuilder_ != null) { return tagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tags_); } } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder addTagsBuilder() { return getTagsFieldBuilder().addBuilder( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance()); } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder addTagsBuilder( int index) { return getTagsFieldBuilder().addBuilder( index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance()); } /** * repeated .banyandb.model.v1.TagValue tags = 1; */ public java.util.List getTagsBuilderList() { return getTagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder> getTagsFieldBuilder() { if (tagsBuilder_ == null) { tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder>( tags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tags_ = null; } return tagsBuilder_; } @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:banyandb.model.v1.TagFamilyForWrite) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.TagFamilyForWrite) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagFamilyForWrite 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldValueOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.FieldValue) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.NullValue null = 1; * @return Whether the null field is set. */ boolean hasNull(); /** * .google.protobuf.NullValue null = 1; * @return The enum numeric value on the wire for null. */ int getNullValue(); /** * .google.protobuf.NullValue null = 1; * @return The null. */ com.google.protobuf.NullValue getNull(); /** * .banyandb.model.v1.Str str = 2; * @return Whether the str field is set. */ boolean hasStr(); /** * .banyandb.model.v1.Str str = 2; * @return The str. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getStr(); /** * .banyandb.model.v1.Str str = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder getStrOrBuilder(); /** * .banyandb.model.v1.Int int = 3; * @return Whether the int field is set. */ boolean hasInt(); /** * .banyandb.model.v1.Int int = 3; * @return The int. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getInt(); /** * .banyandb.model.v1.Int int = 3; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder getIntOrBuilder(); /** * bytes binary_data = 4; * @return Whether the binaryData field is set. */ boolean hasBinaryData(); /** * bytes binary_data = 4; * @return The binaryData. */ com.google.protobuf.ByteString getBinaryData(); /** * .banyandb.model.v1.Float float = 5; * @return Whether the float field is set. */ boolean hasFloat(); /** * .banyandb.model.v1.Float float = 5; * @return The float. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float getFloat(); /** * .banyandb.model.v1.Float float = 5; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder getFloatOrBuilder(); org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.ValueCase getValueCase(); } /** * Protobuf type {@code banyandb.model.v1.FieldValue} */ public static final class FieldValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.FieldValue) FieldValueOrBuilder { private static final long serialVersionUID = 0L; // Use FieldValue.newBuilder() to construct. private FieldValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_FieldValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_FieldValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder.class); } private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NULL(1), STR(2), INT(3), BINARY_DATA(4), FLOAT(5), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 1: return NULL; case 2: return STR; case 3: return INT; case 4: return BINARY_DATA; case 5: return FLOAT; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int NULL_FIELD_NUMBER = 1; /** * .google.protobuf.NullValue null = 1; * @return Whether the null field is set. */ public boolean hasNull() { return valueCase_ == 1; } /** * .google.protobuf.NullValue null = 1; * @return The enum numeric value on the wire for null. */ public int getNullValue() { if (valueCase_ == 1) { return (java.lang.Integer) value_; } return 0; } /** * .google.protobuf.NullValue null = 1; * @return The null. */ public com.google.protobuf.NullValue getNull() { if (valueCase_ == 1) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) value_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } public static final int STR_FIELD_NUMBER = 2; /** * .banyandb.model.v1.Str str = 2; * @return Whether the str field is set. */ @java.lang.Override public boolean hasStr() { return valueCase_ == 2; } /** * .banyandb.model.v1.Str str = 2; * @return The str. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getStr() { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } /** * .banyandb.model.v1.Str str = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder getStrOrBuilder() { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } public static final int INT_FIELD_NUMBER = 3; /** * .banyandb.model.v1.Int int = 3; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return valueCase_ == 3; } /** * .banyandb.model.v1.Int int = 3; * @return The int. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getInt() { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } /** * .banyandb.model.v1.Int int = 3; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder getIntOrBuilder() { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } public static final int BINARY_DATA_FIELD_NUMBER = 4; /** * bytes binary_data = 4; * @return Whether the binaryData field is set. */ @java.lang.Override public boolean hasBinaryData() { return valueCase_ == 4; } /** * bytes binary_data = 4; * @return The binaryData. */ @java.lang.Override public com.google.protobuf.ByteString getBinaryData() { if (valueCase_ == 4) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } public static final int FLOAT_FIELD_NUMBER = 5; /** * .banyandb.model.v1.Float float = 5; * @return Whether the float field is set. */ @java.lang.Override public boolean hasFloat() { return valueCase_ == 5; } /** * .banyandb.model.v1.Float float = 5; * @return The float. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float getFloat() { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } /** * .banyandb.model.v1.Float float = 5; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder getFloatOrBuilder() { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) value_)); } if (valueCase_ == 2) { output.writeMessage(2, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_); } if (valueCase_ == 3) { output.writeMessage(3, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_); } if (valueCase_ == 4) { output.writeBytes( 4, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 5) { output.writeMessage(5, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valueCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ((java.lang.Integer) value_)); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 4, (com.google.protobuf.ByteString) value_); } if (valueCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: if (getNullValue() != other.getNullValue()) return false; break; case 2: if (!getStr() .equals(other.getStr())) return false; break; case 3: if (!getInt() .equals(other.getInt())) return false; break; case 4: if (!getBinaryData() .equals(other.getBinaryData())) return false; break; case 5: if (!getFloat() .equals(other.getFloat())) return false; break; case 0: default: } 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(); switch (valueCase_) { case 1: hash = (37 * hash) + NULL_FIELD_NUMBER; hash = (53 * hash) + getNullValue(); break; case 2: hash = (37 * hash) + STR_FIELD_NUMBER; hash = (53 * hash) + getStr().hashCode(); break; case 3: hash = (37 * hash) + INT_FIELD_NUMBER; hash = (53 * hash) + getInt().hashCode(); break; case 4: hash = (37 * hash) + BINARY_DATA_FIELD_NUMBER; hash = (53 * hash) + getBinaryData().hashCode(); break; case 5: hash = (37 * hash) + FLOAT_FIELD_NUMBER; hash = (53 * hash) + getFloat().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue 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 banyandb.model.v1.FieldValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.FieldValue) org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_FieldValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_FieldValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (strBuilder_ != null) { strBuilder_.clear(); } if (intBuilder_ != null) { intBuilder_.clear(); } if (floatBuilder_ != null) { floatBuilder_.clear(); } valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_FieldValue_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 2 && strBuilder_ != null) { result.value_ = strBuilder_.build(); } if (valueCase_ == 3 && intBuilder_ != null) { result.value_ = intBuilder_.build(); } if (valueCase_ == 5 && floatBuilder_ != null) { result.value_ = floatBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance()) return this; switch (other.getValueCase()) { case NULL: { setNullValue(other.getNullValue()); break; } case STR: { mergeStr(other.getStr()); break; } case INT: { mergeInt(other.getInt()); break; } case BINARY_DATA: { setBinaryData(other.getBinaryData()); break; } case FLOAT: { mergeFloat(other.getFloat()); break; } case VALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); valueCase_ = 1; value_ = rawValue; break; } // case 8 case 18: { input.readMessage( getStrFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 2; break; } // case 18 case 26: { input.readMessage( getIntFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 3; break; } // case 26 case 34: { value_ = input.readBytes(); valueCase_ = 4; break; } // case 34 case 42: { input.readMessage( getFloatFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 5; break; } // case 42 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 valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; /** * .google.protobuf.NullValue null = 1; * @return Whether the null field is set. */ @java.lang.Override public boolean hasNull() { return valueCase_ == 1; } /** * .google.protobuf.NullValue null = 1; * @return The enum numeric value on the wire for null. */ @java.lang.Override public int getNullValue() { if (valueCase_ == 1) { return ((java.lang.Integer) value_).intValue(); } return 0; } /** * .google.protobuf.NullValue null = 1; * @param value The enum numeric value on the wire for null to set. * @return This builder for chaining. */ public Builder setNullValue(int value) { valueCase_ = 1; value_ = value; onChanged(); return this; } /** * .google.protobuf.NullValue null = 1; * @return The null. */ @java.lang.Override public com.google.protobuf.NullValue getNull() { if (valueCase_ == 1) { com.google.protobuf.NullValue result = com.google.protobuf.NullValue.forNumber( (java.lang.Integer) value_); return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; } return com.google.protobuf.NullValue.NULL_VALUE; } /** * .google.protobuf.NullValue null = 1; * @param value The null to set. * @return This builder for chaining. */ public Builder setNull(com.google.protobuf.NullValue value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 1; value_ = value.getNumber(); onChanged(); return this; } /** * .google.protobuf.NullValue null = 1; * @return This builder for chaining. */ public Builder clearNull() { if (valueCase_ == 1) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder> strBuilder_; /** * .banyandb.model.v1.Str str = 2; * @return Whether the str field is set. */ @java.lang.Override public boolean hasStr() { return valueCase_ == 2; } /** * .banyandb.model.v1.Str str = 2; * @return The str. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str getStr() { if (strBuilder_ == null) { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } else { if (valueCase_ == 2) { return strBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } } /** * .banyandb.model.v1.Str str = 2; */ public Builder setStr(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str value) { if (strBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { strBuilder_.setMessage(value); } valueCase_ = 2; return this; } /** * .banyandb.model.v1.Str str = 2; */ public Builder setStr( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder builderForValue) { if (strBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { strBuilder_.setMessage(builderForValue.build()); } valueCase_ = 2; return this; } /** * .banyandb.model.v1.Str str = 2; */ public Builder mergeStr(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str value) { if (strBuilder_ == null) { if (valueCase_ == 2 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 2) { strBuilder_.mergeFrom(value); } else { strBuilder_.setMessage(value); } } valueCase_ = 2; return this; } /** * .banyandb.model.v1.Str str = 2; */ public Builder clearStr() { if (strBuilder_ == null) { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; } strBuilder_.clear(); } return this; } /** * .banyandb.model.v1.Str str = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder getStrBuilder() { return getStrFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Str str = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder getStrOrBuilder() { if ((valueCase_ == 2) && (strBuilder_ != null)) { return strBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } } /** * .banyandb.model.v1.Str str = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder> getStrFieldBuilder() { if (strBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.getDefaultInstance(); } strBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.StrOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Str) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 2; onChanged(); return strBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder> intBuilder_; /** * .banyandb.model.v1.Int int = 3; * @return Whether the int field is set. */ @java.lang.Override public boolean hasInt() { return valueCase_ == 3; } /** * .banyandb.model.v1.Int int = 3; * @return The int. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int getInt() { if (intBuilder_ == null) { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } else { if (valueCase_ == 3) { return intBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } } /** * .banyandb.model.v1.Int int = 3; */ public Builder setInt(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int value) { if (intBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { intBuilder_.setMessage(value); } valueCase_ = 3; return this; } /** * .banyandb.model.v1.Int int = 3; */ public Builder setInt( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder builderForValue) { if (intBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { intBuilder_.setMessage(builderForValue.build()); } valueCase_ = 3; return this; } /** * .banyandb.model.v1.Int int = 3; */ public Builder mergeInt(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int value) { if (intBuilder_ == null) { if (valueCase_ == 3 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 3) { intBuilder_.mergeFrom(value); } else { intBuilder_.setMessage(value); } } valueCase_ = 3; return this; } /** * .banyandb.model.v1.Int int = 3; */ public Builder clearInt() { if (intBuilder_ == null) { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; } intBuilder_.clear(); } return this; } /** * .banyandb.model.v1.Int int = 3; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder getIntBuilder() { return getIntFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Int int = 3; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder getIntOrBuilder() { if ((valueCase_ == 3) && (intBuilder_ != null)) { return intBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 3) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } } /** * .banyandb.model.v1.Int int = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder> getIntFieldBuilder() { if (intBuilder_ == null) { if (!(valueCase_ == 3)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.getDefaultInstance(); } intBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.IntOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Int) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 3; onChanged(); return intBuilder_; } /** * bytes binary_data = 4; * @return Whether the binaryData field is set. */ public boolean hasBinaryData() { return valueCase_ == 4; } /** * bytes binary_data = 4; * @return The binaryData. */ public com.google.protobuf.ByteString getBinaryData() { if (valueCase_ == 4) { return (com.google.protobuf.ByteString) value_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes binary_data = 4; * @param value The binaryData to set. * @return This builder for chaining. */ public Builder setBinaryData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 4; value_ = value; onChanged(); return this; } /** * bytes binary_data = 4; * @return This builder for chaining. */ public Builder clearBinaryData() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder> floatBuilder_; /** * .banyandb.model.v1.Float float = 5; * @return Whether the float field is set. */ @java.lang.Override public boolean hasFloat() { return valueCase_ == 5; } /** * .banyandb.model.v1.Float float = 5; * @return The float. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float getFloat() { if (floatBuilder_ == null) { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } else { if (valueCase_ == 5) { return floatBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } } /** * .banyandb.model.v1.Float float = 5; */ public Builder setFloat(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float value) { if (floatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { floatBuilder_.setMessage(value); } valueCase_ = 5; return this; } /** * .banyandb.model.v1.Float float = 5; */ public Builder setFloat( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder builderForValue) { if (floatBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { floatBuilder_.setMessage(builderForValue.build()); } valueCase_ = 5; return this; } /** * .banyandb.model.v1.Float float = 5; */ public Builder mergeFloat(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float value) { if (floatBuilder_ == null) { if (valueCase_ == 5 && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance()) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 5) { floatBuilder_.mergeFrom(value); } else { floatBuilder_.setMessage(value); } } valueCase_ = 5; return this; } /** * .banyandb.model.v1.Float float = 5; */ public Builder clearFloat() { if (floatBuilder_ == null) { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; } floatBuilder_.clear(); } return this; } /** * .banyandb.model.v1.Float float = 5; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder getFloatBuilder() { return getFloatFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Float float = 5; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder getFloatOrBuilder() { if ((valueCase_ == 5) && (floatBuilder_ != null)) { return floatBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 5) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } } /** * .banyandb.model.v1.Float float = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder> getFloatFieldBuilder() { if (floatBuilder_ == null) { if (!(valueCase_ == 5)) { value_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.getDefaultInstance(); } floatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FloatOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Float) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 5; onChanged(); return floatBuilder_; } @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:banyandb.model.v1.FieldValue) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.FieldValue) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldValue 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Tag) com.google.protobuf.MessageOrBuilder { /** * string key = 1; * @return The key. */ java.lang.String getKey(); /** * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .banyandb.model.v1.TagValue value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * .banyandb.model.v1.TagValue value = 2; * @return The value. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getValue(); /** * .banyandb.model.v1.TagValue value = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getValueOrBuilder(); } /** *
   * Pair is the building block of a record which is equivalent to a key-value pair.
   * In the context of Trace, it could be metadata of a trace such as service_name, service_instance, etc.
   * Besides, other tags are organized in key-value pair in the underlying storage layer.
   * One should notice that the values can be a multi-value.
   * 
* * Protobuf type {@code banyandb.model.v1.Tag} */ public static final class Tag extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Tag) TagOrBuilder { private static final long serialVersionUID = 0L; // Use Tag.newBuilder() to construct. private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Tag() { key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Tag(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Tag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value_; /** * .banyandb.model.v1.TagValue value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .banyandb.model.v1.TagValue value = 2; * @return The value. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getValue() { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } /** * .banyandb.model.v1.TagValue value = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getValueOrBuilder() { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag) obj; if (!getKey() .equals(other.getKey())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag 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; } /** *
     * Pair is the building block of a record which is equivalent to a key-value pair.
     * In the context of Trace, it could be metadata of a trace such as service_name, service_instance, etc.
     * Besides, other tags are organized in key-value pair in the underlying storage layer.
     * One should notice that the values can be a multi-value.
     * 
* * Protobuf type {@code banyandb.model.v1.Tag} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Tag) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Tag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Tag_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = ""; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Tag_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } 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: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder> valueBuilder_; /** * .banyandb.model.v1.TagValue value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * .banyandb.model.v1.TagValue value = 2; * @return The value. */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getValue() { if (valueBuilder_ == null) { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .banyandb.model.v1.TagValue value = 2; */ public Builder setValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.TagValue value = 2; */ public Builder setValue( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.TagValue value = 2; */ public Builder mergeValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .banyandb.model.v1.TagValue value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .banyandb.model.v1.TagValue value = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.TagValue value = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } } /** * .banyandb.model.v1.TagValue value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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:banyandb.model.v1.Tag) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Tag) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Tag 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagFamilyOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.TagFamily) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * repeated .banyandb.model.v1.Tag tags = 2; */ java.util.List getTagsList(); /** * repeated .banyandb.model.v1.Tag tags = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getTags(int index); /** * repeated .banyandb.model.v1.Tag tags = 2; */ int getTagsCount(); /** * repeated .banyandb.model.v1.Tag tags = 2; */ java.util.List getTagsOrBuilderList(); /** * repeated .banyandb.model.v1.Tag tags = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder getTagsOrBuilder( int index); } /** * Protobuf type {@code banyandb.model.v1.TagFamily} */ public static final class TagFamily extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.TagFamily) TagFamilyOrBuilder { private static final long serialVersionUID = 0L; // Use TagFamily.newBuilder() to construct. private TagFamily(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagFamily() { name_ = ""; tags_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TagFamily(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamily_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamily_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @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) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List tags_; /** * repeated .banyandb.model.v1.Tag tags = 2; */ @java.lang.Override public java.util.List getTagsList() { return tags_; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ @java.lang.Override public java.util.List getTagsOrBuilderList() { return tags_; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ @java.lang.Override public int getTagsCount() { return tags_.size(); } /** * repeated .banyandb.model.v1.Tag tags = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getTags(int index) { return tags_.get(index); } /** * repeated .banyandb.model.v1.Tag tags = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder getTagsOrBuilder( int index) { return tags_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < tags_.size(); i++) { output.writeMessage(2, tags_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < tags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tags_.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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily) obj; if (!getName() .equals(other.getName())) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily 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 banyandb.model.v1.TagFamily} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.TagFamily) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamily_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamily_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); } else { tags_ = null; tagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagFamily_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily result) { if (tagsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { tags_ = java.util.Collections.unmodifiableList(tags_); bitField0_ = (bitField0_ & ~0x00000002); } result.tags_ = tags_; } else { result.tags_ = tagsBuilder_.build(); } } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (tagsBuilder_ == null) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } } else { if (!other.tags_.isEmpty()) { if (tagsBuilder_.isEmpty()) { tagsBuilder_.dispose(); tagsBuilder_ = null; tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000002); tagsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagsFieldBuilder() : null; } else { tagsBuilder_.addAllMessages(other.tags_); } } } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag m = input.readMessage( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.parser(), extensionRegistry); if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(m); } else { tagsBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value 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(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List tags_ = java.util.Collections.emptyList(); private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new java.util.ArrayList(tags_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder> tagsBuilder_; /** * repeated .banyandb.model.v1.Tag tags = 2; */ public java.util.List getTagsList() { if (tagsBuilder_ == null) { return java.util.Collections.unmodifiableList(tags_); } else { return tagsBuilder_.getMessageList(); } } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public int getTagsCount() { if (tagsBuilder_ == null) { return tags_.size(); } else { return tagsBuilder_.getCount(); } } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getTags(int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessage(index); } } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder setTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); } else { tagsBuilder_.setMessage(index, value); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder setTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.set(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder addTags(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); } else { tagsBuilder_.addMessage(value); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder addTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag value) { if (tagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(index, value); onChanged(); } else { tagsBuilder_.addMessage(index, value); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder addTags( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder addTags( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder builderForValue) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.add(index, builderForValue.build()); onChanged(); } else { tagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder addAllTags( java.lang.Iterable values) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); } else { tagsBuilder_.addAllMessages(values); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder clearTags() { if (tagsBuilder_ == null) { tags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { tagsBuilder_.clear(); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public Builder removeTags(int index) { if (tagsBuilder_ == null) { ensureTagsIsMutable(); tags_.remove(index); onChanged(); } else { tagsBuilder_.remove(index); } return this; } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder getTagsBuilder( int index) { return getTagsFieldBuilder().getBuilder(index); } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder getTagsOrBuilder( int index) { if (tagsBuilder_ == null) { return tags_.get(index); } else { return tagsBuilder_.getMessageOrBuilder(index); } } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public java.util.List getTagsOrBuilderList() { if (tagsBuilder_ != null) { return tagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tags_); } } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder addTagsBuilder() { return getTagsFieldBuilder().addBuilder( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.getDefaultInstance()); } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder addTagsBuilder( int index) { return getTagsFieldBuilder().addBuilder( index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.getDefaultInstance()); } /** * repeated .banyandb.model.v1.Tag tags = 2; */ public java.util.List getTagsBuilderList() { return getTagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder> getTagsFieldBuilder() { if (tagsBuilder_ == null) { tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder>( tags_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); tags_ = null; } return tagsBuilder_; } @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:banyandb.model.v1.TagFamily) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.TagFamily) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagFamily 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Condition) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return The enum numeric value on the wire for op. */ int getOpValue(); /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return The op. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp getOp(); /** * .banyandb.model.v1.TagValue value = 3; * @return Whether the value field is set. */ boolean hasValue(); /** * .banyandb.model.v1.TagValue value = 3; * @return The value. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getValue(); /** * .banyandb.model.v1.TagValue value = 3; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getValueOrBuilder(); /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; * @return Whether the matchOption field is set. */ boolean hasMatchOption(); /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; * @return The matchOption. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption getMatchOption(); /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder getMatchOptionOrBuilder(); } /** *
   * Condition consists of the query condition with a single binary operator to be imposed
   * For 1:1 BinaryOp, values in condition must be an array with length = 1,
   * while for 1:N BinaryOp, values can be an array with length >= 1.
   * 
* * Protobuf type {@code banyandb.model.v1.Condition} */ public static final class Condition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Condition) ConditionOrBuilder { private static final long serialVersionUID = 0L; // Use Condition.newBuilder() to construct. private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Condition() { name_ = ""; op_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Condition(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder.class); } /** *
     * BinaryOp specifies the operation imposed to the given query condition
     * For EQ, NE, LT, GT, LE and GE, only one operand should be given, i.e. one-to-one relationship.
     * HAVING and NOT_HAVING allow multi-value to be the operand such as array/vector, i.e. one-to-many relationship.
     * For example, "keyA" contains "valueA" **and** "valueB"
     * MATCH performances a full-text search if the tag is analyzed.
     * The string value applies to the same analyzer as the tag, but string array value does not.
     * Each item in a string array is seen as a token instead of a query expression.
     * 
* * Protobuf enum {@code banyandb.model.v1.Condition.BinaryOp} */ public enum BinaryOp implements com.google.protobuf.ProtocolMessageEnum { /** * BINARY_OP_UNSPECIFIED = 0; */ BINARY_OP_UNSPECIFIED(0), /** * BINARY_OP_EQ = 1; */ BINARY_OP_EQ(1), /** * BINARY_OP_NE = 2; */ BINARY_OP_NE(2), /** * BINARY_OP_LT = 3; */ BINARY_OP_LT(3), /** * BINARY_OP_GT = 4; */ BINARY_OP_GT(4), /** * BINARY_OP_LE = 5; */ BINARY_OP_LE(5), /** * BINARY_OP_GE = 6; */ BINARY_OP_GE(6), /** * BINARY_OP_HAVING = 7; */ BINARY_OP_HAVING(7), /** * BINARY_OP_NOT_HAVING = 8; */ BINARY_OP_NOT_HAVING(8), /** * BINARY_OP_IN = 9; */ BINARY_OP_IN(9), /** * BINARY_OP_NOT_IN = 10; */ BINARY_OP_NOT_IN(10), /** * BINARY_OP_MATCH = 11; */ BINARY_OP_MATCH(11), UNRECOGNIZED(-1), ; /** * BINARY_OP_UNSPECIFIED = 0; */ public static final int BINARY_OP_UNSPECIFIED_VALUE = 0; /** * BINARY_OP_EQ = 1; */ public static final int BINARY_OP_EQ_VALUE = 1; /** * BINARY_OP_NE = 2; */ public static final int BINARY_OP_NE_VALUE = 2; /** * BINARY_OP_LT = 3; */ public static final int BINARY_OP_LT_VALUE = 3; /** * BINARY_OP_GT = 4; */ public static final int BINARY_OP_GT_VALUE = 4; /** * BINARY_OP_LE = 5; */ public static final int BINARY_OP_LE_VALUE = 5; /** * BINARY_OP_GE = 6; */ public static final int BINARY_OP_GE_VALUE = 6; /** * BINARY_OP_HAVING = 7; */ public static final int BINARY_OP_HAVING_VALUE = 7; /** * BINARY_OP_NOT_HAVING = 8; */ public static final int BINARY_OP_NOT_HAVING_VALUE = 8; /** * BINARY_OP_IN = 9; */ public static final int BINARY_OP_IN_VALUE = 9; /** * BINARY_OP_NOT_IN = 10; */ public static final int BINARY_OP_NOT_IN_VALUE = 10; /** * BINARY_OP_MATCH = 11; */ public static final int BINARY_OP_MATCH_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BinaryOp valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static BinaryOp forNumber(int value) { switch (value) { case 0: return BINARY_OP_UNSPECIFIED; case 1: return BINARY_OP_EQ; case 2: return BINARY_OP_NE; case 3: return BINARY_OP_LT; case 4: return BINARY_OP_GT; case 5: return BINARY_OP_LE; case 6: return BINARY_OP_GE; case 7: return BINARY_OP_HAVING; case 8: return BINARY_OP_NOT_HAVING; case 9: return BINARY_OP_IN; case 10: return BINARY_OP_NOT_IN; case 11: return BINARY_OP_MATCH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BinaryOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BinaryOp findValueByNumber(int number) { return BinaryOp.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDescriptor().getEnumTypes().get(0); } private static final BinaryOp[] VALUES = values(); public static BinaryOp valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private BinaryOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:banyandb.model.v1.Condition.BinaryOp) } public interface MatchOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Condition.MatchOption) com.google.protobuf.MessageOrBuilder { /** * string analyzer = 1; * @return The analyzer. */ java.lang.String getAnalyzer(); /** * string analyzer = 1; * @return The bytes for analyzer. */ com.google.protobuf.ByteString getAnalyzerBytes(); /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return The enum numeric value on the wire for operator. */ int getOperatorValue(); /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return The operator. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator getOperator(); } /** * Protobuf type {@code banyandb.model.v1.Condition.MatchOption} */ public static final class MatchOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Condition.MatchOption) MatchOptionOrBuilder { private static final long serialVersionUID = 0L; // Use MatchOption.newBuilder() to construct. private MatchOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatchOption() { analyzer_ = ""; operator_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatchOption(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_MatchOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_MatchOption_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder.class); } /** * Protobuf enum {@code banyandb.model.v1.Condition.MatchOption.Operator} */ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { /** * OPERATOR_UNSPECIFIED = 0; */ OPERATOR_UNSPECIFIED(0), /** * OPERATOR_AND = 1; */ OPERATOR_AND(1), /** * OPERATOR_OR = 2; */ OPERATOR_OR(2), UNRECOGNIZED(-1), ; /** * OPERATOR_UNSPECIFIED = 0; */ public static final int OPERATOR_UNSPECIFIED_VALUE = 0; /** * OPERATOR_AND = 1; */ public static final int OPERATOR_AND_VALUE = 1; /** * OPERATOR_OR = 2; */ public static final int OPERATOR_OR_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Operator valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Operator forNumber(int value) { switch (value) { case 0: return OPERATOR_UNSPECIFIED; case 1: return OPERATOR_AND; case 2: return OPERATOR_OR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Operator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Operator findValueByNumber(int number) { return Operator.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDescriptor().getEnumTypes().get(0); } private static final Operator[] VALUES = values(); public static Operator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Operator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:banyandb.model.v1.Condition.MatchOption.Operator) } public static final int ANALYZER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object analyzer_ = ""; /** * string analyzer = 1; * @return The analyzer. */ @java.lang.Override public java.lang.String getAnalyzer() { java.lang.Object ref = analyzer_; 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(); analyzer_ = s; return s; } } /** * string analyzer = 1; * @return The bytes for analyzer. */ @java.lang.Override public com.google.protobuf.ByteString getAnalyzerBytes() { java.lang.Object ref = analyzer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); analyzer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATOR_FIELD_NUMBER = 2; private int operator_ = 0; /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return The enum numeric value on the wire for operator. */ @java.lang.Override public int getOperatorValue() { return operator_; } /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return The operator. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator getOperator() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator.forNumber(operator_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, analyzer_); } if (operator_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator.OPERATOR_UNSPECIFIED.getNumber()) { output.writeEnum(2, operator_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, analyzer_); } if (operator_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator.OPERATOR_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, operator_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption) obj; if (!getAnalyzer() .equals(other.getAnalyzer())) return false; if (operator_ != other.operator_) 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) + ANALYZER_FIELD_NUMBER; hash = (53 * hash) + getAnalyzer().hashCode(); hash = (37 * hash) + OPERATOR_FIELD_NUMBER; hash = (53 * hash) + operator_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption 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 banyandb.model.v1.Condition.MatchOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Condition.MatchOption) org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_MatchOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_MatchOption_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; analyzer_ = ""; operator_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_MatchOption_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.analyzer_ = analyzer_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.operator_ = operator_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance()) return this; if (!other.getAnalyzer().isEmpty()) { analyzer_ = other.analyzer_; bitField0_ |= 0x00000001; onChanged(); } if (other.operator_ != 0) { setOperatorValue(other.getOperatorValue()); } 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: { analyzer_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { operator_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object analyzer_ = ""; /** * string analyzer = 1; * @return The analyzer. */ public java.lang.String getAnalyzer() { java.lang.Object ref = analyzer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); analyzer_ = s; return s; } else { return (java.lang.String) ref; } } /** * string analyzer = 1; * @return The bytes for analyzer. */ public com.google.protobuf.ByteString getAnalyzerBytes() { java.lang.Object ref = analyzer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); analyzer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string analyzer = 1; * @param value The analyzer to set. * @return This builder for chaining. */ public Builder setAnalyzer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } analyzer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string analyzer = 1; * @return This builder for chaining. */ public Builder clearAnalyzer() { analyzer_ = getDefaultInstance().getAnalyzer(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string analyzer = 1; * @param value The bytes for analyzer to set. * @return This builder for chaining. */ public Builder setAnalyzerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); analyzer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int operator_ = 0; /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return The enum numeric value on the wire for operator. */ @java.lang.Override public int getOperatorValue() { return operator_; } /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @param value The enum numeric value on the wire for operator to set. * @return This builder for chaining. */ public Builder setOperatorValue(int value) { operator_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return The operator. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator getOperator() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator.forNumber(operator_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator.UNRECOGNIZED : result; } /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @param value The operator to set. * @return This builder for chaining. */ public Builder setOperator(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Operator value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value.getNumber(); onChanged(); return this; } /** * .banyandb.model.v1.Condition.MatchOption.Operator operator = 2; * @return This builder for chaining. */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000002); operator_ = 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:banyandb.model.v1.Condition.MatchOption) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Condition.MatchOption) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MatchOption 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @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) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OP_FIELD_NUMBER = 2; private int op_ = 0; /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return The op. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp getOp() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp.forNumber(op_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp.UNRECOGNIZED : result; } public static final int VALUE_FIELD_NUMBER = 3; private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value_; /** * .banyandb.model.v1.TagValue value = 3; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * .banyandb.model.v1.TagValue value = 3; * @return The value. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getValue() { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } /** * .banyandb.model.v1.TagValue value = 3; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getValueOrBuilder() { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } public static final int MATCH_OPTION_FIELD_NUMBER = 4; private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption matchOption_; /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; * @return Whether the matchOption field is set. */ @java.lang.Override public boolean hasMatchOption() { return ((bitField0_ & 0x00000002) != 0); } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; * @return The matchOption. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption getMatchOption() { return matchOption_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance() : matchOption_; } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder getMatchOptionOrBuilder() { return matchOption_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance() : matchOption_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (op_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp.BINARY_OP_UNSPECIFIED.getNumber()) { output.writeEnum(2, op_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getValue()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getMatchOption()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (op_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp.BINARY_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, op_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMatchOption()); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) obj; if (!getName() .equals(other.getName())) return false; if (op_ != other.op_) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (hasMatchOption() != other.hasMatchOption()) return false; if (hasMatchOption()) { if (!getMatchOption() .equals(other.getMatchOption())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasMatchOption()) { hash = (37 * hash) + MATCH_OPTION_FIELD_NUMBER; hash = (53 * hash) + getMatchOption().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition 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; } /** *
     * Condition consists of the query condition with a single binary operator to be imposed
     * For 1:1 BinaryOp, values in condition must be an array with length = 1,
     * while for 1:N BinaryOp, values can be an array with length >= 1.
     * 
* * Protobuf type {@code banyandb.model.v1.Condition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Condition) org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); getMatchOptionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; op_ = 0; value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } matchOption_ = null; if (matchOptionBuilder_ != null) { matchOptionBuilder_.dispose(); matchOptionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Condition_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.op_ = op_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.matchOption_ = matchOptionBuilder_ == null ? matchOption_ : matchOptionBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (other.hasValue()) { mergeValue(other.getValue()); } if (other.hasMatchOption()) { mergeMatchOption(other.getMatchOption()); } 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: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { op_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getMatchOptionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value 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(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int op_ = 0; /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { op_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return The op. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp getOp() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp.forNumber(op_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp.UNRECOGNIZED : result; } /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.BinaryOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; op_ = value.getNumber(); onChanged(); return this; } /** * .banyandb.model.v1.Condition.BinaryOp op = 2; * @return This builder for chaining. */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000002); op_ = 0; onChanged(); return this; } private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder> valueBuilder_; /** * .banyandb.model.v1.TagValue value = 3; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000004) != 0); } /** * .banyandb.model.v1.TagValue value = 3; * @return The value. */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue getValue() { if (valueBuilder_ == null) { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .banyandb.model.v1.TagValue value = 3; */ public Builder setValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .banyandb.model.v1.TagValue value = 3; */ public Builder setValue( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .banyandb.model.v1.TagValue value = 3; */ public Builder mergeValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && value_ != null && value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .banyandb.model.v1.TagValue value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * .banyandb.model.v1.TagValue value = 3; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder getValueBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.TagValue value = 3; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.getDefaultInstance() : value_; } } /** * .banyandb.model.v1.TagValue value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption matchOption_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder> matchOptionBuilder_; /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; * @return Whether the matchOption field is set. */ public boolean hasMatchOption() { return ((bitField0_ & 0x00000008) != 0); } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; * @return The matchOption. */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption getMatchOption() { if (matchOptionBuilder_ == null) { return matchOption_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance() : matchOption_; } else { return matchOptionBuilder_.getMessage(); } } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ public Builder setMatchOption(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption value) { if (matchOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matchOption_ = value; } else { matchOptionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ public Builder setMatchOption( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder builderForValue) { if (matchOptionBuilder_ == null) { matchOption_ = builderForValue.build(); } else { matchOptionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ public Builder mergeMatchOption(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption value) { if (matchOptionBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && matchOption_ != null && matchOption_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance()) { getMatchOptionBuilder().mergeFrom(value); } else { matchOption_ = value; } } else { matchOptionBuilder_.mergeFrom(value); } if (matchOption_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ public Builder clearMatchOption() { bitField0_ = (bitField0_ & ~0x00000008); matchOption_ = null; if (matchOptionBuilder_ != null) { matchOptionBuilder_.dispose(); matchOptionBuilder_ = null; } onChanged(); return this; } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder getMatchOptionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMatchOptionFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder getMatchOptionOrBuilder() { if (matchOptionBuilder_ != null) { return matchOptionBuilder_.getMessageOrBuilder(); } else { return matchOption_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.getDefaultInstance() : matchOption_; } } /** * .banyandb.model.v1.Condition.MatchOption match_option = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder> getMatchOptionFieldBuilder() { if (matchOptionBuilder_ == null) { matchOptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOption.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.MatchOptionOrBuilder>( getMatchOption(), getParentForChildren(), isClean()); matchOption_ = null; } return matchOptionBuilder_; } @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:banyandb.model.v1.Condition) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Condition) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Condition 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CriteriaOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.Criteria) com.google.protobuf.MessageOrBuilder { /** * .banyandb.model.v1.LogicalExpression le = 1; * @return Whether the le field is set. */ boolean hasLe(); /** * .banyandb.model.v1.LogicalExpression le = 1; * @return The le. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression getLe(); /** * .banyandb.model.v1.LogicalExpression le = 1; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder getLeOrBuilder(); /** * .banyandb.model.v1.Condition condition = 2; * @return Whether the condition field is set. */ boolean hasCondition(); /** * .banyandb.model.v1.Condition condition = 2; * @return The condition. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getCondition(); /** * .banyandb.model.v1.Condition condition = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder getConditionOrBuilder(); org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.ExpCase getExpCase(); } /** *
   * tag_families are indexed.
   * 
* * Protobuf type {@code banyandb.model.v1.Criteria} */ public static final class Criteria extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.Criteria) CriteriaOrBuilder { private static final long serialVersionUID = 0L; // Use Criteria.newBuilder() to construct. private Criteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Criteria() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Criteria(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Criteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Criteria_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder.class); } private int expCase_ = 0; @SuppressWarnings("serial") private java.lang.Object exp_; public enum ExpCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LE(1), CONDITION(2), EXP_NOT_SET(0); private final int value; private ExpCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExpCase valueOf(int value) { return forNumber(value); } public static ExpCase forNumber(int value) { switch (value) { case 1: return LE; case 2: return CONDITION; case 0: return EXP_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ExpCase getExpCase() { return ExpCase.forNumber( expCase_); } public static final int LE_FIELD_NUMBER = 1; /** * .banyandb.model.v1.LogicalExpression le = 1; * @return Whether the le field is set. */ @java.lang.Override public boolean hasLe() { return expCase_ == 1; } /** * .banyandb.model.v1.LogicalExpression le = 1; * @return The le. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression getLe() { if (expCase_ == 1) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } /** * .banyandb.model.v1.LogicalExpression le = 1; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder getLeOrBuilder() { if (expCase_ == 1) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } public static final int CONDITION_FIELD_NUMBER = 2; /** * .banyandb.model.v1.Condition condition = 2; * @return Whether the condition field is set. */ @java.lang.Override public boolean hasCondition() { return expCase_ == 2; } /** * .banyandb.model.v1.Condition condition = 2; * @return The condition. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getCondition() { if (expCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } /** * .banyandb.model.v1.Condition condition = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder getConditionOrBuilder() { if (expCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (expCase_ == 1) { output.writeMessage(1, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_); } if (expCase_ == 2) { output.writeMessage(2, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (expCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_); } if (expCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria) obj; if (!getExpCase().equals(other.getExpCase())) return false; switch (expCase_) { case 1: if (!getLe() .equals(other.getLe())) return false; break; case 2: if (!getCondition() .equals(other.getCondition())) return false; break; case 0: default: } 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(); switch (expCase_) { case 1: hash = (37 * hash) + LE_FIELD_NUMBER; hash = (53 * hash) + getLe().hashCode(); break; case 2: hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria 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; } /** *
     * tag_families are indexed.
     * 
* * Protobuf type {@code banyandb.model.v1.Criteria} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.Criteria) org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Criteria_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Criteria_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (leBuilder_ != null) { leBuilder_.clear(); } if (conditionBuilder_ != null) { conditionBuilder_.clear(); } expCase_ = 0; exp_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_Criteria_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria result) { result.expCase_ = expCase_; result.exp_ = this.exp_; if (expCase_ == 1 && leBuilder_ != null) { result.exp_ = leBuilder_.build(); } if (expCase_ == 2 && conditionBuilder_ != null) { result.exp_ = conditionBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance()) return this; switch (other.getExpCase()) { case LE: { mergeLe(other.getLe()); break; } case CONDITION: { mergeCondition(other.getCondition()); break; } case EXP_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getLeFieldBuilder().getBuilder(), extensionRegistry); expCase_ = 1; break; } // case 10 case 18: { input.readMessage( getConditionFieldBuilder().getBuilder(), extensionRegistry); expCase_ = 2; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int expCase_ = 0; private java.lang.Object exp_; public ExpCase getExpCase() { return ExpCase.forNumber( expCase_); } public Builder clearExp() { expCase_ = 0; exp_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder> leBuilder_; /** * .banyandb.model.v1.LogicalExpression le = 1; * @return Whether the le field is set. */ @java.lang.Override public boolean hasLe() { return expCase_ == 1; } /** * .banyandb.model.v1.LogicalExpression le = 1; * @return The le. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression getLe() { if (leBuilder_ == null) { if (expCase_ == 1) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } else { if (expCase_ == 1) { return leBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } } /** * .banyandb.model.v1.LogicalExpression le = 1; */ public Builder setLe(org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression value) { if (leBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exp_ = value; onChanged(); } else { leBuilder_.setMessage(value); } expCase_ = 1; return this; } /** * .banyandb.model.v1.LogicalExpression le = 1; */ public Builder setLe( org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder builderForValue) { if (leBuilder_ == null) { exp_ = builderForValue.build(); onChanged(); } else { leBuilder_.setMessage(builderForValue.build()); } expCase_ = 1; return this; } /** * .banyandb.model.v1.LogicalExpression le = 1; */ public Builder mergeLe(org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression value) { if (leBuilder_ == null) { if (expCase_ == 1 && exp_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance()) { exp_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_) .mergeFrom(value).buildPartial(); } else { exp_ = value; } onChanged(); } else { if (expCase_ == 1) { leBuilder_.mergeFrom(value); } else { leBuilder_.setMessage(value); } } expCase_ = 1; return this; } /** * .banyandb.model.v1.LogicalExpression le = 1; */ public Builder clearLe() { if (leBuilder_ == null) { if (expCase_ == 1) { expCase_ = 0; exp_ = null; onChanged(); } } else { if (expCase_ == 1) { expCase_ = 0; exp_ = null; } leBuilder_.clear(); } return this; } /** * .banyandb.model.v1.LogicalExpression le = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder getLeBuilder() { return getLeFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.LogicalExpression le = 1; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder getLeOrBuilder() { if ((expCase_ == 1) && (leBuilder_ != null)) { return leBuilder_.getMessageOrBuilder(); } else { if (expCase_ == 1) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } } /** * .banyandb.model.v1.LogicalExpression le = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder> getLeFieldBuilder() { if (leBuilder_ == null) { if (!(expCase_ == 1)) { exp_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } leBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) exp_, getParentForChildren(), isClean()); exp_ = null; } expCase_ = 1; onChanged(); return leBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder> conditionBuilder_; /** * .banyandb.model.v1.Condition condition = 2; * @return Whether the condition field is set. */ @java.lang.Override public boolean hasCondition() { return expCase_ == 2; } /** * .banyandb.model.v1.Condition condition = 2; * @return The condition. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getCondition() { if (conditionBuilder_ == null) { if (expCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } else { if (expCase_ == 2) { return conditionBuilder_.getMessage(); } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } } /** * .banyandb.model.v1.Condition condition = 2; */ public Builder setCondition(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition value) { if (conditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exp_ = value; onChanged(); } else { conditionBuilder_.setMessage(value); } expCase_ = 2; return this; } /** * .banyandb.model.v1.Condition condition = 2; */ public Builder setCondition( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder builderForValue) { if (conditionBuilder_ == null) { exp_ = builderForValue.build(); onChanged(); } else { conditionBuilder_.setMessage(builderForValue.build()); } expCase_ = 2; return this; } /** * .banyandb.model.v1.Condition condition = 2; */ public Builder mergeCondition(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition value) { if (conditionBuilder_ == null) { if (expCase_ == 2 && exp_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance()) { exp_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.newBuilder((org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_) .mergeFrom(value).buildPartial(); } else { exp_ = value; } onChanged(); } else { if (expCase_ == 2) { conditionBuilder_.mergeFrom(value); } else { conditionBuilder_.setMessage(value); } } expCase_ = 2; return this; } /** * .banyandb.model.v1.Condition condition = 2; */ public Builder clearCondition() { if (conditionBuilder_ == null) { if (expCase_ == 2) { expCase_ = 0; exp_ = null; onChanged(); } } else { if (expCase_ == 2) { expCase_ = 0; exp_ = null; } conditionBuilder_.clear(); } return this; } /** * .banyandb.model.v1.Condition condition = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder getConditionBuilder() { return getConditionFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Condition condition = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder getConditionOrBuilder() { if ((expCase_ == 2) && (conditionBuilder_ != null)) { return conditionBuilder_.getMessageOrBuilder(); } else { if (expCase_ == 2) { return (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_; } return org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } } /** * .banyandb.model.v1.Condition condition = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { if (!(expCase_ == 2)) { exp_ = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance(); } conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder>( (org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition) exp_, getParentForChildren(), isClean()); exp_ = null; } expCase_ = 2; onChanged(); return conditionBuilder_; } @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:banyandb.model.v1.Criteria) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.Criteria) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Criteria 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LogicalExpressionOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.LogicalExpression) com.google.protobuf.MessageOrBuilder { /** *
     * op is a logical operation
     * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return The enum numeric value on the wire for op. */ int getOpValue(); /** *
     * op is a logical operation
     * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return The op. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp getOp(); /** * .banyandb.model.v1.Criteria left = 2; * @return Whether the left field is set. */ boolean hasLeft(); /** * .banyandb.model.v1.Criteria left = 2; * @return The left. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getLeft(); /** * .banyandb.model.v1.Criteria left = 2; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getLeftOrBuilder(); /** * .banyandb.model.v1.Criteria right = 3; * @return Whether the right field is set. */ boolean hasRight(); /** * .banyandb.model.v1.Criteria right = 3; * @return The right. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getRight(); /** * .banyandb.model.v1.Criteria right = 3; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getRightOrBuilder(); } /** *
   * LogicalExpression supports logical operation
   * 
* * Protobuf type {@code banyandb.model.v1.LogicalExpression} */ public static final class LogicalExpression extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.LogicalExpression) LogicalExpressionOrBuilder { private static final long serialVersionUID = 0L; // Use LogicalExpression.newBuilder() to construct. private LogicalExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LogicalExpression() { op_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LogicalExpression(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_LogicalExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_LogicalExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder.class); } /** * Protobuf enum {@code banyandb.model.v1.LogicalExpression.LogicalOp} */ public enum LogicalOp implements com.google.protobuf.ProtocolMessageEnum { /** * LOGICAL_OP_UNSPECIFIED = 0; */ LOGICAL_OP_UNSPECIFIED(0), /** * LOGICAL_OP_AND = 1; */ LOGICAL_OP_AND(1), /** * LOGICAL_OP_OR = 2; */ LOGICAL_OP_OR(2), UNRECOGNIZED(-1), ; /** * LOGICAL_OP_UNSPECIFIED = 0; */ public static final int LOGICAL_OP_UNSPECIFIED_VALUE = 0; /** * LOGICAL_OP_AND = 1; */ public static final int LOGICAL_OP_AND_VALUE = 1; /** * LOGICAL_OP_OR = 2; */ public static final int LOGICAL_OP_OR_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LogicalOp valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static LogicalOp forNumber(int value) { switch (value) { case 0: return LOGICAL_OP_UNSPECIFIED; case 1: return LOGICAL_OP_AND; case 2: return LOGICAL_OP_OR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LogicalOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LogicalOp findValueByNumber(int number) { return LogicalOp.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDescriptor().getEnumTypes().get(0); } private static final LogicalOp[] VALUES = values(); public static LogicalOp valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LogicalOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:banyandb.model.v1.LogicalExpression.LogicalOp) } private int bitField0_; public static final int OP_FIELD_NUMBER = 1; private int op_ = 0; /** *
     * op is a logical operation
     * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** *
     * op is a logical operation
     * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return The op. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp getOp() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp.forNumber(op_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp.UNRECOGNIZED : result; } public static final int LEFT_FIELD_NUMBER = 2; private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria left_; /** * .banyandb.model.v1.Criteria left = 2; * @return Whether the left field is set. */ @java.lang.Override public boolean hasLeft() { return ((bitField0_ & 0x00000001) != 0); } /** * .banyandb.model.v1.Criteria left = 2; * @return The left. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getLeft() { return left_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : left_; } /** * .banyandb.model.v1.Criteria left = 2; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getLeftOrBuilder() { return left_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : left_; } public static final int RIGHT_FIELD_NUMBER = 3; private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria right_; /** * .banyandb.model.v1.Criteria right = 3; * @return Whether the right field is set. */ @java.lang.Override public boolean hasRight() { return ((bitField0_ & 0x00000002) != 0); } /** * .banyandb.model.v1.Criteria right = 3; * @return The right. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getRight() { return right_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : right_; } /** * .banyandb.model.v1.Criteria right = 3; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getRightOrBuilder() { return right_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : right_; } 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 (op_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp.LOGICAL_OP_UNSPECIFIED.getNumber()) { output.writeEnum(1, op_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getLeft()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getRight()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (op_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp.LOGICAL_OP_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, op_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLeft()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRight()); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) obj; if (op_ != other.op_) return false; if (hasLeft() != other.hasLeft()) return false; if (hasLeft()) { if (!getLeft() .equals(other.getLeft())) return false; } if (hasRight() != other.hasRight()) return false; if (hasRight()) { if (!getRight() .equals(other.getRight())) 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) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (hasLeft()) { hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft().hashCode(); } if (hasRight()) { hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression 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; } /** *
     * LogicalExpression supports logical operation
     * 
* * Protobuf type {@code banyandb.model.v1.LogicalExpression} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.LogicalExpression) org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpressionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_LogicalExpression_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_LogicalExpression_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLeftFieldBuilder(); getRightFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; op_ = 0; left_ = null; if (leftBuilder_ != null) { leftBuilder_.dispose(); leftBuilder_ = null; } right_ = null; if (rightBuilder_ != null) { rightBuilder_.dispose(); rightBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_LogicalExpression_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.op_ = op_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.left_ = leftBuilder_ == null ? left_ : leftBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.right_ = rightBuilder_ == null ? right_ : rightBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.getDefaultInstance()) return this; if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (other.hasLeft()) { mergeLeft(other.getLeft()); } if (other.hasRight()) { mergeRight(other.getRight()); } 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: { op_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getLeftFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getRightFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int op_ = 0; /** *
       * op is a logical operation
       * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** *
       * op is a logical operation
       * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { op_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * op is a logical operation
       * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return The op. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp getOp() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp.forNumber(op_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp.UNRECOGNIZED : result; } /** *
       * op is a logical operation
       * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression.LogicalOp value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; op_ = value.getNumber(); onChanged(); return this; } /** *
       * op is a logical operation
       * 
* * .banyandb.model.v1.LogicalExpression.LogicalOp op = 1; * @return This builder for chaining. */ public Builder clearOp() { bitField0_ = (bitField0_ & ~0x00000001); op_ = 0; onChanged(); return this; } private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria left_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder> leftBuilder_; /** * .banyandb.model.v1.Criteria left = 2; * @return Whether the left field is set. */ public boolean hasLeft() { return ((bitField0_ & 0x00000002) != 0); } /** * .banyandb.model.v1.Criteria left = 2; * @return The left. */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getLeft() { if (leftBuilder_ == null) { return left_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : left_; } else { return leftBuilder_.getMessage(); } } /** * .banyandb.model.v1.Criteria left = 2; */ public Builder setLeft(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) { if (leftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } left_ = value; } else { leftBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.Criteria left = 2; */ public Builder setLeft( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder builderForValue) { if (leftBuilder_ == null) { left_ = builderForValue.build(); } else { leftBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.Criteria left = 2; */ public Builder mergeLeft(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) { if (leftBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && left_ != null && left_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance()) { getLeftBuilder().mergeFrom(value); } else { left_ = value; } } else { leftBuilder_.mergeFrom(value); } if (left_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .banyandb.model.v1.Criteria left = 2; */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000002); left_ = null; if (leftBuilder_ != null) { leftBuilder_.dispose(); leftBuilder_ = null; } onChanged(); return this; } /** * .banyandb.model.v1.Criteria left = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder getLeftBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLeftFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Criteria left = 2; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getLeftOrBuilder() { if (leftBuilder_ != null) { return leftBuilder_.getMessageOrBuilder(); } else { return left_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : left_; } } /** * .banyandb.model.v1.Criteria left = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder> getLeftFieldBuilder() { if (leftBuilder_ == null) { leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder>( getLeft(), getParentForChildren(), isClean()); left_ = null; } return leftBuilder_; } private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria right_; private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder> rightBuilder_; /** * .banyandb.model.v1.Criteria right = 3; * @return Whether the right field is set. */ public boolean hasRight() { return ((bitField0_ & 0x00000004) != 0); } /** * .banyandb.model.v1.Criteria right = 3; * @return The right. */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getRight() { if (rightBuilder_ == null) { return right_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : right_; } else { return rightBuilder_.getMessage(); } } /** * .banyandb.model.v1.Criteria right = 3; */ public Builder setRight(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) { if (rightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } right_ = value; } else { rightBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .banyandb.model.v1.Criteria right = 3; */ public Builder setRight( org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder builderForValue) { if (rightBuilder_ == null) { right_ = builderForValue.build(); } else { rightBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .banyandb.model.v1.Criteria right = 3; */ public Builder mergeRight(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) { if (rightBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && right_ != null && right_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance()) { getRightBuilder().mergeFrom(value); } else { right_ = value; } } else { rightBuilder_.mergeFrom(value); } if (right_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .banyandb.model.v1.Criteria right = 3; */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000004); right_ = null; if (rightBuilder_ != null) { rightBuilder_.dispose(); rightBuilder_ = null; } onChanged(); return this; } /** * .banyandb.model.v1.Criteria right = 3; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder getRightBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRightFieldBuilder().getBuilder(); } /** * .banyandb.model.v1.Criteria right = 3; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getRightOrBuilder() { if (rightBuilder_ != null) { return rightBuilder_.getMessageOrBuilder(); } else { return right_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : right_; } } /** * .banyandb.model.v1.Criteria right = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder> getRightFieldBuilder() { if (rightBuilder_ == null) { rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder>( getRight(), getParentForChildren(), isClean()); right_ = null; } return rightBuilder_; } @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:banyandb.model.v1.LogicalExpression) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.LogicalExpression) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogicalExpression 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.LogicalExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryOrderOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.QueryOrder) com.google.protobuf.MessageOrBuilder { /** * string index_rule_name = 1; * @return The indexRuleName. */ java.lang.String getIndexRuleName(); /** * string index_rule_name = 1; * @return The bytes for indexRuleName. */ com.google.protobuf.ByteString getIndexRuleNameBytes(); /** * .banyandb.model.v1.Sort sort = 2; * @return The enum numeric value on the wire for sort. */ int getSortValue(); /** * .banyandb.model.v1.Sort sort = 2; * @return The sort. */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getSort(); } /** *
   * QueryOrder means a Sort operation to be done for a given index rule.
   * The index_rule_name refers to the name of a index rule bound to the subject.
   * 
* * Protobuf type {@code banyandb.model.v1.QueryOrder} */ public static final class QueryOrder extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.QueryOrder) QueryOrderOrBuilder { private static final long serialVersionUID = 0L; // Use QueryOrder.newBuilder() to construct. private QueryOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryOrder() { indexRuleName_ = ""; sort_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryOrder(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_QueryOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_QueryOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder.class); } public static final int INDEX_RULE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object indexRuleName_ = ""; /** * string index_rule_name = 1; * @return The indexRuleName. */ @java.lang.Override public java.lang.String getIndexRuleName() { java.lang.Object ref = indexRuleName_; 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(); indexRuleName_ = s; return s; } } /** * string index_rule_name = 1; * @return The bytes for indexRuleName. */ @java.lang.Override public com.google.protobuf.ByteString getIndexRuleNameBytes() { java.lang.Object ref = indexRuleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexRuleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SORT_FIELD_NUMBER = 2; private int sort_ = 0; /** * .banyandb.model.v1.Sort sort = 2; * @return The enum numeric value on the wire for sort. */ @java.lang.Override public int getSortValue() { return sort_; } /** * .banyandb.model.v1.Sort sort = 2; * @return The sort. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getSort() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.forNumber(sort_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexRuleName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexRuleName_); } if (sort_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.SORT_UNSPECIFIED.getNumber()) { output.writeEnum(2, sort_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexRuleName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexRuleName_); } if (sort_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.SORT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, sort_); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder) obj; if (!getIndexRuleName() .equals(other.getIndexRuleName())) return false; if (sort_ != other.sort_) 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) + INDEX_RULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getIndexRuleName().hashCode(); hash = (37 * hash) + SORT_FIELD_NUMBER; hash = (53 * hash) + sort_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder 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; } /** *
     * QueryOrder means a Sort operation to be done for a given index rule.
     * The index_rule_name refers to the name of a index rule bound to the subject.
     * 
* * Protobuf type {@code banyandb.model.v1.QueryOrder} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.QueryOrder) org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_QueryOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_QueryOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexRuleName_ = ""; sort_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_QueryOrder_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexRuleName_ = indexRuleName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sort_ = sort_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance()) return this; if (!other.getIndexRuleName().isEmpty()) { indexRuleName_ = other.indexRuleName_; bitField0_ |= 0x00000001; onChanged(); } if (other.sort_ != 0) { setSortValue(other.getSortValue()); } 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: { indexRuleName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { sort_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object indexRuleName_ = ""; /** * string index_rule_name = 1; * @return The indexRuleName. */ public java.lang.String getIndexRuleName() { java.lang.Object ref = indexRuleName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); indexRuleName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string index_rule_name = 1; * @return The bytes for indexRuleName. */ public com.google.protobuf.ByteString getIndexRuleNameBytes() { java.lang.Object ref = indexRuleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); indexRuleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string index_rule_name = 1; * @param value The indexRuleName to set. * @return This builder for chaining. */ public Builder setIndexRuleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } indexRuleName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string index_rule_name = 1; * @return This builder for chaining. */ public Builder clearIndexRuleName() { indexRuleName_ = getDefaultInstance().getIndexRuleName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string index_rule_name = 1; * @param value The bytes for indexRuleName to set. * @return This builder for chaining. */ public Builder setIndexRuleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); indexRuleName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int sort_ = 0; /** * .banyandb.model.v1.Sort sort = 2; * @return The enum numeric value on the wire for sort. */ @java.lang.Override public int getSortValue() { return sort_; } /** * .banyandb.model.v1.Sort sort = 2; * @param value The enum numeric value on the wire for sort to set. * @return This builder for chaining. */ public Builder setSortValue(int value) { sort_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .banyandb.model.v1.Sort sort = 2; * @return The sort. */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getSort() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.forNumber(sort_); return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.UNRECOGNIZED : result; } /** * .banyandb.model.v1.Sort sort = 2; * @param value The sort to set. * @return This builder for chaining. */ public Builder setSort(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; sort_ = value.getNumber(); onChanged(); return this; } /** * .banyandb.model.v1.Sort sort = 2; * @return This builder for chaining. */ public Builder clearSort() { bitField0_ = (bitField0_ & ~0x00000002); sort_ = 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:banyandb.model.v1.QueryOrder) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.QueryOrder) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QueryOrder 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TagProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.TagProjection) com.google.protobuf.MessageOrBuilder { /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ java.util.List getTagFamiliesList(); /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily getTagFamilies(int index); /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ int getTagFamiliesCount(); /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ java.util.List getTagFamiliesOrBuilderList(); /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder getTagFamiliesOrBuilder( int index); } /** *
   * TagProjection is used to select the names of keys to be returned.
   * 
* * Protobuf type {@code banyandb.model.v1.TagProjection} */ public static final class TagProjection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.TagProjection) TagProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use TagProjection.newBuilder() to construct. private TagProjection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagProjection() { tagFamilies_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TagProjection(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder.class); } public interface TagFamilyOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.TagProjection.TagFamily) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * repeated string tags = 2; * @return A list containing the tags. */ java.util.List getTagsList(); /** * repeated string tags = 2; * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 2; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 2; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); } /** * Protobuf type {@code banyandb.model.v1.TagProjection.TagFamily} */ public static final class TagFamily extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.TagProjection.TagFamily) TagFamilyOrBuilder { private static final long serialVersionUID = 0L; // Use TagFamily.newBuilder() to construct. private TagFamily(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TagFamily() { name_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TagFamily(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_TagFamily_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_TagFamily_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @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) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAGS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string tags = 2; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * repeated string tags = 2; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 2; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 2; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tags_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily) obj; if (!getName() .equals(other.getName())) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily 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 banyandb.model.v1.TagProjection.TagFamily} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.TagProjection.TagFamily) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_TagFamily_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_TagFamily_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_TagFamily_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } } @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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ |= 0x00000002; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; * @param value 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(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } bitField0_ |= 0x00000002; } /** * repeated string tags = 2; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** * repeated string tags = 2; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 2; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 2; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * repeated string tags = 2; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string tags = 2; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string tags = 2; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string tags = 2; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string tags = 2; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000002; 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:banyandb.model.v1.TagProjection.TagFamily) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.TagProjection.TagFamily) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagFamily 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int TAG_FAMILIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List tagFamilies_; /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ @java.lang.Override public java.util.List getTagFamiliesList() { return tagFamilies_; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ @java.lang.Override public java.util.List getTagFamiliesOrBuilderList() { return tagFamilies_; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ @java.lang.Override public int getTagFamiliesCount() { return tagFamilies_.size(); } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily getTagFamilies(int index) { return tagFamilies_.get(index); } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder getTagFamiliesOrBuilder( int index) { return tagFamilies_.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 { for (int i = 0; i < tagFamilies_.size(); i++) { output.writeMessage(1, tagFamilies_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tagFamilies_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tagFamilies_.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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection) obj; if (!getTagFamiliesList() .equals(other.getTagFamiliesList())) 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 (getTagFamiliesCount() > 0) { hash = (37 * hash) + TAG_FAMILIES_FIELD_NUMBER; hash = (53 * hash) + getTagFamiliesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection 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; } /** *
     * TagProjection is used to select the names of keys to be returned.
     * 
* * Protobuf type {@code banyandb.model.v1.TagProjection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.TagProjection) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (tagFamiliesBuilder_ == null) { tagFamilies_ = java.util.Collections.emptyList(); } else { tagFamilies_ = null; tagFamiliesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TagProjection_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection result) { if (tagFamiliesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tagFamilies_ = java.util.Collections.unmodifiableList(tagFamilies_); bitField0_ = (bitField0_ & ~0x00000001); } result.tagFamilies_ = tagFamilies_; } else { result.tagFamilies_ = tagFamiliesBuilder_.build(); } } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance()) return this; if (tagFamiliesBuilder_ == null) { if (!other.tagFamilies_.isEmpty()) { if (tagFamilies_.isEmpty()) { tagFamilies_ = other.tagFamilies_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagFamiliesIsMutable(); tagFamilies_.addAll(other.tagFamilies_); } onChanged(); } } else { if (!other.tagFamilies_.isEmpty()) { if (tagFamiliesBuilder_.isEmpty()) { tagFamiliesBuilder_.dispose(); tagFamiliesBuilder_ = null; tagFamilies_ = other.tagFamilies_; bitField0_ = (bitField0_ & ~0x00000001); tagFamiliesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTagFamiliesFieldBuilder() : null; } else { tagFamiliesBuilder_.addAllMessages(other.tagFamilies_); } } } 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: { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily m = input.readMessage( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.parser(), extensionRegistry); if (tagFamiliesBuilder_ == null) { ensureTagFamiliesIsMutable(); tagFamilies_.add(m); } else { tagFamiliesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List tagFamilies_ = java.util.Collections.emptyList(); private void ensureTagFamiliesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tagFamilies_ = new java.util.ArrayList(tagFamilies_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder> tagFamiliesBuilder_; /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public java.util.List getTagFamiliesList() { if (tagFamiliesBuilder_ == null) { return java.util.Collections.unmodifiableList(tagFamilies_); } else { return tagFamiliesBuilder_.getMessageList(); } } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public int getTagFamiliesCount() { if (tagFamiliesBuilder_ == null) { return tagFamilies_.size(); } else { return tagFamiliesBuilder_.getCount(); } } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily getTagFamilies(int index) { if (tagFamiliesBuilder_ == null) { return tagFamilies_.get(index); } else { return tagFamiliesBuilder_.getMessage(index); } } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder setTagFamilies( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily value) { if (tagFamiliesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagFamiliesIsMutable(); tagFamilies_.set(index, value); onChanged(); } else { tagFamiliesBuilder_.setMessage(index, value); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder setTagFamilies( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder builderForValue) { if (tagFamiliesBuilder_ == null) { ensureTagFamiliesIsMutable(); tagFamilies_.set(index, builderForValue.build()); onChanged(); } else { tagFamiliesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder addTagFamilies(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily value) { if (tagFamiliesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagFamiliesIsMutable(); tagFamilies_.add(value); onChanged(); } else { tagFamiliesBuilder_.addMessage(value); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder addTagFamilies( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily value) { if (tagFamiliesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTagFamiliesIsMutable(); tagFamilies_.add(index, value); onChanged(); } else { tagFamiliesBuilder_.addMessage(index, value); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder addTagFamilies( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder builderForValue) { if (tagFamiliesBuilder_ == null) { ensureTagFamiliesIsMutable(); tagFamilies_.add(builderForValue.build()); onChanged(); } else { tagFamiliesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder addTagFamilies( int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder builderForValue) { if (tagFamiliesBuilder_ == null) { ensureTagFamiliesIsMutable(); tagFamilies_.add(index, builderForValue.build()); onChanged(); } else { tagFamiliesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder addAllTagFamilies( java.lang.Iterable values) { if (tagFamiliesBuilder_ == null) { ensureTagFamiliesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tagFamilies_); onChanged(); } else { tagFamiliesBuilder_.addAllMessages(values); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder clearTagFamilies() { if (tagFamiliesBuilder_ == null) { tagFamilies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tagFamiliesBuilder_.clear(); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public Builder removeTagFamilies(int index) { if (tagFamiliesBuilder_ == null) { ensureTagFamiliesIsMutable(); tagFamilies_.remove(index); onChanged(); } else { tagFamiliesBuilder_.remove(index); } return this; } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder getTagFamiliesBuilder( int index) { return getTagFamiliesFieldBuilder().getBuilder(index); } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder getTagFamiliesOrBuilder( int index) { if (tagFamiliesBuilder_ == null) { return tagFamilies_.get(index); } else { return tagFamiliesBuilder_.getMessageOrBuilder(index); } } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public java.util.List getTagFamiliesOrBuilderList() { if (tagFamiliesBuilder_ != null) { return tagFamiliesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tagFamilies_); } } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder addTagFamiliesBuilder() { return getTagFamiliesFieldBuilder().addBuilder( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.getDefaultInstance()); } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder addTagFamiliesBuilder( int index) { return getTagFamiliesFieldBuilder().addBuilder( index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.getDefaultInstance()); } /** * repeated .banyandb.model.v1.TagProjection.TagFamily tag_families = 1; */ public java.util.List getTagFamiliesBuilderList() { return getTagFamiliesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder> getTagFamiliesFieldBuilder() { if (tagFamiliesBuilder_ == null) { tagFamiliesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamily.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.TagFamilyOrBuilder>( tagFamilies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tagFamilies_ = null; } return tagFamiliesBuilder_; } @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:banyandb.model.v1.TagProjection) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.TagProjection) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TagProjection 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:banyandb.model.v1.TimeRange) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp begin = 1; * @return Whether the begin field is set. */ boolean hasBegin(); /** * .google.protobuf.Timestamp begin = 1; * @return The begin. */ com.google.protobuf.Timestamp getBegin(); /** * .google.protobuf.Timestamp begin = 1; */ com.google.protobuf.TimestampOrBuilder getBeginOrBuilder(); /** * .google.protobuf.Timestamp end = 2; * @return Whether the end field is set. */ boolean hasEnd(); /** * .google.protobuf.Timestamp end = 2; * @return The end. */ com.google.protobuf.Timestamp getEnd(); /** * .google.protobuf.Timestamp end = 2; */ com.google.protobuf.TimestampOrBuilder getEndOrBuilder(); } /** *
   * TimeRange is a range query for uint64,
   * the range here follows left-inclusive and right-exclusive rule, i.e. [begin, end) if both edges exist
   * 
* * Protobuf type {@code banyandb.model.v1.TimeRange} */ public static final class TimeRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:banyandb.model.v1.TimeRange) TimeRangeOrBuilder { private static final long serialVersionUID = 0L; // Use TimeRange.newBuilder() to construct. private TimeRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeRange() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TimeRange(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TimeRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TimeRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder.class); } private int bitField0_; public static final int BEGIN_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp begin_; /** * .google.protobuf.Timestamp begin = 1; * @return Whether the begin field is set. */ @java.lang.Override public boolean hasBegin() { return ((bitField0_ & 0x00000001) != 0); } /** * .google.protobuf.Timestamp begin = 1; * @return The begin. */ @java.lang.Override public com.google.protobuf.Timestamp getBegin() { return begin_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : begin_; } /** * .google.protobuf.Timestamp begin = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getBeginOrBuilder() { return begin_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : begin_; } public static final int END_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp end_; /** * .google.protobuf.Timestamp end = 2; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** * .google.protobuf.Timestamp end = 2; * @return The end. */ @java.lang.Override public com.google.protobuf.Timestamp getEnd() { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } /** * .google.protobuf.Timestamp end = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } 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)) { output.writeMessage(1, getBegin()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getEnd()); } 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.CodedOutputStream .computeMessageSize(1, getBegin()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEnd()); } 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange)) { return super.equals(obj); } org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange other = (org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange) obj; if (hasBegin() != other.hasBegin()) return false; if (hasBegin()) { if (!getBegin() .equals(other.getBegin())) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (!getEnd() .equals(other.getEnd())) 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 (hasBegin()) { hash = (37 * hash) + BEGIN_FIELD_NUMBER; hash = (53 * hash) + getBegin().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange 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(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange 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; } /** *
     * TimeRange is a range query for uint64,
     * the range here follows left-inclusive and right-exclusive rule, i.e. [begin, end) if both edges exist
     * 
* * Protobuf type {@code banyandb.model.v1.TimeRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:banyandb.model.v1.TimeRange) org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TimeRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TimeRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.class, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder.class); } // Construct using org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBeginFieldBuilder(); getEndFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; begin_ = null; if (beginBuilder_ != null) { beginBuilder_.dispose(); beginBuilder_ = null; } end_ = null; if (endBuilder_ != null) { endBuilder_.dispose(); endBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.internal_static_banyandb_model_v1_TimeRange_descriptor; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getDefaultInstanceForType() { return org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance(); } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange build() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange buildPartial() { org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange result = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.begin_ = beginBuilder_ == null ? begin_ : beginBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.end_ = endBuilder_ == null ? end_ : endBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange) { return mergeFrom((org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange other) { if (other == org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance()) return this; if (other.hasBegin()) { mergeBegin(other.getBegin()); } if (other.hasEnd()) { mergeEnd(other.getEnd()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBeginFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getEndFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Timestamp begin_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> beginBuilder_; /** * .google.protobuf.Timestamp begin = 1; * @return Whether the begin field is set. */ public boolean hasBegin() { return ((bitField0_ & 0x00000001) != 0); } /** * .google.protobuf.Timestamp begin = 1; * @return The begin. */ public com.google.protobuf.Timestamp getBegin() { if (beginBuilder_ == null) { return begin_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : begin_; } else { return beginBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp begin = 1; */ public Builder setBegin(com.google.protobuf.Timestamp value) { if (beginBuilder_ == null) { if (value == null) { throw new NullPointerException(); } begin_ = value; } else { beginBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp begin = 1; */ public Builder setBegin( com.google.protobuf.Timestamp.Builder builderForValue) { if (beginBuilder_ == null) { begin_ = builderForValue.build(); } else { beginBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .google.protobuf.Timestamp begin = 1; */ public Builder mergeBegin(com.google.protobuf.Timestamp value) { if (beginBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && begin_ != null && begin_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getBeginBuilder().mergeFrom(value); } else { begin_ = value; } } else { beginBuilder_.mergeFrom(value); } if (begin_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .google.protobuf.Timestamp begin = 1; */ public Builder clearBegin() { bitField0_ = (bitField0_ & ~0x00000001); begin_ = null; if (beginBuilder_ != null) { beginBuilder_.dispose(); beginBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.Timestamp begin = 1; */ public com.google.protobuf.Timestamp.Builder getBeginBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBeginFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp begin = 1; */ public com.google.protobuf.TimestampOrBuilder getBeginOrBuilder() { if (beginBuilder_ != null) { return beginBuilder_.getMessageOrBuilder(); } else { return begin_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : begin_; } } /** * .google.protobuf.Timestamp begin = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getBeginFieldBuilder() { if (beginBuilder_ == null) { beginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getBegin(), getParentForChildren(), isClean()); begin_ = null; } return beginBuilder_; } private com.google.protobuf.Timestamp end_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_; /** * .google.protobuf.Timestamp end = 2; * @return Whether the end field is set. */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) != 0); } /** * .google.protobuf.Timestamp end = 2; * @return The end. */ public com.google.protobuf.Timestamp getEnd() { if (endBuilder_ == null) { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } else { return endBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp end = 2; */ public Builder setEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (value == null) { throw new NullPointerException(); } end_ = value; } else { endBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .google.protobuf.Timestamp end = 2; */ public Builder setEnd( com.google.protobuf.Timestamp.Builder builderForValue) { if (endBuilder_ == null) { end_ = builderForValue.build(); } else { endBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .google.protobuf.Timestamp end = 2; */ public Builder mergeEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && end_ != null && end_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndBuilder().mergeFrom(value); } else { end_ = value; } } else { endBuilder_.mergeFrom(value); } if (end_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .google.protobuf.Timestamp end = 2; */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = null; if (endBuilder_ != null) { endBuilder_.dispose(); endBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.Timestamp end = 2; */ public com.google.protobuf.Timestamp.Builder getEndBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEndFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp end = 2; */ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { if (endBuilder_ != null) { return endBuilder_.getMessageOrBuilder(); } else { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } } /** * .google.protobuf.Timestamp end = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndFieldBuilder() { if (endBuilder_ == null) { endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEnd(), getParentForChildren(), isClean()); end_ = null; } return endBuilder_; } @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:banyandb.model.v1.TimeRange) } // @@protoc_insertion_point(class_scope:banyandb.model.v1.TimeRange) private static final org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange(); } public static org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeRange 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Str_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Str_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Int_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Int_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Float_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Float_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_StrArray_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_StrArray_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_IntArray_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_IntArray_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_TagValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_TagValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_TagFamilyForWrite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_TagFamilyForWrite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_FieldValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_FieldValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Tag_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Tag_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_TagFamily_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_TagFamily_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Condition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Condition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Condition_MatchOption_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Condition_MatchOption_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_Criteria_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_Criteria_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_LogicalExpression_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_LogicalExpression_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_QueryOrder_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_QueryOrder_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_TagProjection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_TagProjection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_TagProjection_TagFamily_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_TagProjection_TagFamily_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_banyandb_model_v1_TimeRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_banyandb_model_v1_TimeRange_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 banyandb/v1/banyandb-model.proto\022\021bany" + "andb.model.v1\032\037google/protobuf/timestamp" + ".proto\032\034google/protobuf/struct.proto\032\027va" + "lidate/validate.proto\"\024\n\003Str\022\r\n\005value\030\001 " + "\001(\t\"\024\n\003Int\022\r\n\005value\030\001 \001(\003\"\026\n\005Float\022\r\n\005va" + "lue\030\001 \001(\001\"\031\n\010StrArray\022\r\n\005value\030\001 \003(\t\"\031\n\010" + "IntArray\022\r\n\005value\030\001 \003(\003\"\210\002\n\010TagValue\022*\n\004" + "null\030\001 \001(\0162\032.google.protobuf.NullValueH\000" + "\022%\n\003str\030\002 \001(\0132\026.banyandb.model.v1.StrH\000\022" + "0\n\tstr_array\030\003 \001(\0132\033.banyandb.model.v1.S" + "trArrayH\000\022%\n\003int\030\004 \001(\0132\026.banyandb.model." + "v1.IntH\000\0220\n\tint_array\030\005 \001(\0132\033.banyandb.m" + "odel.v1.IntArrayH\000\022\025\n\013binary_data\030\006 \001(\014H" + "\000B\007\n\005value\">\n\021TagFamilyForWrite\022)\n\004tags\030" + "\001 \003(\0132\033.banyandb.model.v1.TagValue\"\321\001\n\nF" + "ieldValue\022*\n\004null\030\001 \001(\0162\032.google.protobu" + "f.NullValueH\000\022%\n\003str\030\002 \001(\0132\026.banyandb.mo" + "del.v1.StrH\000\022%\n\003int\030\003 \001(\0132\026.banyandb.mod" + "el.v1.IntH\000\022\025\n\013binary_data\030\004 \001(\014H\000\022)\n\005fl" + "oat\030\005 \001(\0132\030.banyandb.model.v1.FloatH\000B\007\n" + "\005value\">\n\003Tag\022\013\n\003key\030\001 \001(\t\022*\n\005value\030\002 \001(" + "\0132\033.banyandb.model.v1.TagValue\"?\n\tTagFam" + "ily\022\014\n\004name\030\001 \001(\t\022$\n\004tags\030\002 \003(\0132\026.banyan" + "db.model.v1.Tag\"\351\004\n\tCondition\022\014\n\004name\030\001 " + "\001(\t\0221\n\002op\030\002 \001(\0162%.banyandb.model.v1.Cond" + "ition.BinaryOp\022*\n\005value\030\003 \001(\0132\033.banyandb" + ".model.v1.TagValue\022>\n\014match_option\030\004 \001(\013" + "2(.banyandb.model.v1.Condition.MatchOpti" + "on\032\255\001\n\013MatchOption\022\020\n\010analyzer\030\001 \001(\t\022C\n\010" + "operator\030\002 \001(\01621.banyandb.model.v1.Condi" + "tion.MatchOption.Operator\"G\n\010Operator\022\030\n" + "\024OPERATOR_UNSPECIFIED\020\000\022\020\n\014OPERATOR_AND\020" + "\001\022\017\n\013OPERATOR_OR\020\002\"\376\001\n\010BinaryOp\022\031\n\025BINAR" + "Y_OP_UNSPECIFIED\020\000\022\020\n\014BINARY_OP_EQ\020\001\022\020\n\014" + "BINARY_OP_NE\020\002\022\020\n\014BINARY_OP_LT\020\003\022\020\n\014BINA" + "RY_OP_GT\020\004\022\020\n\014BINARY_OP_LE\020\005\022\020\n\014BINARY_O" + "P_GE\020\006\022\024\n\020BINARY_OP_HAVING\020\007\022\030\n\024BINARY_O" + "P_NOT_HAVING\020\010\022\020\n\014BINARY_OP_IN\020\t\022\024\n\020BINA" + "RY_OP_NOT_IN\020\n\022\023\n\017BINARY_OP_MATCH\020\013\"x\n\010C" + "riteria\0222\n\002le\030\001 \001(\0132$.banyandb.model.v1." + "LogicalExpressionH\000\0221\n\tcondition\030\002 \001(\0132\034" + ".banyandb.model.v1.ConditionH\000B\005\n\003exp\"\366\001" + "\n\021LogicalExpression\022:\n\002op\030\001 \001(\0162..banyan" + "db.model.v1.LogicalExpression.LogicalOp\022" + ")\n\004left\030\002 \001(\0132\033.banyandb.model.v1.Criter" + "ia\022*\n\005right\030\003 \001(\0132\033.banyandb.model.v1.Cr" + "iteria\"N\n\tLogicalOp\022\032\n\026LOGICAL_OP_UNSPEC" + "IFIED\020\000\022\022\n\016LOGICAL_OP_AND\020\001\022\021\n\rLOGICAL_O" + "P_OR\020\002\"L\n\nQueryOrder\022\027\n\017index_rule_name\030" + "\001 \001(\t\022%\n\004sort\030\002 \001(\0162\027.banyandb.model.v1." + "Sort\"z\n\rTagProjection\022@\n\014tag_families\030\001 " + "\003(\0132*.banyandb.model.v1.TagProjection.Ta" + "gFamily\032\'\n\tTagFamily\022\014\n\004name\030\001 \001(\t\022\014\n\004ta" + "gs\030\002 \003(\t\"_\n\tTimeRange\022)\n\005begin\030\001 \001(\0132\032.g" + "oogle.protobuf.Timestamp\022\'\n\003end\030\002 \001(\0132\032." + "google.protobuf.Timestamp*\324\001\n\023Aggregatio" + "nFunction\022$\n AGGREGATION_FUNCTION_UNSPEC" + "IFIED\020\000\022\035\n\031AGGREGATION_FUNCTION_MEAN\020\001\022\034" + "\n\030AGGREGATION_FUNCTION_MAX\020\002\022\034\n\030AGGREGAT" + "ION_FUNCTION_MIN\020\003\022\036\n\032AGGREGATION_FUNCTI" + "ON_COUNT\020\004\022\034\n\030AGGREGATION_FUNCTION_SUM\020\005" + "*\374\002\n\020MeasureAggregate\022!\n\035MEASURE_AGGREGA" + "TE_UNSPECIFIED\020\000\022\031\n\025MEASURE_AGGREGATE_MI" + "N\020\001\022\031\n\025MEASURE_AGGREGATE_MAX\020\002\022\033\n\027MEASUR" + "E_AGGREGATE_COUNT\020\003\022\031\n\025MEASURE_AGGREGATE" + "_SUM\020\004\022\031\n\025MEASURE_AGGREGATE_AVG\020\005\022\035\n\031MEA" + "SURE_AGGREGATE_PERCENT\020\006\022\032\n\026MEASURE_AGGR" + "EGATE_RATE\020\007\022\037\n\033MEASURE_AGGREGATE_HISTOG" + "RAM\020\010\022!\n\035MEASURE_AGGREGATE_PERCENTILE2\020\t" + "\022\033\n\027MEASURE_AGGREGATE_APDEX\020\n\022 \n\034MEASURE" + "_AGGREGATE_PERCENTILE\020\013*9\n\004Sort\022\024\n\020SORT_" + "UNSPECIFIED\020\000\022\r\n\tSORT_DESC\020\001\022\014\n\010SORT_ASC" + "\020\002*\236\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\022\n" + "\016STATUS_SUCCEED\020\001\022\034\n\030STATUS_INVALID_TIME" + "STAMP\020\002\022\024\n\020STATUS_NOT_FOUND\020\003\022\031\n\025STATUS_" + "EXPIRED_SCHEMA\020\004\022\031\n\025STATUS_INTERNAL_ERRO" + "R\020\005B)\n\'org.apache.skywalking.banyandb.mo" + "del.v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), io.envoyproxy.pgv.validate.Validate.getDescriptor(), }); internal_static_banyandb_model_v1_Str_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_banyandb_model_v1_Str_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Str_descriptor, new java.lang.String[] { "Value", }); internal_static_banyandb_model_v1_Int_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_banyandb_model_v1_Int_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Int_descriptor, new java.lang.String[] { "Value", }); internal_static_banyandb_model_v1_Float_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_banyandb_model_v1_Float_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Float_descriptor, new java.lang.String[] { "Value", }); internal_static_banyandb_model_v1_StrArray_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_banyandb_model_v1_StrArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_StrArray_descriptor, new java.lang.String[] { "Value", }); internal_static_banyandb_model_v1_IntArray_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_banyandb_model_v1_IntArray_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_IntArray_descriptor, new java.lang.String[] { "Value", }); internal_static_banyandb_model_v1_TagValue_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_banyandb_model_v1_TagValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_TagValue_descriptor, new java.lang.String[] { "Null", "Str", "StrArray", "Int", "IntArray", "BinaryData", "Value", }); internal_static_banyandb_model_v1_TagFamilyForWrite_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_banyandb_model_v1_TagFamilyForWrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_TagFamilyForWrite_descriptor, new java.lang.String[] { "Tags", }); internal_static_banyandb_model_v1_FieldValue_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_banyandb_model_v1_FieldValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_FieldValue_descriptor, new java.lang.String[] { "Null", "Str", "Int", "BinaryData", "Float", "Value", }); internal_static_banyandb_model_v1_Tag_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_banyandb_model_v1_Tag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Tag_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_banyandb_model_v1_TagFamily_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_banyandb_model_v1_TagFamily_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_TagFamily_descriptor, new java.lang.String[] { "Name", "Tags", }); internal_static_banyandb_model_v1_Condition_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_banyandb_model_v1_Condition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Condition_descriptor, new java.lang.String[] { "Name", "Op", "Value", "MatchOption", }); internal_static_banyandb_model_v1_Condition_MatchOption_descriptor = internal_static_banyandb_model_v1_Condition_descriptor.getNestedTypes().get(0); internal_static_banyandb_model_v1_Condition_MatchOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Condition_MatchOption_descriptor, new java.lang.String[] { "Analyzer", "Operator", }); internal_static_banyandb_model_v1_Criteria_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_banyandb_model_v1_Criteria_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_Criteria_descriptor, new java.lang.String[] { "Le", "Condition", "Exp", }); internal_static_banyandb_model_v1_LogicalExpression_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_banyandb_model_v1_LogicalExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_LogicalExpression_descriptor, new java.lang.String[] { "Op", "Left", "Right", }); internal_static_banyandb_model_v1_QueryOrder_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_banyandb_model_v1_QueryOrder_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_QueryOrder_descriptor, new java.lang.String[] { "IndexRuleName", "Sort", }); internal_static_banyandb_model_v1_TagProjection_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_banyandb_model_v1_TagProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_TagProjection_descriptor, new java.lang.String[] { "TagFamilies", }); internal_static_banyandb_model_v1_TagProjection_TagFamily_descriptor = internal_static_banyandb_model_v1_TagProjection_descriptor.getNestedTypes().get(0); internal_static_banyandb_model_v1_TagProjection_TagFamily_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_TagProjection_TagFamily_descriptor, new java.lang.String[] { "Name", "Tags", }); internal_static_banyandb_model_v1_TimeRange_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_banyandb_model_v1_TimeRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_banyandb_model_v1_TimeRange_descriptor, new java.lang.String[] { "Begin", "End", }); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); io.envoyproxy.pgv.validate.Validate.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy