org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: banyandb/v1/banyandb-measure.proto
// Protobuf Java Version: 3.25.3
package org.apache.skywalking.banyandb.measure.v1;
public final class BanyandbMeasure {
private BanyandbMeasure() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface DataPointOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.DataPoint)
com.google.protobuf.MessageOrBuilder {
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
java.util.List
getTagFamiliesList();
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getTagFamilies(int index);
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
int getTagFamiliesCount();
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>
getTagFamiliesOrBuilderList();
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder getTagFamiliesOrBuilder(
int index);
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
java.util.List
getFieldsList();
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field getFields(int index);
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
int getFieldsCount();
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder>
getFieldsOrBuilderList();
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
* DataPoint is stored in Measures
*
*
* Protobuf type {@code banyandb.measure.v1.DataPoint}
*/
public static final class DataPoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.DataPoint)
DataPointOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataPoint.newBuilder() to construct.
private DataPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataPoint() {
tagFamilies_ = java.util.Collections.emptyList();
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataPoint();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder.class);
}
public interface FieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.DataPoint.Field)
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.FieldValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return The value.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getValue();
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code banyandb.measure.v1.DataPoint.Field}
*/
public static final class Field extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.DataPoint.Field)
FieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use Field.newBuilder() to construct.
private Field(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Field() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Field();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_Field_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder.class);
}
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 VALUE_FIELD_NUMBER = 2;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value_;
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return The value.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getValue() {
return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance() : value_;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getValueOrBuilder() {
return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
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.measure.v1.BanyandbMeasure.DataPoint.Field)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field) obj;
if (!getName()
.equals(other.getName())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().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.measure.v1.BanyandbMeasure.DataPoint.Field parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field 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.measure.v1.BanyandbMeasure.DataPoint.Field parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field 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.measure.v1.BanyandbMeasure.DataPoint.Field parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field 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.measure.v1.BanyandbMeasure.DataPoint.Field parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field 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.measure.v1.BanyandbMeasure.DataPoint.Field parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field 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.measure.v1.BanyandbMeasure.DataPoint.Field 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.measure.v1.DataPoint.Field}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.DataPoint.Field)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_Field_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.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;
name_ = "";
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.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_Field_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
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.measure.v1.BanyandbMeasure.DataPoint.Field) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
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: {
name_ = 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 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 org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder> valueBuilder_;
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return The value.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder setValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder setValue(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder mergeValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance() : value_;
}
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>(
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.measure.v1.DataPoint.Field)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.DataPoint.Field)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Field 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.measure.v1.BanyandbMeasure.DataPoint.Field getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
public static final int TAG_FAMILIES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List tagFamilies_;
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
@java.lang.Override
public java.util.List getTagFamiliesList() {
return tagFamilies_;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>
getTagFamiliesOrBuilderList() {
return tagFamilies_;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
@java.lang.Override
public int getTagFamiliesCount() {
return tagFamilies_.size();
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getTagFamilies(int index) {
return tagFamilies_.get(index);
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder getTagFamiliesOrBuilder(
int index) {
return tagFamilies_.get(index);
}
public static final int FIELDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field getFields(int index) {
return fields_.get(index);
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
output.writeMessage(2, tagFamilies_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(3, fields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tagFamilies_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, fields_.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.measure.v1.BanyandbMeasure.DataPoint)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!getTagFamiliesList()
.equals(other.getTagFamiliesList())) return false;
if (!getFieldsList()
.equals(other.getFieldsList())) 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 (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
if (getTagFamiliesCount() > 0) {
hash = (37 * hash) + TAG_FAMILIES_FIELD_NUMBER;
hash = (53 * hash) + getTagFamiliesList().hashCode();
}
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint 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.measure.v1.BanyandbMeasure.DataPoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint 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.measure.v1.BanyandbMeasure.DataPoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint 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.measure.v1.BanyandbMeasure.DataPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint 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.measure.v1.BanyandbMeasure.DataPoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint 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.measure.v1.BanyandbMeasure.DataPoint 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;
}
/**
*
* DataPoint is stored in Measures
*
*
* Protobuf type {@code banyandb.measure.v1.DataPoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.DataPoint)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
getTagFamiliesFieldBuilder();
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
} else {
tagFamilies_ = null;
tagFamiliesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPoint_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint result) {
if (tagFamiliesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
tagFamilies_ = java.util.Collections.unmodifiableList(tagFamilies_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tagFamilies_ = tagFamilies_;
} else {
result.tagFamilies_ = tagFamiliesBuilder_.build();
}
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.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.measure.v1.BanyandbMeasure.DataPoint) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (tagFamiliesBuilder_ == null) {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamilies_.isEmpty()) {
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTagFamiliesIsMutable();
tagFamilies_.addAll(other.tagFamilies_);
}
onChanged();
}
} else {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamiliesBuilder_.isEmpty()) {
tagFamiliesBuilder_.dispose();
tagFamiliesBuilder_ = null;
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000002);
tagFamiliesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagFamiliesFieldBuilder() : null;
} else {
tagFamiliesBuilder_.addAllMessages(other.tagFamilies_);
}
}
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000004);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
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(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily m =
input.readMessage(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.parser(),
extensionRegistry);
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.add(m);
} else {
tagFamiliesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field m =
input.readMessage(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private java.util.List tagFamilies_ =
java.util.Collections.emptyList();
private void ensureTagFamiliesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tagFamilies_ = new java.util.ArrayList(tagFamilies_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder> tagFamiliesBuilder_;
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public java.util.List getTagFamiliesList() {
if (tagFamiliesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tagFamilies_);
} else {
return tagFamiliesBuilder_.getMessageList();
}
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public int getTagFamiliesCount() {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.size();
} else {
return tagFamiliesBuilder_.getCount();
}
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getTagFamilies(int index) {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.get(index);
} else {
return tagFamiliesBuilder_.getMessage(index);
}
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder setTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily value) {
if (tagFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagFamiliesIsMutable();
tagFamilies_.set(index, value);
onChanged();
} else {
tagFamiliesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder setTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder builderForValue) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.set(index, builderForValue.build());
onChanged();
} else {
tagFamiliesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder addTagFamilies(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily value) {
if (tagFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagFamiliesIsMutable();
tagFamilies_.add(value);
onChanged();
} else {
tagFamiliesBuilder_.addMessage(value);
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder addTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily value) {
if (tagFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagFamiliesIsMutable();
tagFamilies_.add(index, value);
onChanged();
} else {
tagFamiliesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder addTagFamilies(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder builderForValue) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.add(builderForValue.build());
onChanged();
} else {
tagFamiliesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder addTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder builderForValue) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.add(index, builderForValue.build());
onChanged();
} else {
tagFamiliesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder addAllTagFamilies(
java.lang.Iterable extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily> values) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tagFamilies_);
onChanged();
} else {
tagFamiliesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder clearTagFamilies() {
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
tagFamiliesBuilder_.clear();
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public Builder removeTagFamilies(int index) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.remove(index);
onChanged();
} else {
tagFamiliesBuilder_.remove(index);
}
return this;
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder getTagFamiliesBuilder(
int index) {
return getTagFamiliesFieldBuilder().getBuilder(index);
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder getTagFamiliesOrBuilder(
int index) {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.get(index); } else {
return tagFamiliesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>
getTagFamiliesOrBuilderList() {
if (tagFamiliesBuilder_ != null) {
return tagFamiliesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tagFamilies_);
}
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder addTagFamiliesBuilder() {
return getTagFamiliesFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.getDefaultInstance());
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder addTagFamiliesBuilder(
int index) {
return getTagFamiliesFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.getDefaultInstance());
}
/**
*
* tag_families contains tags selected in the projection
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 2;
*/
public java.util.List
getTagFamiliesBuilderList() {
return getTagFamiliesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>
getTagFamiliesFieldBuilder() {
if (tagFamiliesBuilder_ == null) {
tagFamiliesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>(
tagFamilies_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
tagFamilies_ = null;
}
return tagFamiliesBuilder_;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder> fieldsBuilder_;
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder setFields(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder setFields(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder addFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder addFields(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder addFields(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder addFields(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder addAllFields(
java.lang.Iterable extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.getDefaultInstance());
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.getDefaultInstance());
}
/**
*
* fields contains fields selected in the projection
*
*
* repeated .banyandb.measure.v1.DataPoint.Field fields = 3;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Field.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.FieldOrBuilder>(
fields_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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.measure.v1.DataPoint)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.DataPoint)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataPoint 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.measure.v1.BanyandbMeasure.DataPoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.QueryResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
java.util.List
getDataPointsList();
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint getDataPoints(int index);
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
int getDataPointsCount();
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder>
getDataPointsOrBuilderList();
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder getDataPointsOrBuilder(
int index);
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
* @return Whether the trace field is set.
*/
boolean hasTrace();
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
* @return The trace.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace getTrace();
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder getTraceOrBuilder();
}
/**
*
* QueryResponse is the response for a query to the Query module.
*
*
* Protobuf type {@code banyandb.measure.v1.QueryResponse}
*/
public static final class QueryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.QueryResponse)
QueryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryResponse.newBuilder() to construct.
private QueryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryResponse() {
dataPoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.Builder.class);
}
private int bitField0_;
public static final int DATA_POINTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List dataPoints_;
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
@java.lang.Override
public java.util.List getDataPointsList() {
return dataPoints_;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder>
getDataPointsOrBuilderList() {
return dataPoints_;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
@java.lang.Override
public int getDataPointsCount() {
return dataPoints_.size();
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint getDataPoints(int index) {
return dataPoints_.get(index);
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder getDataPointsOrBuilder(
int index) {
return dataPoints_.get(index);
}
public static final int TRACE_FIELD_NUMBER = 2;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace trace_;
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
* @return Whether the trace field is set.
*/
@java.lang.Override
public boolean hasTrace() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
* @return The trace.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace getTrace() {
return trace_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance() : trace_;
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder getTraceOrBuilder() {
return trace_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance() : trace_;
}
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 < dataPoints_.size(); i++) {
output.writeMessage(1, dataPoints_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTrace());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dataPoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, dataPoints_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTrace());
}
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.measure.v1.BanyandbMeasure.QueryResponse)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse) obj;
if (!getDataPointsList()
.equals(other.getDataPointsList())) return false;
if (hasTrace() != other.hasTrace()) return false;
if (hasTrace()) {
if (!getTrace()
.equals(other.getTrace())) 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 (getDataPointsCount() > 0) {
hash = (37 * hash) + DATA_POINTS_FIELD_NUMBER;
hash = (53 * hash) + getDataPointsList().hashCode();
}
if (hasTrace()) {
hash = (37 * hash) + TRACE_FIELD_NUMBER;
hash = (53 * hash) + getTrace().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse 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.measure.v1.BanyandbMeasure.QueryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse 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.measure.v1.BanyandbMeasure.QueryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse 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.measure.v1.BanyandbMeasure.QueryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse 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.measure.v1.BanyandbMeasure.QueryResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse 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.measure.v1.BanyandbMeasure.QueryResponse 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;
}
/**
*
* QueryResponse is the response for a query to the Query module.
*
*
* Protobuf type {@code banyandb.measure.v1.QueryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.QueryResponse)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataPointsFieldBuilder();
getTraceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (dataPointsBuilder_ == null) {
dataPoints_ = java.util.Collections.emptyList();
} else {
dataPoints_ = null;
dataPointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
trace_ = null;
if (traceBuilder_ != null) {
traceBuilder_.dispose();
traceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryResponse_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse result) {
if (dataPointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
dataPoints_ = java.util.Collections.unmodifiableList(dataPoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dataPoints_ = dataPoints_;
} else {
result.dataPoints_ = dataPointsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.trace_ = traceBuilder_ == null
? trace_
: traceBuilder_.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.measure.v1.BanyandbMeasure.QueryResponse) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse.getDefaultInstance()) return this;
if (dataPointsBuilder_ == null) {
if (!other.dataPoints_.isEmpty()) {
if (dataPoints_.isEmpty()) {
dataPoints_ = other.dataPoints_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDataPointsIsMutable();
dataPoints_.addAll(other.dataPoints_);
}
onChanged();
}
} else {
if (!other.dataPoints_.isEmpty()) {
if (dataPointsBuilder_.isEmpty()) {
dataPointsBuilder_.dispose();
dataPointsBuilder_ = null;
dataPoints_ = other.dataPoints_;
bitField0_ = (bitField0_ & ~0x00000001);
dataPointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDataPointsFieldBuilder() : null;
} else {
dataPointsBuilder_.addAllMessages(other.dataPoints_);
}
}
}
if (other.hasTrace()) {
mergeTrace(other.getTrace());
}
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.measure.v1.BanyandbMeasure.DataPoint m =
input.readMessage(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.parser(),
extensionRegistry);
if (dataPointsBuilder_ == null) {
ensureDataPointsIsMutable();
dataPoints_.add(m);
} else {
dataPointsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getTraceFieldBuilder().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.util.List dataPoints_ =
java.util.Collections.emptyList();
private void ensureDataPointsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
dataPoints_ = new java.util.ArrayList(dataPoints_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder> dataPointsBuilder_;
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public java.util.List getDataPointsList() {
if (dataPointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dataPoints_);
} else {
return dataPointsBuilder_.getMessageList();
}
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public int getDataPointsCount() {
if (dataPointsBuilder_ == null) {
return dataPoints_.size();
} else {
return dataPointsBuilder_.getCount();
}
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint getDataPoints(int index) {
if (dataPointsBuilder_ == null) {
return dataPoints_.get(index);
} else {
return dataPointsBuilder_.getMessage(index);
}
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder setDataPoints(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint value) {
if (dataPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataPointsIsMutable();
dataPoints_.set(index, value);
onChanged();
} else {
dataPointsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder setDataPoints(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder builderForValue) {
if (dataPointsBuilder_ == null) {
ensureDataPointsIsMutable();
dataPoints_.set(index, builderForValue.build());
onChanged();
} else {
dataPointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder addDataPoints(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint value) {
if (dataPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataPointsIsMutable();
dataPoints_.add(value);
onChanged();
} else {
dataPointsBuilder_.addMessage(value);
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder addDataPoints(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint value) {
if (dataPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDataPointsIsMutable();
dataPoints_.add(index, value);
onChanged();
} else {
dataPointsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder addDataPoints(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder builderForValue) {
if (dataPointsBuilder_ == null) {
ensureDataPointsIsMutable();
dataPoints_.add(builderForValue.build());
onChanged();
} else {
dataPointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder addDataPoints(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder builderForValue) {
if (dataPointsBuilder_ == null) {
ensureDataPointsIsMutable();
dataPoints_.add(index, builderForValue.build());
onChanged();
} else {
dataPointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder addAllDataPoints(
java.lang.Iterable extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint> values) {
if (dataPointsBuilder_ == null) {
ensureDataPointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dataPoints_);
onChanged();
} else {
dataPointsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder clearDataPoints() {
if (dataPointsBuilder_ == null) {
dataPoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
dataPointsBuilder_.clear();
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public Builder removeDataPoints(int index) {
if (dataPointsBuilder_ == null) {
ensureDataPointsIsMutable();
dataPoints_.remove(index);
onChanged();
} else {
dataPointsBuilder_.remove(index);
}
return this;
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder getDataPointsBuilder(
int index) {
return getDataPointsFieldBuilder().getBuilder(index);
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder getDataPointsOrBuilder(
int index) {
if (dataPointsBuilder_ == null) {
return dataPoints_.get(index); } else {
return dataPointsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder>
getDataPointsOrBuilderList() {
if (dataPointsBuilder_ != null) {
return dataPointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dataPoints_);
}
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder addDataPointsBuilder() {
return getDataPointsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.getDefaultInstance());
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder addDataPointsBuilder(
int index) {
return getDataPointsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.getDefaultInstance());
}
/**
*
* data_points are the actual data returned
*
*
* repeated .banyandb.measure.v1.DataPoint data_points = 1;
*/
public java.util.List
getDataPointsBuilderList() {
return getDataPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder>
getDataPointsFieldBuilder() {
if (dataPointsBuilder_ == null) {
dataPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPoint.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointOrBuilder>(
dataPoints_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
dataPoints_ = null;
}
return dataPointsBuilder_;
}
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace trace_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder> traceBuilder_;
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
* @return Whether the trace field is set.
*/
public boolean hasTrace() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
* @return The trace.
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace getTrace() {
if (traceBuilder_ == null) {
return trace_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance() : trace_;
} else {
return traceBuilder_.getMessage();
}
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
public Builder setTrace(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace value) {
if (traceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trace_ = value;
} else {
traceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
public Builder setTrace(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder builderForValue) {
if (traceBuilder_ == null) {
trace_ = builderForValue.build();
} else {
traceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
public Builder mergeTrace(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace value) {
if (traceBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
trace_ != null &&
trace_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance()) {
getTraceBuilder().mergeFrom(value);
} else {
trace_ = value;
}
} else {
traceBuilder_.mergeFrom(value);
}
if (trace_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
public Builder clearTrace() {
bitField0_ = (bitField0_ & ~0x00000002);
trace_ = null;
if (traceBuilder_ != null) {
traceBuilder_.dispose();
traceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder getTraceBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTraceFieldBuilder().getBuilder();
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder getTraceOrBuilder() {
if (traceBuilder_ != null) {
return traceBuilder_.getMessageOrBuilder();
} else {
return trace_ == null ?
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance() : trace_;
}
}
/**
*
* trace contains the trace information of the query when trace is enabled
*
*
* .banyandb.common.v1.Trace trace = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder>
getTraceFieldBuilder() {
if (traceBuilder_ == null) {
traceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder>(
getTrace(),
getParentForChildren(),
isClean());
trace_ = null;
}
return traceBuilder_;
}
@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.measure.v1.QueryResponse)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.QueryResponse)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryResponse 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.measure.v1.BanyandbMeasure.QueryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.QueryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
java.util.List
getGroupsList();
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
int getGroupsCount();
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the element to return.
* @return The groups at the given index.
*/
java.lang.String getGroups(int index);
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
com.google.protobuf.ByteString
getGroupsBytes(int index);
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return Whether the timeRange field is set.
*/
boolean hasTimeRange();
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return The timeRange.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getTimeRange();
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder();
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
* @return Whether the criteria field is set.
*/
boolean hasCriteria();
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
* @return The criteria.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getCriteria();
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getCriteriaOrBuilder();
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
* @return Whether the tagProjection field is set.
*/
boolean hasTagProjection();
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
* @return The tagProjection.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getTagProjection();
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getTagProjectionOrBuilder();
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
* @return Whether the fieldProjection field is set.
*/
boolean hasFieldProjection();
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
* @return The fieldProjection.
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection getFieldProjection();
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder getFieldProjectionOrBuilder();
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
* @return Whether the groupBy field is set.
*/
boolean hasGroupBy();
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
* @return The groupBy.
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy getGroupBy();
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder getGroupByOrBuilder();
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
* @return Whether the agg field is set.
*/
boolean hasAgg();
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
* @return The agg.
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation getAgg();
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder getAggOrBuilder();
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
* @return Whether the top field is set.
*/
boolean hasTop();
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
* @return The top.
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top getTop();
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder getTopOrBuilder();
/**
*
* offset is used to support pagination, together with the following limit.
* If top is specified, offset processes the dataset based on top's output
*
*
* uint32 offset = 10;
* @return The offset.
*/
int getOffset();
/**
*
* limit is used to impose a boundary on the number of records being returned.
* If top is specified, limit processes the dataset based on top's output
*
*
* uint32 limit = 11;
* @return The limit.
*/
int getLimit();
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
* @return Whether the orderBy field is set.
*/
boolean hasOrderBy();
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
* @return The orderBy.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getOrderBy();
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder getOrderByOrBuilder();
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 13;
* @return The trace.
*/
boolean getTrace();
}
/**
*
* QueryRequest is the request contract for query.
*
*
* Protobuf type {@code banyandb.measure.v1.QueryRequest}
*/
public static final class QueryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.QueryRequest)
QueryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRequest.newBuilder() to construct.
private QueryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRequest() {
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Builder.class);
}
public interface FieldProjectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.QueryRequest.FieldProjection)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string names = 1;
* @return A list containing the names.
*/
java.util.List
getNamesList();
/**
* repeated string names = 1;
* @return The count of names.
*/
int getNamesCount();
/**
* repeated string names = 1;
* @param index The index of the element to return.
* @return The names at the given index.
*/
java.lang.String getNames(int index);
/**
* repeated string names = 1;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
com.google.protobuf.ByteString
getNamesBytes(int index);
}
/**
* Protobuf type {@code banyandb.measure.v1.QueryRequest.FieldProjection}
*/
public static final class FieldProjection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.QueryRequest.FieldProjection)
FieldProjectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldProjection.newBuilder() to construct.
private FieldProjection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldProjection() {
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldProjection();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder.class);
}
public static final int NAMES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string names = 1;
* @return A list containing the names.
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
return names_;
}
/**
* repeated string names = 1;
* @return The count of names.
*/
public int getNamesCount() {
return names_.size();
}
/**
* repeated string names = 1;
* @param index The index of the element to return.
* @return The names at the given index.
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
* repeated string names = 1;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < names_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < names_.size(); i++) {
dataSize += computeStringSizeNoTag(names_.getRaw(i));
}
size += dataSize;
size += 1 * getNamesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection) obj;
if (!getNamesList()
.equals(other.getNamesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNamesCount() > 0) {
hash = (37 * hash) + NAMES_FIELD_NUMBER;
hash = (53 * hash) + getNamesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection 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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection 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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection 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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection 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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection 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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection 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.measure.v1.QueryRequest.FieldProjection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.QueryRequest.FieldProjection)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
names_.makeImmutable();
result.names_ = names_;
}
}
@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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance()) return this;
if (!other.names_.isEmpty()) {
if (names_.isEmpty()) {
names_ = other.names_;
bitField0_ |= 0x00000001;
} else {
ensureNamesIsMutable();
names_.addAll(other.names_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureNamesIsMutable();
names_.add(s);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureNamesIsMutable() {
if (!names_.isModifiable()) {
names_ = new com.google.protobuf.LazyStringArrayList(names_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string names = 1;
* @return A list containing the names.
*/
public com.google.protobuf.ProtocolStringList
getNamesList() {
names_.makeImmutable();
return names_;
}
/**
* repeated string names = 1;
* @return The count of names.
*/
public int getNamesCount() {
return names_.size();
}
/**
* repeated string names = 1;
* @param index The index of the element to return.
* @return The names at the given index.
*/
public java.lang.String getNames(int index) {
return names_.get(index);
}
/**
* repeated string names = 1;
* @param index The index of the value to return.
* @return The bytes of the names at the given index.
*/
public com.google.protobuf.ByteString
getNamesBytes(int index) {
return names_.getByteString(index);
}
/**
* repeated string names = 1;
* @param index The index to set the value at.
* @param value The names to set.
* @return This builder for chaining.
*/
public Builder setNames(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNamesIsMutable();
names_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @param value The names to add.
* @return This builder for chaining.
*/
public Builder addNames(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureNamesIsMutable();
names_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @param values The names to add.
* @return This builder for chaining.
*/
public Builder addAllNames(
java.lang.Iterable values) {
ensureNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, names_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @return This builder for chaining.
*/
public Builder clearNames() {
names_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string names = 1;
* @param value The bytes of the names to add.
* @return This builder for chaining.
*/
public Builder addNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureNamesIsMutable();
names_.add(value);
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.measure.v1.QueryRequest.FieldProjection)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.QueryRequest.FieldProjection)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldProjection 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.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupByOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.QueryRequest.GroupBy)
com.google.protobuf.MessageOrBuilder {
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
* @return Whether the tagProjection field is set.
*/
boolean hasTagProjection();
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
* @return The tagProjection.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getTagProjection();
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getTagProjectionOrBuilder();
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
java.lang.String getFieldName();
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
com.google.protobuf.ByteString
getFieldNameBytes();
}
/**
* Protobuf type {@code banyandb.measure.v1.QueryRequest.GroupBy}
*/
public static final class GroupBy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.QueryRequest.GroupBy)
GroupByOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupBy.newBuilder() to construct.
private GroupBy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupBy() {
fieldName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GroupBy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_GroupBy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_GroupBy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder.class);
}
private int bitField0_;
public static final int TAG_PROJECTION_FIELD_NUMBER = 1;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection tagProjection_;
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
* @return Whether the tagProjection field is set.
*/
@java.lang.Override
public boolean hasTagProjection() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
* @return The tagProjection.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getTagProjection() {
return tagProjection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getTagProjectionOrBuilder() {
return tagProjection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
}
public static final int FIELD_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object fieldName_ = "";
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
@java.lang.Override
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
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();
fieldName_ = s;
return s;
}
}
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTagProjection());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_);
}
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, getTagProjection());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_);
}
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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy) obj;
if (hasTagProjection() != other.hasTagProjection()) return false;
if (hasTagProjection()) {
if (!getTagProjection()
.equals(other.getTagProjection())) return false;
}
if (!getFieldName()
.equals(other.getFieldName())) 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 (hasTagProjection()) {
hash = (37 * hash) + TAG_PROJECTION_FIELD_NUMBER;
hash = (53 * hash) + getTagProjection().hashCode();
}
hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy 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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy 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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy 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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy 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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy 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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy 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.measure.v1.QueryRequest.GroupBy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.QueryRequest.GroupBy)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_GroupBy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_GroupBy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTagProjectionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tagProjection_ = null;
if (tagProjectionBuilder_ != null) {
tagProjectionBuilder_.dispose();
tagProjectionBuilder_ = null;
}
fieldName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_GroupBy_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.tagProjection_ = tagProjectionBuilder_ == null
? tagProjection_
: tagProjectionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fieldName_ = fieldName_;
}
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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance()) return this;
if (other.hasTagProjection()) {
mergeTagProjection(other.getTagProjection());
}
if (!other.getFieldName().isEmpty()) {
fieldName_ = other.fieldName_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getTagProjectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
fieldName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection tagProjection_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder> tagProjectionBuilder_;
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
* @return Whether the tagProjection field is set.
*/
public boolean hasTagProjection() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
* @return The tagProjection.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getTagProjection() {
if (tagProjectionBuilder_ == null) {
return tagProjection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
} else {
return tagProjectionBuilder_.getMessage();
}
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
public Builder setTagProjection(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection value) {
if (tagProjectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tagProjection_ = value;
} else {
tagProjectionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
public Builder setTagProjection(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder builderForValue) {
if (tagProjectionBuilder_ == null) {
tagProjection_ = builderForValue.build();
} else {
tagProjectionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
public Builder mergeTagProjection(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection value) {
if (tagProjectionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
tagProjection_ != null &&
tagProjection_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance()) {
getTagProjectionBuilder().mergeFrom(value);
} else {
tagProjection_ = value;
}
} else {
tagProjectionBuilder_.mergeFrom(value);
}
if (tagProjection_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
public Builder clearTagProjection() {
bitField0_ = (bitField0_ & ~0x00000001);
tagProjection_ = null;
if (tagProjectionBuilder_ != null) {
tagProjectionBuilder_.dispose();
tagProjectionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder getTagProjectionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTagProjectionFieldBuilder().getBuilder();
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getTagProjectionOrBuilder() {
if (tagProjectionBuilder_ != null) {
return tagProjectionBuilder_.getMessageOrBuilder();
} else {
return tagProjection_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
}
}
/**
*
* tag_projection must be a subset of the tag_projection of QueryRequest
*
*
* .banyandb.model.v1.TagProjection tag_projection = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder>
getTagProjectionFieldBuilder() {
if (tagProjectionBuilder_ == null) {
tagProjectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder>(
getTagProjection(),
getParentForChildren(),
isClean());
tagProjection_ = null;
}
return tagProjectionBuilder_;
}
private java.lang.Object fieldName_ = "";
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @param value The fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fieldName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
fieldName_ = getDefaultInstance().getFieldName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* field_name must be one of fields indicated by field_projection
*
*
* string field_name = 2;
* @param value The bytes for fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fieldName_ = 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.measure.v1.QueryRequest.GroupBy)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.QueryRequest.GroupBy)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupBy 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.measure.v1.BanyandbMeasure.QueryRequest.GroupBy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AggregationOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.QueryRequest.Aggregation)
com.google.protobuf.MessageOrBuilder {
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return The enum numeric value on the wire for function.
*/
int getFunctionValue();
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return The function.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction getFunction();
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
java.lang.String getFieldName();
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
com.google.protobuf.ByteString
getFieldNameBytes();
}
/**
* Protobuf type {@code banyandb.measure.v1.QueryRequest.Aggregation}
*/
public static final class Aggregation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.QueryRequest.Aggregation)
AggregationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Aggregation.newBuilder() to construct.
private Aggregation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Aggregation() {
function_ = 0;
fieldName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Aggregation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Aggregation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Aggregation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder.class);
}
public static final int FUNCTION_FIELD_NUMBER = 1;
private int function_ = 0;
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return The enum numeric value on the wire for function.
*/
@java.lang.Override public int getFunctionValue() {
return function_;
}
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return The function.
*/
@java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction getFunction() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.forNumber(function_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.UNRECOGNIZED : result;
}
public static final int FIELD_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object fieldName_ = "";
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
@java.lang.Override
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
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();
fieldName_ = s;
return s;
}
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = 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 (function_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.AGGREGATION_FUNCTION_UNSPECIFIED.getNumber()) {
output.writeEnum(1, function_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (function_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.AGGREGATION_FUNCTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, function_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_);
}
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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation) obj;
if (function_ != other.function_) return false;
if (!getFieldName()
.equals(other.getFieldName())) 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) + FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + function_;
hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation 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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation 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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation 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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation 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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation 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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation 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.measure.v1.QueryRequest.Aggregation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.QueryRequest.Aggregation)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Aggregation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Aggregation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
function_ = 0;
fieldName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Aggregation_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.function_ = function_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fieldName_ = fieldName_;
}
}
@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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance()) return this;
if (other.function_ != 0) {
setFunctionValue(other.getFunctionValue());
}
if (!other.getFieldName().isEmpty()) {
fieldName_ = other.fieldName_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
function_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
fieldName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int function_ = 0;
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return The enum numeric value on the wire for function.
*/
@java.lang.Override public int getFunctionValue() {
return function_;
}
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @param value The enum numeric value on the wire for function to set.
* @return This builder for chaining.
*/
public Builder setFunctionValue(int value) {
function_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return The function.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction getFunction() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.forNumber(function_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.UNRECOGNIZED : result;
}
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @param value The function to set.
* @return This builder for chaining.
*/
public Builder setFunction(org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
function_ = value.getNumber();
onChanged();
return this;
}
/**
* .banyandb.model.v1.AggregationFunction function = 1;
* @return This builder for chaining.
*/
public Builder clearFunction() {
bitField0_ = (bitField0_ & ~0x00000001);
function_ = 0;
onChanged();
return this;
}
private java.lang.Object fieldName_ = "";
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @param value The fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fieldName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
fieldName_ = getDefaultInstance().getFieldName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @param value The bytes for fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fieldName_ = 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.measure.v1.QueryRequest.Aggregation)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.QueryRequest.Aggregation)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Aggregation 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.measure.v1.BanyandbMeasure.QueryRequest.Aggregation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.QueryRequest.Top)
com.google.protobuf.MessageOrBuilder {
/**
*
* number set the how many items should be returned
*
*
* int32 number = 1;
* @return The number.
*/
int getNumber();
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
java.lang.String getFieldName();
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
com.google.protobuf.ByteString
getFieldNameBytes();
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return The enum numeric value on the wire for fieldValueSort.
*/
int getFieldValueSortValue();
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return The fieldValueSort.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getFieldValueSort();
}
/**
* Protobuf type {@code banyandb.measure.v1.QueryRequest.Top}
*/
public static final class Top extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.QueryRequest.Top)
TopOrBuilder {
private static final long serialVersionUID = 0L;
// Use Top.newBuilder() to construct.
private Top(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Top() {
fieldName_ = "";
fieldValueSort_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Top();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Top_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Top_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder.class);
}
public static final int NUMBER_FIELD_NUMBER = 1;
private int number_ = 0;
/**
*
* number set the how many items should be returned
*
*
* int32 number = 1;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
public static final int FIELD_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object fieldName_ = "";
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
@java.lang.Override
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
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();
fieldName_ = s;
return s;
}
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FIELD_VALUE_SORT_FIELD_NUMBER = 3;
private int fieldValueSort_ = 0;
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return The enum numeric value on the wire for fieldValueSort.
*/
@java.lang.Override public int getFieldValueSortValue() {
return fieldValueSort_;
}
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return The fieldValueSort.
*/
@java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getFieldValueSort() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.forNumber(fieldValueSort_);
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 (number_ != 0) {
output.writeInt32(1, number_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_);
}
if (fieldValueSort_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.SORT_UNSPECIFIED.getNumber()) {
output.writeEnum(3, fieldValueSort_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (number_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, number_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_);
}
if (fieldValueSort_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.SORT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, fieldValueSort_);
}
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.measure.v1.BanyandbMeasure.QueryRequest.Top)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top) obj;
if (getNumber()
!= other.getNumber()) return false;
if (!getFieldName()
.equals(other.getFieldName())) return false;
if (fieldValueSort_ != other.fieldValueSort_) 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) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldName().hashCode();
hash = (37 * hash) + FIELD_VALUE_SORT_FIELD_NUMBER;
hash = (53 * hash) + fieldValueSort_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top 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.measure.v1.BanyandbMeasure.QueryRequest.Top parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top 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.measure.v1.BanyandbMeasure.QueryRequest.Top parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top 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.measure.v1.BanyandbMeasure.QueryRequest.Top parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top 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.measure.v1.BanyandbMeasure.QueryRequest.Top parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top 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.measure.v1.BanyandbMeasure.QueryRequest.Top 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.measure.v1.QueryRequest.Top}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.QueryRequest.Top)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Top_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Top_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
number_ = 0;
fieldName_ = "";
fieldValueSort_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_Top_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.number_ = number_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.fieldName_ = fieldName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.fieldValueSort_ = fieldValueSort_;
}
}
@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.measure.v1.BanyandbMeasure.QueryRequest.Top) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance()) return this;
if (other.getNumber() != 0) {
setNumber(other.getNumber());
}
if (!other.getFieldName().isEmpty()) {
fieldName_ = other.fieldName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.fieldValueSort_ != 0) {
setFieldValueSortValue(other.getFieldValueSortValue());
}
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: {
number_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
fieldName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
fieldValueSort_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int number_ ;
/**
*
* number set the how many items should be returned
*
*
* int32 number = 1;
* @return The number.
*/
@java.lang.Override
public int getNumber() {
return number_;
}
/**
*
* number set the how many items should be returned
*
*
* int32 number = 1;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(int value) {
number_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* number set the how many items should be returned
*
*
* int32 number = 1;
* @return This builder for chaining.
*/
public Builder clearNumber() {
bitField0_ = (bitField0_ & ~0x00000001);
number_ = 0;
onChanged();
return this;
}
private java.lang.Object fieldName_ = "";
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The fieldName.
*/
public java.lang.String getFieldName() {
java.lang.Object ref = fieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fieldName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return The bytes for fieldName.
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = fieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @param value The fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fieldName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
fieldName_ = getDefaultInstance().getFieldName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* field_name must be one of files indicated by the field_projection
*
*
* string field_name = 2;
* @param value The bytes for fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fieldName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int fieldValueSort_ = 0;
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return The enum numeric value on the wire for fieldValueSort.
*/
@java.lang.Override public int getFieldValueSortValue() {
return fieldValueSort_;
}
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @param value The enum numeric value on the wire for fieldValueSort to set.
* @return This builder for chaining.
*/
public Builder setFieldValueSortValue(int value) {
fieldValueSort_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return The fieldValueSort.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getFieldValueSort() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.forNumber(fieldValueSort_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.UNRECOGNIZED : result;
}
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @param value The fieldValueSort to set.
* @return This builder for chaining.
*/
public Builder setFieldValueSort(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
fieldValueSort_ = value.getNumber();
onChanged();
return this;
}
/**
*
* field_value_sort indicates how to sort fields
* ASC: bottomN
* DESC: topN
* UNSPECIFIED: topN
*
*
* .banyandb.model.v1.Sort field_value_sort = 3;
* @return This builder for chaining.
*/
public Builder clearFieldValueSort() {
bitField0_ = (bitField0_ & ~0x00000004);
fieldValueSort_ = 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.measure.v1.QueryRequest.Top)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.QueryRequest.Top)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Top 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.measure.v1.BanyandbMeasure.QueryRequest.Top getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int GROUPS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
return groups_;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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 TIME_RANGE_FIELD_NUMBER = 3;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange timeRange_;
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return Whether the timeRange field is set.
*/
@java.lang.Override
public boolean hasTimeRange() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return The timeRange.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getTimeRange() {
return timeRange_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder() {
return timeRange_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
}
public static final int CRITERIA_FIELD_NUMBER = 4;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria criteria_;
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
* @return Whether the criteria field is set.
*/
@java.lang.Override
public boolean hasCriteria() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
* @return The criteria.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getCriteria() {
return criteria_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : criteria_;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getCriteriaOrBuilder() {
return criteria_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : criteria_;
}
public static final int TAG_PROJECTION_FIELD_NUMBER = 5;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection tagProjection_;
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
* @return Whether the tagProjection field is set.
*/
@java.lang.Override
public boolean hasTagProjection() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
* @return The tagProjection.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getTagProjection() {
return tagProjection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getTagProjectionOrBuilder() {
return tagProjection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
}
public static final int FIELD_PROJECTION_FIELD_NUMBER = 6;
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection fieldProjection_;
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
* @return Whether the fieldProjection field is set.
*/
@java.lang.Override
public boolean hasFieldProjection() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
* @return The fieldProjection.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection getFieldProjection() {
return fieldProjection_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance() : fieldProjection_;
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder getFieldProjectionOrBuilder() {
return fieldProjection_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance() : fieldProjection_;
}
public static final int GROUP_BY_FIELD_NUMBER = 7;
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy groupBy_;
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
* @return Whether the groupBy field is set.
*/
@java.lang.Override
public boolean hasGroupBy() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
* @return The groupBy.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy getGroupBy() {
return groupBy_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance() : groupBy_;
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder getGroupByOrBuilder() {
return groupBy_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance() : groupBy_;
}
public static final int AGG_FIELD_NUMBER = 8;
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation agg_;
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
* @return Whether the agg field is set.
*/
@java.lang.Override
public boolean hasAgg() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
* @return The agg.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation getAgg() {
return agg_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance() : agg_;
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder getAggOrBuilder() {
return agg_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance() : agg_;
}
public static final int TOP_FIELD_NUMBER = 9;
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top top_;
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
* @return Whether the top field is set.
*/
@java.lang.Override
public boolean hasTop() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
* @return The top.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top getTop() {
return top_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance() : top_;
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder getTopOrBuilder() {
return top_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance() : top_;
}
public static final int OFFSET_FIELD_NUMBER = 10;
private int offset_ = 0;
/**
*
* offset is used to support pagination, together with the following limit.
* If top is specified, offset processes the dataset based on top's output
*
*
* uint32 offset = 10;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int LIMIT_FIELD_NUMBER = 11;
private int limit_ = 0;
/**
*
* limit is used to impose a boundary on the number of records being returned.
* If top is specified, limit processes the dataset based on top's output
*
*
* uint32 limit = 11;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int ORDER_BY_FIELD_NUMBER = 12;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder orderBy_;
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
* @return Whether the orderBy field is set.
*/
@java.lang.Override
public boolean hasOrderBy() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
* @return The orderBy.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getOrderBy() {
return orderBy_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance() : orderBy_;
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder getOrderByOrBuilder() {
return orderBy_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance() : orderBy_;
}
public static final int TRACE_FIELD_NUMBER = 13;
private boolean trace_ = false;
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 13;
* @return The trace.
*/
@java.lang.Override
public boolean getTrace() {
return trace_;
}
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 < groups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groups_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTimeRange());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getCriteria());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getTagProjection());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getFieldProjection());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(7, getGroupBy());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(8, getAgg());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(9, getTop());
}
if (offset_ != 0) {
output.writeUInt32(10, offset_);
}
if (limit_ != 0) {
output.writeUInt32(11, limit_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(12, getOrderBy());
}
if (trace_ != false) {
output.writeBool(13, trace_);
}
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 < groups_.size(); i++) {
dataSize += computeStringSizeNoTag(groups_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTimeRange());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCriteria());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTagProjection());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getFieldProjection());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getGroupBy());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAgg());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getTop());
}
if (offset_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, offset_);
}
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, limit_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getOrderBy());
}
if (trace_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, trace_);
}
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.measure.v1.BanyandbMeasure.QueryRequest)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest) obj;
if (!getGroupsList()
.equals(other.getGroupsList())) return false;
if (!getName()
.equals(other.getName())) return false;
if (hasTimeRange() != other.hasTimeRange()) return false;
if (hasTimeRange()) {
if (!getTimeRange()
.equals(other.getTimeRange())) return false;
}
if (hasCriteria() != other.hasCriteria()) return false;
if (hasCriteria()) {
if (!getCriteria()
.equals(other.getCriteria())) return false;
}
if (hasTagProjection() != other.hasTagProjection()) return false;
if (hasTagProjection()) {
if (!getTagProjection()
.equals(other.getTagProjection())) return false;
}
if (hasFieldProjection() != other.hasFieldProjection()) return false;
if (hasFieldProjection()) {
if (!getFieldProjection()
.equals(other.getFieldProjection())) return false;
}
if (hasGroupBy() != other.hasGroupBy()) return false;
if (hasGroupBy()) {
if (!getGroupBy()
.equals(other.getGroupBy())) return false;
}
if (hasAgg() != other.hasAgg()) return false;
if (hasAgg()) {
if (!getAgg()
.equals(other.getAgg())) return false;
}
if (hasTop() != other.hasTop()) return false;
if (hasTop()) {
if (!getTop()
.equals(other.getTop())) return false;
}
if (getOffset()
!= other.getOffset()) return false;
if (getLimit()
!= other.getLimit()) return false;
if (hasOrderBy() != other.hasOrderBy()) return false;
if (hasOrderBy()) {
if (!getOrderBy()
.equals(other.getOrderBy())) return false;
}
if (getTrace()
!= other.getTrace()) 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 (getGroupsCount() > 0) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getGroupsList().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasTimeRange()) {
hash = (37 * hash) + TIME_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getTimeRange().hashCode();
}
if (hasCriteria()) {
hash = (37 * hash) + CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getCriteria().hashCode();
}
if (hasTagProjection()) {
hash = (37 * hash) + TAG_PROJECTION_FIELD_NUMBER;
hash = (53 * hash) + getTagProjection().hashCode();
}
if (hasFieldProjection()) {
hash = (37 * hash) + FIELD_PROJECTION_FIELD_NUMBER;
hash = (53 * hash) + getFieldProjection().hashCode();
}
if (hasGroupBy()) {
hash = (37 * hash) + GROUP_BY_FIELD_NUMBER;
hash = (53 * hash) + getGroupBy().hashCode();
}
if (hasAgg()) {
hash = (37 * hash) + AGG_FIELD_NUMBER;
hash = (53 * hash) + getAgg().hashCode();
}
if (hasTop()) {
hash = (37 * hash) + TOP_FIELD_NUMBER;
hash = (53 * hash) + getTop().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
if (hasOrderBy()) {
hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
hash = (53 * hash) + getOrderBy().hashCode();
}
hash = (37 * hash) + TRACE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTrace());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest 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.measure.v1.BanyandbMeasure.QueryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest 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.measure.v1.BanyandbMeasure.QueryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest 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.measure.v1.BanyandbMeasure.QueryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest 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.measure.v1.BanyandbMeasure.QueryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest 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.measure.v1.BanyandbMeasure.QueryRequest 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;
}
/**
*
* QueryRequest is the request contract for query.
*
*
* Protobuf type {@code banyandb.measure.v1.QueryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.QueryRequest)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimeRangeFieldBuilder();
getCriteriaFieldBuilder();
getTagProjectionFieldBuilder();
getFieldProjectionFieldBuilder();
getGroupByFieldBuilder();
getAggFieldBuilder();
getTopFieldBuilder();
getOrderByFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
name_ = "";
timeRange_ = null;
if (timeRangeBuilder_ != null) {
timeRangeBuilder_.dispose();
timeRangeBuilder_ = null;
}
criteria_ = null;
if (criteriaBuilder_ != null) {
criteriaBuilder_.dispose();
criteriaBuilder_ = null;
}
tagProjection_ = null;
if (tagProjectionBuilder_ != null) {
tagProjectionBuilder_.dispose();
tagProjectionBuilder_ = null;
}
fieldProjection_ = null;
if (fieldProjectionBuilder_ != null) {
fieldProjectionBuilder_.dispose();
fieldProjectionBuilder_ = null;
}
groupBy_ = null;
if (groupByBuilder_ != null) {
groupByBuilder_.dispose();
groupByBuilder_ = null;
}
agg_ = null;
if (aggBuilder_ != null) {
aggBuilder_.dispose();
aggBuilder_ = null;
}
top_ = null;
if (topBuilder_ != null) {
topBuilder_.dispose();
topBuilder_ = null;
}
offset_ = 0;
limit_ = 0;
orderBy_ = null;
if (orderByBuilder_ != null) {
orderByBuilder_.dispose();
orderByBuilder_ = null;
}
trace_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_QueryRequest_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
groups_.makeImmutable();
result.groups_ = groups_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timeRange_ = timeRangeBuilder_ == null
? timeRange_
: timeRangeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.criteria_ = criteriaBuilder_ == null
? criteria_
: criteriaBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.tagProjection_ = tagProjectionBuilder_ == null
? tagProjection_
: tagProjectionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.fieldProjection_ = fieldProjectionBuilder_ == null
? fieldProjection_
: fieldProjectionBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.groupBy_ = groupByBuilder_ == null
? groupBy_
: groupByBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.agg_ = aggBuilder_ == null
? agg_
: aggBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.top_ = topBuilder_ == null
? top_
: topBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.offset_ = offset_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.limit_ = limit_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.orderBy_ = orderByBuilder_ == null
? orderBy_
: orderByBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.trace_ = trace_;
}
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.measure.v1.BanyandbMeasure.QueryRequest) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.getDefaultInstance()) return this;
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ |= 0x00000001;
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasTimeRange()) {
mergeTimeRange(other.getTimeRange());
}
if (other.hasCriteria()) {
mergeCriteria(other.getCriteria());
}
if (other.hasTagProjection()) {
mergeTagProjection(other.getTagProjection());
}
if (other.hasFieldProjection()) {
mergeFieldProjection(other.getFieldProjection());
}
if (other.hasGroupBy()) {
mergeGroupBy(other.getGroupBy());
}
if (other.hasAgg()) {
mergeAgg(other.getAgg());
}
if (other.hasTop()) {
mergeTop(other.getTop());
}
if (other.getOffset() != 0) {
setOffset(other.getOffset());
}
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
if (other.hasOrderBy()) {
mergeOrderBy(other.getOrderBy());
}
if (other.getTrace() != false) {
setTrace(other.getTrace());
}
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();
ensureGroupsIsMutable();
groups_.add(s);
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTimeRangeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getCriteriaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getTagProjectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getFieldProjectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getGroupByFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getAggFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getTopFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 80: {
offset_ = input.readUInt32();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
limit_ = input.readUInt32();
bitField0_ |= 0x00000400;
break;
} // case 88
case 98: {
input.readMessage(
getOrderByFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 98
case 104: {
trace_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 104
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 groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGroupsIsMutable() {
if (!groups_.isModifiable()) {
groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
}
bitField0_ |= 0x00000001;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
groups_.makeImmutable();
return groups_;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index to set the value at.
* @param value The groups to set.
* @return This builder for chaining.
*/
public Builder setGroups(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupsIsMutable();
groups_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param value The groups to add.
* @return This builder for chaining.
*/
public Builder addGroups(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupsIsMutable();
groups_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param values The groups to add.
* @return This builder for chaining.
*/
public Builder addAllGroups(
java.lang.Iterable values) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groups_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearGroups() {
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param value The bytes of the groups to add.
* @return This builder for chaining.
*/
public Builder addGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGroupsIsMutable();
groups_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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_ |= 0x00000002;
onChanged();
return this;
}
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange timeRange_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder> timeRangeBuilder_;
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return Whether the timeRange field is set.
*/
public boolean hasTimeRange() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return The timeRange.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getTimeRange() {
if (timeRangeBuilder_ == null) {
return timeRange_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
} else {
return timeRangeBuilder_.getMessage();
}
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder setTimeRange(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange value) {
if (timeRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeRange_ = value;
} else {
timeRangeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder setTimeRange(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder builderForValue) {
if (timeRangeBuilder_ == null) {
timeRange_ = builderForValue.build();
} else {
timeRangeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder mergeTimeRange(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange value) {
if (timeRangeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
timeRange_ != null &&
timeRange_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance()) {
getTimeRangeBuilder().mergeFrom(value);
} else {
timeRange_ = value;
}
} else {
timeRangeBuilder_.mergeFrom(value);
}
if (timeRange_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder clearTimeRange() {
bitField0_ = (bitField0_ & ~0x00000004);
timeRange_ = null;
if (timeRangeBuilder_ != null) {
timeRangeBuilder_.dispose();
timeRangeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder getTimeRangeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTimeRangeFieldBuilder().getBuilder();
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder() {
if (timeRangeBuilder_ != null) {
return timeRangeBuilder_.getMessageOrBuilder();
} else {
return timeRange_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
}
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder>
getTimeRangeFieldBuilder() {
if (timeRangeBuilder_ == null) {
timeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder>(
getTimeRange(),
getParentForChildren(),
isClean());
timeRange_ = null;
}
return timeRangeBuilder_;
}
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria criteria_;
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> criteriaBuilder_;
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
* @return Whether the criteria field is set.
*/
public boolean hasCriteria() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
* @return The criteria.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getCriteria() {
if (criteriaBuilder_ == null) {
return criteria_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : criteria_;
} else {
return criteriaBuilder_.getMessage();
}
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
public Builder setCriteria(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) {
if (criteriaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criteria_ = value;
} else {
criteriaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
public Builder setCriteria(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder builderForValue) {
if (criteriaBuilder_ == null) {
criteria_ = builderForValue.build();
} else {
criteriaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
public Builder mergeCriteria(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) {
if (criteriaBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
criteria_ != null &&
criteria_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance()) {
getCriteriaBuilder().mergeFrom(value);
} else {
criteria_ = value;
}
} else {
criteriaBuilder_.mergeFrom(value);
}
if (criteria_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
public Builder clearCriteria() {
bitField0_ = (bitField0_ & ~0x00000008);
criteria_ = null;
if (criteriaBuilder_ != null) {
criteriaBuilder_.dispose();
criteriaBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder getCriteriaBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCriteriaFieldBuilder().getBuilder();
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getCriteriaOrBuilder() {
if (criteriaBuilder_ != null) {
return criteriaBuilder_.getMessageOrBuilder();
} else {
return criteria_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.getDefaultInstance() : criteria_;
}
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 4;
*/
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>
getCriteriaFieldBuilder() {
if (criteriaBuilder_ == null) {
criteriaBuilder_ = 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>(
getCriteria(),
getParentForChildren(),
isClean());
criteria_ = null;
}
return criteriaBuilder_;
}
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection tagProjection_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder> tagProjectionBuilder_;
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
* @return Whether the tagProjection field is set.
*/
public boolean hasTagProjection() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
* @return The tagProjection.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getTagProjection() {
if (tagProjectionBuilder_ == null) {
return tagProjection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
} else {
return tagProjectionBuilder_.getMessage();
}
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
public Builder setTagProjection(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection value) {
if (tagProjectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tagProjection_ = value;
} else {
tagProjectionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
public Builder setTagProjection(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder builderForValue) {
if (tagProjectionBuilder_ == null) {
tagProjection_ = builderForValue.build();
} else {
tagProjectionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
public Builder mergeTagProjection(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection value) {
if (tagProjectionBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
tagProjection_ != null &&
tagProjection_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance()) {
getTagProjectionBuilder().mergeFrom(value);
} else {
tagProjection_ = value;
}
} else {
tagProjectionBuilder_.mergeFrom(value);
}
if (tagProjection_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
public Builder clearTagProjection() {
bitField0_ = (bitField0_ & ~0x00000010);
tagProjection_ = null;
if (tagProjectionBuilder_ != null) {
tagProjectionBuilder_.dispose();
tagProjectionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder getTagProjectionBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getTagProjectionFieldBuilder().getBuilder();
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getTagProjectionOrBuilder() {
if (tagProjectionBuilder_ != null) {
return tagProjectionBuilder_.getMessageOrBuilder();
} else {
return tagProjection_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : tagProjection_;
}
}
/**
*
* tag_projection can be used to select tags of the data points in the response
*
*
* .banyandb.model.v1.TagProjection tag_projection = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder>
getTagProjectionFieldBuilder() {
if (tagProjectionBuilder_ == null) {
tagProjectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder>(
getTagProjection(),
getParentForChildren(),
isClean());
tagProjection_ = null;
}
return tagProjectionBuilder_;
}
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection fieldProjection_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder> fieldProjectionBuilder_;
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
* @return Whether the fieldProjection field is set.
*/
public boolean hasFieldProjection() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
* @return The fieldProjection.
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection getFieldProjection() {
if (fieldProjectionBuilder_ == null) {
return fieldProjection_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance() : fieldProjection_;
} else {
return fieldProjectionBuilder_.getMessage();
}
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
public Builder setFieldProjection(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection value) {
if (fieldProjectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldProjection_ = value;
} else {
fieldProjectionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
public Builder setFieldProjection(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder builderForValue) {
if (fieldProjectionBuilder_ == null) {
fieldProjection_ = builderForValue.build();
} else {
fieldProjectionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
public Builder mergeFieldProjection(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection value) {
if (fieldProjectionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
fieldProjection_ != null &&
fieldProjection_ != org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance()) {
getFieldProjectionBuilder().mergeFrom(value);
} else {
fieldProjection_ = value;
}
} else {
fieldProjectionBuilder_.mergeFrom(value);
}
if (fieldProjection_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
public Builder clearFieldProjection() {
bitField0_ = (bitField0_ & ~0x00000020);
fieldProjection_ = null;
if (fieldProjectionBuilder_ != null) {
fieldProjectionBuilder_.dispose();
fieldProjectionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder getFieldProjectionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getFieldProjectionFieldBuilder().getBuilder();
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder getFieldProjectionOrBuilder() {
if (fieldProjectionBuilder_ != null) {
return fieldProjectionBuilder_.getMessageOrBuilder();
} else {
return fieldProjection_ == null ?
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.getDefaultInstance() : fieldProjection_;
}
}
/**
*
* field_projection can be used to select fields of the data points in the response
*
*
* .banyandb.measure.v1.QueryRequest.FieldProjection field_projection = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder>
getFieldProjectionFieldBuilder() {
if (fieldProjectionBuilder_ == null) {
fieldProjectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjection.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.FieldProjectionOrBuilder>(
getFieldProjection(),
getParentForChildren(),
isClean());
fieldProjection_ = null;
}
return fieldProjectionBuilder_;
}
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy groupBy_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder> groupByBuilder_;
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
* @return Whether the groupBy field is set.
*/
public boolean hasGroupBy() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
* @return The groupBy.
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy getGroupBy() {
if (groupByBuilder_ == null) {
return groupBy_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance() : groupBy_;
} else {
return groupByBuilder_.getMessage();
}
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
public Builder setGroupBy(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy value) {
if (groupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
groupBy_ = value;
} else {
groupByBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
public Builder setGroupBy(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder builderForValue) {
if (groupByBuilder_ == null) {
groupBy_ = builderForValue.build();
} else {
groupByBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
public Builder mergeGroupBy(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy value) {
if (groupByBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
groupBy_ != null &&
groupBy_ != org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance()) {
getGroupByBuilder().mergeFrom(value);
} else {
groupBy_ = value;
}
} else {
groupByBuilder_.mergeFrom(value);
}
if (groupBy_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
public Builder clearGroupBy() {
bitField0_ = (bitField0_ & ~0x00000040);
groupBy_ = null;
if (groupByBuilder_ != null) {
groupByBuilder_.dispose();
groupByBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder getGroupByBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getGroupByFieldBuilder().getBuilder();
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder getGroupByOrBuilder() {
if (groupByBuilder_ != null) {
return groupByBuilder_.getMessageOrBuilder();
} else {
return groupBy_ == null ?
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.getDefaultInstance() : groupBy_;
}
}
/**
*
* group_by groups data points based on their field value for a specific tag and use field_name as the projection name
*
*
* .banyandb.measure.v1.QueryRequest.GroupBy group_by = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder>
getGroupByFieldBuilder() {
if (groupByBuilder_ == null) {
groupByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupBy.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.GroupByOrBuilder>(
getGroupBy(),
getParentForChildren(),
isClean());
groupBy_ = null;
}
return groupByBuilder_;
}
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation agg_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder> aggBuilder_;
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
* @return Whether the agg field is set.
*/
public boolean hasAgg() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
* @return The agg.
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation getAgg() {
if (aggBuilder_ == null) {
return agg_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance() : agg_;
} else {
return aggBuilder_.getMessage();
}
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
public Builder setAgg(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation value) {
if (aggBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agg_ = value;
} else {
aggBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
public Builder setAgg(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder builderForValue) {
if (aggBuilder_ == null) {
agg_ = builderForValue.build();
} else {
aggBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
public Builder mergeAgg(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation value) {
if (aggBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
agg_ != null &&
agg_ != org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance()) {
getAggBuilder().mergeFrom(value);
} else {
agg_ = value;
}
} else {
aggBuilder_.mergeFrom(value);
}
if (agg_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
public Builder clearAgg() {
bitField0_ = (bitField0_ & ~0x00000080);
agg_ = null;
if (aggBuilder_ != null) {
aggBuilder_.dispose();
aggBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder getAggBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getAggFieldBuilder().getBuilder();
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder getAggOrBuilder() {
if (aggBuilder_ != null) {
return aggBuilder_.getMessageOrBuilder();
} else {
return agg_ == null ?
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.getDefaultInstance() : agg_;
}
}
/**
*
* agg aggregates data points based on a field
*
*
* .banyandb.measure.v1.QueryRequest.Aggregation agg = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder>
getAggFieldBuilder() {
if (aggBuilder_ == null) {
aggBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Aggregation.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.AggregationOrBuilder>(
getAgg(),
getParentForChildren(),
isClean());
agg_ = null;
}
return aggBuilder_;
}
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top top_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder> topBuilder_;
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
* @return Whether the top field is set.
*/
public boolean hasTop() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
* @return The top.
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top getTop() {
if (topBuilder_ == null) {
return top_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance() : top_;
} else {
return topBuilder_.getMessage();
}
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
public Builder setTop(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top value) {
if (topBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
top_ = value;
} else {
topBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
public Builder setTop(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder builderForValue) {
if (topBuilder_ == null) {
top_ = builderForValue.build();
} else {
topBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
public Builder mergeTop(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top value) {
if (topBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
top_ != null &&
top_ != org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance()) {
getTopBuilder().mergeFrom(value);
} else {
top_ = value;
}
} else {
topBuilder_.mergeFrom(value);
}
if (top_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
public Builder clearTop() {
bitField0_ = (bitField0_ & ~0x00000100);
top_ = null;
if (topBuilder_ != null) {
topBuilder_.dispose();
topBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder getTopBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getTopFieldBuilder().getBuilder();
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder getTopOrBuilder() {
if (topBuilder_ != null) {
return topBuilder_.getMessageOrBuilder();
} else {
return top_ == null ?
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.getDefaultInstance() : top_;
}
}
/**
*
* top limits the result based on a particular field.
* If order_by is specified, top sorts the dataset based on order_by's output
*
*
* .banyandb.measure.v1.QueryRequest.Top top = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder>
getTopFieldBuilder() {
if (topBuilder_ == null) {
topBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.Top.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest.TopOrBuilder>(
getTop(),
getParentForChildren(),
isClean());
top_ = null;
}
return topBuilder_;
}
private int offset_ ;
/**
*
* offset is used to support pagination, together with the following limit.
* If top is specified, offset processes the dataset based on top's output
*
*
* uint32 offset = 10;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
/**
*
* offset is used to support pagination, together with the following limit.
* If top is specified, offset processes the dataset based on top's output
*
*
* uint32 offset = 10;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(int value) {
offset_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* offset is used to support pagination, together with the following limit.
* If top is specified, offset processes the dataset based on top's output
*
*
* uint32 offset = 10;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000200);
offset_ = 0;
onChanged();
return this;
}
private int limit_ ;
/**
*
* limit is used to impose a boundary on the number of records being returned.
* If top is specified, limit processes the dataset based on top's output
*
*
* uint32 limit = 11;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
*
* limit is used to impose a boundary on the number of records being returned.
* If top is specified, limit processes the dataset based on top's output
*
*
* uint32 limit = 11;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* limit is used to impose a boundary on the number of records being returned.
* If top is specified, limit processes the dataset based on top's output
*
*
* uint32 limit = 11;
* @return This builder for chaining.
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000400);
limit_ = 0;
onChanged();
return this;
}
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder orderBy_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder> orderByBuilder_;
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
* @return Whether the orderBy field is set.
*/
public boolean hasOrderBy() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
* @return The orderBy.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getOrderBy() {
if (orderByBuilder_ == null) {
return orderBy_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance() : orderBy_;
} else {
return orderByBuilder_.getMessage();
}
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
public Builder setOrderBy(org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder value) {
if (orderByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
orderBy_ = value;
} else {
orderByBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
public Builder setOrderBy(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder builderForValue) {
if (orderByBuilder_ == null) {
orderBy_ = builderForValue.build();
} else {
orderByBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
public Builder mergeOrderBy(org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder value) {
if (orderByBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
orderBy_ != null &&
orderBy_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance()) {
getOrderByBuilder().mergeFrom(value);
} else {
orderBy_ = value;
}
} else {
orderByBuilder_.mergeFrom(value);
}
if (orderBy_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
public Builder clearOrderBy() {
bitField0_ = (bitField0_ & ~0x00000800);
orderBy_ = null;
if (orderByBuilder_ != null) {
orderByBuilder_.dispose();
orderByBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder getOrderByBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getOrderByFieldBuilder().getBuilder();
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder getOrderByOrBuilder() {
if (orderByBuilder_ != null) {
return orderByBuilder_.getMessageOrBuilder();
} else {
return orderBy_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.getDefaultInstance() : orderBy_;
}
}
/**
*
* order_by is given to specify the sort for a tag.
*
*
* .banyandb.model.v1.QueryOrder order_by = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder>
getOrderByFieldBuilder() {
if (orderByBuilder_ == null) {
orderByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder>(
getOrderBy(),
getParentForChildren(),
isClean());
orderBy_ = null;
}
return orderByBuilder_;
}
private boolean trace_ ;
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 13;
* @return The trace.
*/
@java.lang.Override
public boolean getTrace() {
return trace_;
}
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 13;
* @param value The trace to set.
* @return This builder for chaining.
*/
public Builder setTrace(boolean value) {
trace_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 13;
* @return This builder for chaining.
*/
public Builder clearTrace() {
bitField0_ = (bitField0_ & ~0x00001000);
trace_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:banyandb.measure.v1.QueryRequest)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.QueryRequest)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.QueryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRequest 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.measure.v1.BanyandbMeasure.QueryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopNListOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.TopNList)
com.google.protobuf.MessageOrBuilder {
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
java.util.List
getItemsList();
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item getItems(int index);
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
int getItemsCount();
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder>
getItemsOrBuilderList();
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder getItemsOrBuilder(
int index);
}
/**
*
* TopNList contains a series of topN items
*
*
* Protobuf type {@code banyandb.measure.v1.TopNList}
*/
public static final class TopNList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.TopNList)
TopNListOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopNList.newBuilder() to construct.
private TopNList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopNList() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopNList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder.class);
}
public interface ItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.TopNList.Item)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
java.util.List
getEntityList();
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getEntity(int index);
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
int getEntityCount();
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder>
getEntityOrBuilderList();
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder getEntityOrBuilder(
int index);
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return The value.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getValue();
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code banyandb.measure.v1.TopNList.Item}
*/
public static final class Item extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.TopNList.Item)
ItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use Item.newBuilder() to construct.
private Item(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Item() {
entity_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Item();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_Item_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_Item_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder.class);
}
private int bitField0_;
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List entity_;
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
@java.lang.Override
public java.util.List getEntityList() {
return entity_;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder>
getEntityOrBuilderList() {
return entity_;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
@java.lang.Override
public int getEntityCount() {
return entity_.size();
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getEntity(int index) {
return entity_.get(index);
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder getEntityOrBuilder(
int index) {
return entity_.get(index);
}
public static final int VALUE_FIELD_NUMBER = 2;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value_;
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return The value.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getValue() {
return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance() : value_;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getValueOrBuilder() {
return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.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 {
for (int i = 0; i < entity_.size(); i++) {
output.writeMessage(1, entity_.get(i));
}
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;
for (int i = 0; i < entity_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entity_.get(i));
}
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.measure.v1.BanyandbMeasure.TopNList.Item)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item) obj;
if (!getEntityList()
.equals(other.getEntityList())) 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();
if (getEntityCount() > 0) {
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntityList().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.measure.v1.BanyandbMeasure.TopNList.Item parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item 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.measure.v1.BanyandbMeasure.TopNList.Item parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item 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.measure.v1.BanyandbMeasure.TopNList.Item parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item 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.measure.v1.BanyandbMeasure.TopNList.Item parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item 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.measure.v1.BanyandbMeasure.TopNList.Item parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item 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.measure.v1.BanyandbMeasure.TopNList.Item 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.measure.v1.TopNList.Item}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.TopNList.Item)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_Item_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_Item_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntityFieldBuilder();
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
} else {
entity_ = null;
entityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
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.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_Item_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item result) {
if (entityBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entity_ = java.util.Collections.unmodifiableList(entity_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entity_ = entity_;
} else {
result.entity_ = entityBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item result) {
int from_bitField0_ = bitField0_;
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.measure.v1.BanyandbMeasure.TopNList.Item) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.getDefaultInstance()) return this;
if (entityBuilder_ == null) {
if (!other.entity_.isEmpty()) {
if (entity_.isEmpty()) {
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntityIsMutable();
entity_.addAll(other.entity_);
}
onChanged();
}
} else {
if (!other.entity_.isEmpty()) {
if (entityBuilder_.isEmpty()) {
entityBuilder_.dispose();
entityBuilder_ = null;
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x00000001);
entityBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntityFieldBuilder() : null;
} else {
entityBuilder_.addAllMessages(other.entity_);
}
}
}
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: {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag m =
input.readMessage(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.parser(),
extensionRegistry);
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(m);
} else {
entityBuilder_.addMessage(m);
}
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.util.List entity_ =
java.util.Collections.emptyList();
private void ensureEntityIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entity_ = new java.util.ArrayList(entity_);
bitField0_ |= 0x00000001;
}
}
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> entityBuilder_;
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public java.util.List getEntityList() {
if (entityBuilder_ == null) {
return java.util.Collections.unmodifiableList(entity_);
} else {
return entityBuilder_.getMessageList();
}
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public int getEntityCount() {
if (entityBuilder_ == null) {
return entity_.size();
} else {
return entityBuilder_.getCount();
}
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag getEntity(int index) {
if (entityBuilder_ == null) {
return entity_.get(index);
} else {
return entityBuilder_.getMessage(index);
}
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder setEntity(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.set(index, value);
onChanged();
} else {
entityBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder setEntity(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.set(index, builderForValue.build());
onChanged();
} else {
entityBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder addEntity(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.add(value);
onChanged();
} else {
entityBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder addEntity(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.add(index, value);
onChanged();
} else {
entityBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder addEntity(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(builderForValue.build());
onChanged();
} else {
entityBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder addEntity(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(index, builderForValue.build());
onChanged();
} else {
entityBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder addAllEntity(
java.lang.Iterable extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag> values) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entity_);
onChanged();
} else {
entityBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder clearEntity() {
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entityBuilder_.clear();
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public Builder removeEntity(int index) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.remove(index);
onChanged();
} else {
entityBuilder_.remove(index);
}
return this;
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder getEntityBuilder(
int index) {
return getEntityFieldBuilder().getBuilder(index);
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder getEntityOrBuilder(
int index) {
if (entityBuilder_ == null) {
return entity_.get(index); } else {
return entityBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagOrBuilder>
getEntityOrBuilderList() {
if (entityBuilder_ != null) {
return entityBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entity_);
}
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder addEntityBuilder() {
return getEntityFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.getDefaultInstance());
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.Builder addEntityBuilder(
int index) {
return getEntityFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Tag.getDefaultInstance());
}
/**
* repeated .banyandb.model.v1.Tag entity = 1;
*/
public java.util.List
getEntityBuilderList() {
return getEntityFieldBuilder().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>
getEntityFieldBuilder() {
if (entityBuilder_ == null) {
entityBuilder_ = 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>(
entity_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
entity_ = null;
}
return entityBuilder_;
}
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder> valueBuilder_;
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .banyandb.model.v1.FieldValue value = 2;
* @return The value.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder setValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder setValue(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder mergeValue(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance() : value_;
}
}
/**
* .banyandb.model.v1.FieldValue value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>(
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.measure.v1.TopNList.Item)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.TopNList.Item)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser-
PARSER = new com.google.protobuf.AbstractParser
- () {
@java.lang.Override
public Item 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.measure.v1.BanyandbMeasure.TopNList.Item getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List items_;
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item getItems(int index) {
return items_.get(index);
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTimestamp());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimestamp());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.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.measure.v1.BanyandbMeasure.TopNList)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!getItemsList()
.equals(other.getItemsList())) 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 (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList 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.measure.v1.BanyandbMeasure.TopNList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList 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.measure.v1.BanyandbMeasure.TopNList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList 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.measure.v1.BanyandbMeasure.TopNList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList 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.measure.v1.BanyandbMeasure.TopNList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList 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.measure.v1.BanyandbMeasure.TopNList 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;
}
/**
*
* TopNList contains a series of topN items
*
*
* Protobuf type {@code banyandb.measure.v1.TopNList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.TopNList)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
} else {
items_ = null;
itemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNList_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList result) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.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.measure.v1.BanyandbMeasure.TopNList) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
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(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item m =
input.readMessage(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.parser(),
extensionRegistry);
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(m);
} else {
itemsBuilder_.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 com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder> itemsBuilder_;
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder setItems(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder setItems(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder addItems(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder addItems(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder addItems(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder addItems(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.getDefaultInstance());
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.getDefaultInstance());
}
/**
*
* items contains top-n items in a list
*
*
* repeated .banyandb.measure.v1.TopNList.Item items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Item.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.ItemOrBuilder>(
items_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@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.measure.v1.TopNList)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.TopNList)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopNList 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.measure.v1.BanyandbMeasure.TopNList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopNResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.TopNResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
java.util.List
getListsList();
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList getLists(int index);
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
int getListsCount();
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder>
getListsOrBuilderList();
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder getListsOrBuilder(
int index);
}
/**
*
* TopNResponse is the response for a query to the Query module.
*
*
* Protobuf type {@code banyandb.measure.v1.TopNResponse}
*/
public static final class TopNResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.TopNResponse)
TopNResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopNResponse.newBuilder() to construct.
private TopNResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopNResponse() {
lists_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopNResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.Builder.class);
}
public static final int LISTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List lists_;
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
@java.lang.Override
public java.util.List getListsList() {
return lists_;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder>
getListsOrBuilderList() {
return lists_;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
@java.lang.Override
public int getListsCount() {
return lists_.size();
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList getLists(int index) {
return lists_.get(index);
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder getListsOrBuilder(
int index) {
return lists_.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 < lists_.size(); i++) {
output.writeMessage(1, lists_.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 < lists_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, lists_.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.measure.v1.BanyandbMeasure.TopNResponse)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse) obj;
if (!getListsList()
.equals(other.getListsList())) 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 (getListsCount() > 0) {
hash = (37 * hash) + LISTS_FIELD_NUMBER;
hash = (53 * hash) + getListsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse 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;
}
/**
*
* TopNResponse is the response for a query to the Query module.
*
*
* Protobuf type {@code banyandb.measure.v1.TopNResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.TopNResponse)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (listsBuilder_ == null) {
lists_ = java.util.Collections.emptyList();
} else {
lists_ = null;
listsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNResponse_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse result) {
if (listsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
lists_ = java.util.Collections.unmodifiableList(lists_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.lists_ = lists_;
} else {
result.lists_ = listsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse.getDefaultInstance()) return this;
if (listsBuilder_ == null) {
if (!other.lists_.isEmpty()) {
if (lists_.isEmpty()) {
lists_ = other.lists_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureListsIsMutable();
lists_.addAll(other.lists_);
}
onChanged();
}
} else {
if (!other.lists_.isEmpty()) {
if (listsBuilder_.isEmpty()) {
listsBuilder_.dispose();
listsBuilder_ = null;
lists_ = other.lists_;
bitField0_ = (bitField0_ & ~0x00000001);
listsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getListsFieldBuilder() : null;
} else {
listsBuilder_.addAllMessages(other.lists_);
}
}
}
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.measure.v1.BanyandbMeasure.TopNList m =
input.readMessage(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.parser(),
extensionRegistry);
if (listsBuilder_ == null) {
ensureListsIsMutable();
lists_.add(m);
} else {
listsBuilder_.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 lists_ =
java.util.Collections.emptyList();
private void ensureListsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
lists_ = new java.util.ArrayList(lists_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder> listsBuilder_;
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public java.util.List getListsList() {
if (listsBuilder_ == null) {
return java.util.Collections.unmodifiableList(lists_);
} else {
return listsBuilder_.getMessageList();
}
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public int getListsCount() {
if (listsBuilder_ == null) {
return lists_.size();
} else {
return listsBuilder_.getCount();
}
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList getLists(int index) {
if (listsBuilder_ == null) {
return lists_.get(index);
} else {
return listsBuilder_.getMessage(index);
}
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder setLists(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList value) {
if (listsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListsIsMutable();
lists_.set(index, value);
onChanged();
} else {
listsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder setLists(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder builderForValue) {
if (listsBuilder_ == null) {
ensureListsIsMutable();
lists_.set(index, builderForValue.build());
onChanged();
} else {
listsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder addLists(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList value) {
if (listsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListsIsMutable();
lists_.add(value);
onChanged();
} else {
listsBuilder_.addMessage(value);
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder addLists(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList value) {
if (listsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListsIsMutable();
lists_.add(index, value);
onChanged();
} else {
listsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder addLists(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder builderForValue) {
if (listsBuilder_ == null) {
ensureListsIsMutable();
lists_.add(builderForValue.build());
onChanged();
} else {
listsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder addLists(
int index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder builderForValue) {
if (listsBuilder_ == null) {
ensureListsIsMutable();
lists_.add(index, builderForValue.build());
onChanged();
} else {
listsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder addAllLists(
java.lang.Iterable extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList> values) {
if (listsBuilder_ == null) {
ensureListsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, lists_);
onChanged();
} else {
listsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder clearLists() {
if (listsBuilder_ == null) {
lists_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
listsBuilder_.clear();
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public Builder removeLists(int index) {
if (listsBuilder_ == null) {
ensureListsIsMutable();
lists_.remove(index);
onChanged();
} else {
listsBuilder_.remove(index);
}
return this;
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder getListsBuilder(
int index) {
return getListsFieldBuilder().getBuilder(index);
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder getListsOrBuilder(
int index) {
if (listsBuilder_ == null) {
return lists_.get(index); } else {
return listsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public java.util.List extends org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder>
getListsOrBuilderList() {
if (listsBuilder_ != null) {
return listsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(lists_);
}
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder addListsBuilder() {
return getListsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.getDefaultInstance());
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder addListsBuilder(
int index) {
return getListsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.getDefaultInstance());
}
/**
*
* lists contain a series topN lists ranked by timestamp
* if agg_func in query request is specified, lists' size should be one.
*
*
* repeated .banyandb.measure.v1.TopNList lists = 1;
*/
public java.util.List
getListsBuilderList() {
return getListsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder>
getListsFieldBuilder() {
if (listsBuilder_ == null) {
listsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNList.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNListOrBuilder>(
lists_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
lists_ = null;
}
return listsBuilder_;
}
@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.measure.v1.TopNResponse)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.TopNResponse)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopNResponse 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.measure.v1.BanyandbMeasure.TopNResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopNRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.TopNRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
java.util.List
getGroupsList();
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
int getGroupsCount();
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the element to return.
* @return The groups at the given index.
*/
java.lang.String getGroups(int index);
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
com.google.protobuf.ByteString
getGroupsBytes(int index);
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return Whether the timeRange field is set.
*/
boolean hasTimeRange();
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return The timeRange.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getTimeRange();
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder();
/**
*
* top_n set the how many items should be returned in each list.
*
*
* int32 top_n = 4 [(.validate.rules) = { ... }
* @return The topN.
*/
int getTopN();
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return The enum numeric value on the wire for agg.
*/
int getAggValue();
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return The agg.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction getAgg();
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
java.util.List
getConditionsList();
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getConditions(int index);
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
int getConditionsCount();
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder>
getConditionsOrBuilderList();
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder getConditionsOrBuilder(
int index);
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return The enum numeric value on the wire for fieldValueSort.
*/
int getFieldValueSortValue();
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return The fieldValueSort.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getFieldValueSort();
}
/**
*
* TopNRequest is the request contract for query.
*
*
* Protobuf type {@code banyandb.measure.v1.TopNRequest}
*/
public static final class TopNRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.TopNRequest)
TopNRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopNRequest.newBuilder() to construct.
private TopNRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopNRequest() {
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
name_ = "";
agg_ = 0;
conditions_ = java.util.Collections.emptyList();
fieldValueSort_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopNRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.Builder.class);
}
private int bitField0_;
public static final int GROUPS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
return groups_;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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 TIME_RANGE_FIELD_NUMBER = 3;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange timeRange_;
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return Whether the timeRange field is set.
*/
@java.lang.Override
public boolean hasTimeRange() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return The timeRange.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getTimeRange() {
return timeRange_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder() {
return timeRange_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
}
public static final int TOP_N_FIELD_NUMBER = 4;
private int topN_ = 0;
/**
*
* top_n set the how many items should be returned in each list.
*
*
* int32 top_n = 4 [(.validate.rules) = { ... }
* @return The topN.
*/
@java.lang.Override
public int getTopN() {
return topN_;
}
public static final int AGG_FIELD_NUMBER = 5;
private int agg_ = 0;
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return The enum numeric value on the wire for agg.
*/
@java.lang.Override public int getAggValue() {
return agg_;
}
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return The agg.
*/
@java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction getAgg() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.forNumber(agg_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.UNRECOGNIZED : result;
}
public static final int CONDITIONS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List conditions_;
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
@java.lang.Override
public java.util.List getConditionsList() {
return conditions_;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder>
getConditionsOrBuilderList() {
return conditions_;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
@java.lang.Override
public int getConditionsCount() {
return conditions_.size();
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getConditions(int index) {
return conditions_.get(index);
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
public static final int FIELD_VALUE_SORT_FIELD_NUMBER = 7;
private int fieldValueSort_ = 0;
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return The enum numeric value on the wire for fieldValueSort.
*/
@java.lang.Override public int getFieldValueSortValue() {
return fieldValueSort_;
}
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return The fieldValueSort.
*/
@java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getFieldValueSort() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.forNumber(fieldValueSort_);
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 {
for (int i = 0; i < groups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groups_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTimeRange());
}
if (topN_ != 0) {
output.writeInt32(4, topN_);
}
if (agg_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.AGGREGATION_FUNCTION_UNSPECIFIED.getNumber()) {
output.writeEnum(5, agg_);
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(6, conditions_.get(i));
}
if (fieldValueSort_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.SORT_UNSPECIFIED.getNumber()) {
output.writeEnum(7, fieldValueSort_);
}
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 < groups_.size(); i++) {
dataSize += computeStringSizeNoTag(groups_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTimeRange());
}
if (topN_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, topN_);
}
if (agg_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.AGGREGATION_FUNCTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, agg_);
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, conditions_.get(i));
}
if (fieldValueSort_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.SORT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, fieldValueSort_);
}
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.measure.v1.BanyandbMeasure.TopNRequest)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest) obj;
if (!getGroupsList()
.equals(other.getGroupsList())) return false;
if (!getName()
.equals(other.getName())) return false;
if (hasTimeRange() != other.hasTimeRange()) return false;
if (hasTimeRange()) {
if (!getTimeRange()
.equals(other.getTimeRange())) return false;
}
if (getTopN()
!= other.getTopN()) return false;
if (agg_ != other.agg_) return false;
if (!getConditionsList()
.equals(other.getConditionsList())) return false;
if (fieldValueSort_ != other.fieldValueSort_) 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 (getGroupsCount() > 0) {
hash = (37 * hash) + GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getGroupsList().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasTimeRange()) {
hash = (37 * hash) + TIME_RANGE_FIELD_NUMBER;
hash = (53 * hash) + getTimeRange().hashCode();
}
hash = (37 * hash) + TOP_N_FIELD_NUMBER;
hash = (53 * hash) + getTopN();
hash = (37 * hash) + AGG_FIELD_NUMBER;
hash = (53 * hash) + agg_;
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
hash = (37 * hash) + FIELD_VALUE_SORT_FIELD_NUMBER;
hash = (53 * hash) + fieldValueSort_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest 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.measure.v1.BanyandbMeasure.TopNRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest 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.measure.v1.BanyandbMeasure.TopNRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest 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.measure.v1.BanyandbMeasure.TopNRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest 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.measure.v1.BanyandbMeasure.TopNRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest 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.measure.v1.BanyandbMeasure.TopNRequest 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;
}
/**
*
* TopNRequest is the request contract for query.
*
*
* Protobuf type {@code banyandb.measure.v1.TopNRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.TopNRequest)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimeRangeFieldBuilder();
getConditionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
name_ = "";
timeRange_ = null;
if (timeRangeBuilder_ != null) {
timeRangeBuilder_.dispose();
timeRangeBuilder_ = null;
}
topN_ = 0;
agg_ = 0;
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
} else {
conditions_ = null;
conditionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
fieldValueSort_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_TopNRequest_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest result) {
if (conditionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.conditions_ = conditions_;
} else {
result.conditions_ = conditionsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
groups_.makeImmutable();
result.groups_ = groups_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timeRange_ = timeRangeBuilder_ == null
? timeRange_
: timeRangeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.topN_ = topN_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.agg_ = agg_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.fieldValueSort_ = fieldValueSort_;
}
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.measure.v1.BanyandbMeasure.TopNRequest) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest.getDefaultInstance()) return this;
if (!other.groups_.isEmpty()) {
if (groups_.isEmpty()) {
groups_ = other.groups_;
bitField0_ |= 0x00000001;
} else {
ensureGroupsIsMutable();
groups_.addAll(other.groups_);
}
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasTimeRange()) {
mergeTimeRange(other.getTimeRange());
}
if (other.getTopN() != 0) {
setTopN(other.getTopN());
}
if (other.agg_ != 0) {
setAggValue(other.getAggValue());
}
if (conditionsBuilder_ == null) {
if (!other.conditions_.isEmpty()) {
if (conditions_.isEmpty()) {
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureConditionsIsMutable();
conditions_.addAll(other.conditions_);
}
onChanged();
}
} else {
if (!other.conditions_.isEmpty()) {
if (conditionsBuilder_.isEmpty()) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000020);
conditionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConditionsFieldBuilder() : null;
} else {
conditionsBuilder_.addAllMessages(other.conditions_);
}
}
}
if (other.fieldValueSort_ != 0) {
setFieldValueSortValue(other.getFieldValueSortValue());
}
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();
ensureGroupsIsMutable();
groups_.add(s);
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTimeRangeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
topN_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
agg_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition m =
input.readMessage(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.parser(),
extensionRegistry);
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(m);
} else {
conditionsBuilder_.addMessage(m);
}
break;
} // case 50
case 56: {
fieldValueSort_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
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 groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGroupsIsMutable() {
if (!groups_.isModifiable()) {
groups_ = new com.google.protobuf.LazyStringArrayList(groups_);
}
bitField0_ |= 0x00000001;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
public com.google.protobuf.ProtocolStringList
getGroupsList() {
groups_.makeImmutable();
return groups_;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the element to return.
* @return The groups at the given index.
*/
public java.lang.String getGroups(int index) {
return groups_.get(index);
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index of the value to return.
* @return The bytes of the groups at the given index.
*/
public com.google.protobuf.ByteString
getGroupsBytes(int index) {
return groups_.getByteString(index);
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param index The index to set the value at.
* @param value The groups to set.
* @return This builder for chaining.
*/
public Builder setGroups(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupsIsMutable();
groups_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param value The groups to add.
* @return This builder for chaining.
*/
public Builder addGroups(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupsIsMutable();
groups_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param values The groups to add.
* @return This builder for chaining.
*/
public Builder addAllGroups(
java.lang.Iterable values) {
ensureGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groups_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearGroups() {
groups_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* groups indicate where the data points are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @param value The bytes of the groups to add.
* @return This builder for chaining.
*/
public Builder addGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGroupsIsMutable();
groups_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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;
}
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* name is the identity of a measure.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @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_ |= 0x00000002;
onChanged();
return this;
}
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange timeRange_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder> timeRangeBuilder_;
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return Whether the timeRange field is set.
*/
public boolean hasTimeRange() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
* @return The timeRange.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange getTimeRange() {
if (timeRangeBuilder_ == null) {
return timeRange_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
} else {
return timeRangeBuilder_.getMessage();
}
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder setTimeRange(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange value) {
if (timeRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeRange_ = value;
} else {
timeRangeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder setTimeRange(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder builderForValue) {
if (timeRangeBuilder_ == null) {
timeRange_ = builderForValue.build();
} else {
timeRangeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder mergeTimeRange(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange value) {
if (timeRangeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
timeRange_ != null &&
timeRange_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance()) {
getTimeRangeBuilder().mergeFrom(value);
} else {
timeRange_ = value;
}
} else {
timeRangeBuilder_.mergeFrom(value);
}
if (timeRange_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public Builder clearTimeRange() {
bitField0_ = (bitField0_ & ~0x00000004);
timeRange_ = null;
if (timeRangeBuilder_ != null) {
timeRangeBuilder_.dispose();
timeRangeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder getTimeRangeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTimeRangeFieldBuilder().getBuilder();
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder() {
if (timeRangeBuilder_ != null) {
return timeRangeBuilder_.getMessageOrBuilder();
} else {
return timeRange_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.getDefaultInstance() : timeRange_;
}
}
/**
*
* time_range is a range query with begin/end time of entities in the timeunit of milliseconds.
*
*
* .banyandb.model.v1.TimeRange time_range = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder>
getTimeRangeFieldBuilder() {
if (timeRangeBuilder_ == null) {
timeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRange.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder>(
getTimeRange(),
getParentForChildren(),
isClean());
timeRange_ = null;
}
return timeRangeBuilder_;
}
private int topN_ ;
/**
*
* top_n set the how many items should be returned in each list.
*
*
* int32 top_n = 4 [(.validate.rules) = { ... }
* @return The topN.
*/
@java.lang.Override
public int getTopN() {
return topN_;
}
/**
*
* top_n set the how many items should be returned in each list.
*
*
* int32 top_n = 4 [(.validate.rules) = { ... }
* @param value The topN to set.
* @return This builder for chaining.
*/
public Builder setTopN(int value) {
topN_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* top_n set the how many items should be returned in each list.
*
*
* int32 top_n = 4 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearTopN() {
bitField0_ = (bitField0_ & ~0x00000008);
topN_ = 0;
onChanged();
return this;
}
private int agg_ = 0;
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return The enum numeric value on the wire for agg.
*/
@java.lang.Override public int getAggValue() {
return agg_;
}
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @param value The enum numeric value on the wire for agg to set.
* @return This builder for chaining.
*/
public Builder setAggValue(int value) {
agg_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return The agg.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction getAgg() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.forNumber(agg_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction.UNRECOGNIZED : result;
}
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @param value The agg to set.
* @return This builder for chaining.
*/
public Builder setAgg(org.apache.skywalking.banyandb.model.v1.BanyandbModel.AggregationFunction value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
agg_ = value.getNumber();
onChanged();
return this;
}
/**
*
* agg aggregates lists grouped by field names in the time_range
* TODO validate enum defined_only
*
*
* .banyandb.model.v1.AggregationFunction agg = 5;
* @return This builder for chaining.
*/
public Builder clearAgg() {
bitField0_ = (bitField0_ & ~0x00000010);
agg_ = 0;
onChanged();
return this;
}
private java.util.List conditions_ =
java.util.Collections.emptyList();
private void ensureConditionsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
conditions_ = new java.util.ArrayList(conditions_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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> conditionsBuilder_;
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public java.util.List getConditionsList() {
if (conditionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(conditions_);
} else {
return conditionsBuilder_.getMessageList();
}
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public int getConditionsCount() {
if (conditionsBuilder_ == null) {
return conditions_.size();
} else {
return conditionsBuilder_.getCount();
}
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition getConditions(int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index);
} else {
return conditionsBuilder_.getMessage(index);
}
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder setConditions(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.set(index, value);
onChanged();
} else {
conditionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder setConditions(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.set(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder addConditions(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(value);
onChanged();
} else {
conditionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder addConditions(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(index, value);
onChanged();
} else {
conditionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder addConditions(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder addConditions(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder addAllConditions(
java.lang.Iterable extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition> values) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conditions_);
onChanged();
} else {
conditionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder clearConditions() {
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
conditionsBuilder_.clear();
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public Builder removeConditions(int index) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.remove(index);
onChanged();
} else {
conditionsBuilder_.remove(index);
}
return this;
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder getConditionsBuilder(
int index) {
return getConditionsFieldBuilder().getBuilder(index);
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder getConditionsOrBuilder(
int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index); } else {
return conditionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.ConditionOrBuilder>
getConditionsOrBuilderList() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(conditions_);
}
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder addConditionsBuilder() {
return getConditionsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance());
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.Builder addConditionsBuilder(
int index) {
return getConditionsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.Condition.getDefaultInstance());
}
/**
*
* criteria select counters. Only equals are acceptable.
*
*
* repeated .banyandb.model.v1.Condition conditions = 6;
*/
public java.util.List
getConditionsBuilderList() {
return getConditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
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>(
conditions_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
private int fieldValueSort_ = 0;
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return The enum numeric value on the wire for fieldValueSort.
*/
@java.lang.Override public int getFieldValueSortValue() {
return fieldValueSort_;
}
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @param value The enum numeric value on the wire for fieldValueSort to set.
* @return This builder for chaining.
*/
public Builder setFieldValueSortValue(int value) {
fieldValueSort_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return The fieldValueSort.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort getFieldValueSort() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.forNumber(fieldValueSort_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort.UNRECOGNIZED : result;
}
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @param value The fieldValueSort to set.
* @return This builder for chaining.
*/
public Builder setFieldValueSort(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Sort value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
fieldValueSort_ = value.getNumber();
onChanged();
return this;
}
/**
*
* field_value_sort indicates how to sort fields
*
*
* .banyandb.model.v1.Sort field_value_sort = 7;
* @return This builder for chaining.
*/
public Builder clearFieldValueSort() {
bitField0_ = (bitField0_ & ~0x00000040);
fieldValueSort_ = 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.measure.v1.TopNRequest)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.TopNRequest)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.TopNRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopNRequest 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.measure.v1.BanyandbMeasure.TopNRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataPointValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.DataPointValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
java.util.List
getTagFamiliesList();
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getTagFamilies(int index);
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
int getTagFamiliesCount();
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder>
getTagFamiliesOrBuilderList();
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder getTagFamiliesOrBuilder(
int index);
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
java.util.List
getFieldsList();
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getFields(int index);
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
int getFieldsCount();
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>
getFieldsOrBuilderList();
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
*DataPointValue is the data point for writing. It only contains values.
*
*
* Protobuf type {@code banyandb.measure.v1.DataPointValue}
*/
public static final class DataPointValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.DataPointValue)
DataPointValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataPointValue.newBuilder() to construct.
private DataPointValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataPointValue() {
tagFamilies_ = java.util.Collections.emptyList();
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataPointValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPointValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPointValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder.class);
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
public static final int TAG_FAMILIES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List tagFamilies_;
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List getTagFamiliesList() {
return tagFamilies_;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder>
getTagFamiliesOrBuilderList() {
return tagFamilies_;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public int getTagFamiliesCount() {
return tagFamilies_.size();
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getTagFamilies(int index) {
return tagFamilies_.get(index);
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder getTagFamiliesOrBuilder(
int index) {
return tagFamilies_.get(index);
}
public static final int FIELDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
@java.lang.Override
public java.util.List getFieldsList() {
return fields_;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getFields(int index) {
return fields_.get(index);
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
output.writeMessage(2, tagFamilies_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(3, fields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tagFamilies_.get(i));
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, fields_.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.measure.v1.BanyandbMeasure.DataPointValue)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!getTagFamiliesList()
.equals(other.getTagFamiliesList())) return false;
if (!getFieldsList()
.equals(other.getFieldsList())) 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 (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
if (getTagFamiliesCount() > 0) {
hash = (37 * hash) + TAG_FAMILIES_FIELD_NUMBER;
hash = (53 * hash) + getTagFamiliesList().hashCode();
}
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue 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.measure.v1.BanyandbMeasure.DataPointValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue 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.measure.v1.BanyandbMeasure.DataPointValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue 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.measure.v1.BanyandbMeasure.DataPointValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue 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.measure.v1.BanyandbMeasure.DataPointValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue 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.measure.v1.BanyandbMeasure.DataPointValue 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;
}
/**
*
*DataPointValue is the data point for writing. It only contains values.
*
*
* Protobuf type {@code banyandb.measure.v1.DataPointValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.DataPointValue)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPointValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPointValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
getTagFamiliesFieldBuilder();
getFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
} else {
tagFamilies_ = null;
tagFamiliesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_DataPointValue_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue result) {
if (tagFamiliesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
tagFamilies_ = java.util.Collections.unmodifiableList(tagFamilies_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tagFamilies_ = tagFamilies_;
} else {
result.tagFamilies_ = tagFamiliesBuilder_.build();
}
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.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.measure.v1.BanyandbMeasure.DataPointValue) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (tagFamiliesBuilder_ == null) {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamilies_.isEmpty()) {
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTagFamiliesIsMutable();
tagFamilies_.addAll(other.tagFamilies_);
}
onChanged();
}
} else {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamiliesBuilder_.isEmpty()) {
tagFamiliesBuilder_.dispose();
tagFamiliesBuilder_ = null;
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000002);
tagFamiliesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagFamiliesFieldBuilder() : null;
} else {
tagFamiliesBuilder_.addAllMessages(other.tagFamilies_);
}
}
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000004);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
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(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite m =
input.readMessage(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.parser(),
extensionRegistry);
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.add(m);
} else {
tagFamiliesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue m =
input.readMessage(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* timestamp is in the timeunit of milliseconds.
*
*
* .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private java.util.List tagFamilies_ =
java.util.Collections.emptyList();
private void ensureTagFamiliesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tagFamilies_ = new java.util.ArrayList(tagFamilies_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder> tagFamiliesBuilder_;
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public java.util.List getTagFamiliesList() {
if (tagFamiliesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tagFamilies_);
} else {
return tagFamiliesBuilder_.getMessageList();
}
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public int getTagFamiliesCount() {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.size();
} else {
return tagFamiliesBuilder_.getCount();
}
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getTagFamilies(int index) {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.get(index);
} else {
return tagFamiliesBuilder_.getMessage(index);
}
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder setTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite value) {
if (tagFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagFamiliesIsMutable();
tagFamilies_.set(index, value);
onChanged();
} else {
tagFamiliesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder setTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder builderForValue) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.set(index, builderForValue.build());
onChanged();
} else {
tagFamiliesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder addTagFamilies(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite value) {
if (tagFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagFamiliesIsMutable();
tagFamilies_.add(value);
onChanged();
} else {
tagFamiliesBuilder_.addMessage(value);
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder addTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite value) {
if (tagFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagFamiliesIsMutable();
tagFamilies_.add(index, value);
onChanged();
} else {
tagFamiliesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder addTagFamilies(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder builderForValue) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.add(builderForValue.build());
onChanged();
} else {
tagFamiliesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder addTagFamilies(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder builderForValue) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.add(index, builderForValue.build());
onChanged();
} else {
tagFamiliesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder addAllTagFamilies(
java.lang.Iterable extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite> values) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tagFamilies_);
onChanged();
} else {
tagFamiliesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder clearTagFamilies() {
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
tagFamiliesBuilder_.clear();
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public Builder removeTagFamilies(int index) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.remove(index);
onChanged();
} else {
tagFamiliesBuilder_.remove(index);
}
return this;
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder getTagFamiliesBuilder(
int index) {
return getTagFamiliesFieldBuilder().getBuilder(index);
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder getTagFamiliesOrBuilder(
int index) {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.get(index); } else {
return tagFamiliesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder>
getTagFamiliesOrBuilderList() {
if (tagFamiliesBuilder_ != null) {
return tagFamiliesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tagFamilies_);
}
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder addTagFamiliesBuilder() {
return getTagFamiliesFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.getDefaultInstance());
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder addTagFamiliesBuilder(
int index) {
return getTagFamiliesFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.getDefaultInstance());
}
/**
*
* the order of tag_families' items match the measure schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 2 [(.validate.rules) = { ... }
*/
public java.util.List
getTagFamiliesBuilderList() {
return getTagFamiliesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder>
getTagFamiliesFieldBuilder() {
if (tagFamiliesBuilder_ == null) {
tagFamiliesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder>(
tagFamilies_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
tagFamilies_ = null;
}
return tagFamiliesBuilder_;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder> fieldsBuilder_;
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder setFields(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder setFields(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder addFields(org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder addFields(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder addFields(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder addFields(
int index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder addAllFields(
java.lang.Iterable extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance());
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.getDefaultInstance());
}
/**
*
* the order of fields match the measure schema
*
*
* repeated .banyandb.model.v1.FieldValue fields = 3;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValue.Builder, org.apache.skywalking.banyandb.model.v1.BanyandbModel.FieldValueOrBuilder>(
fields_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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.measure.v1.DataPointValue)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.DataPointValue)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataPointValue 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.measure.v1.BanyandbMeasure.DataPointValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.WriteRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return The metadata.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata();
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder();
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
* @return Whether the dataPoint field is set.
*/
boolean hasDataPoint();
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
* @return The dataPoint.
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue getDataPoint();
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder getDataPointOrBuilder();
/**
*
* the message_id is required.
*
*
* uint64 message_id = 3 [(.validate.rules) = { ... }
* @return The messageId.
*/
long getMessageId();
}
/**
*
* WriteRequest is the request contract for write
*
*
* Protobuf type {@code banyandb.measure.v1.WriteRequest}
*/
public static final class WriteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.WriteRequest)
WriteRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteRequest.newBuilder() to construct.
private WriteRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata metadata_;
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return The metadata.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata() {
return metadata_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
}
public static final int DATA_POINT_FIELD_NUMBER = 2;
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue dataPoint_;
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
* @return Whether the dataPoint field is set.
*/
@java.lang.Override
public boolean hasDataPoint() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
* @return The dataPoint.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue getDataPoint() {
return dataPoint_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance() : dataPoint_;
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder getDataPointOrBuilder() {
return dataPoint_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance() : dataPoint_;
}
public static final int MESSAGE_ID_FIELD_NUMBER = 3;
private long messageId_ = 0L;
/**
*
* the message_id is required.
*
*
* uint64 message_id = 3 [(.validate.rules) = { ... }
* @return The messageId.
*/
@java.lang.Override
public long getMessageId() {
return messageId_;
}
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, getMetadata());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getDataPoint());
}
if (messageId_ != 0L) {
output.writeUInt64(3, messageId_);
}
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, getMetadata());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDataPoint());
}
if (messageId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, messageId_);
}
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.measure.v1.BanyandbMeasure.WriteRequest)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest) obj;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (hasDataPoint() != other.hasDataPoint()) return false;
if (hasDataPoint()) {
if (!getDataPoint()
.equals(other.getDataPoint())) return false;
}
if (getMessageId()
!= other.getMessageId()) 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 (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasDataPoint()) {
hash = (37 * hash) + DATA_POINT_FIELD_NUMBER;
hash = (53 * hash) + getDataPoint().hashCode();
}
hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMessageId());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest 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.measure.v1.BanyandbMeasure.WriteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest 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.measure.v1.BanyandbMeasure.WriteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest 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.measure.v1.BanyandbMeasure.WriteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest 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.measure.v1.BanyandbMeasure.WriteRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest 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.measure.v1.BanyandbMeasure.WriteRequest 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;
}
/**
*
* WriteRequest is the request contract for write
*
*
* Protobuf type {@code banyandb.measure.v1.WriteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.WriteRequest)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getDataPointFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
dataPoint_ = null;
if (dataPointBuilder_ != null) {
dataPointBuilder_.dispose();
dataPointBuilder_ = null;
}
messageId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteRequest_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.metadata_ = metadataBuilder_ == null
? metadata_
: metadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dataPoint_ = dataPointBuilder_ == null
? dataPoint_
: dataPointBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.messageId_ = messageId_;
}
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.measure.v1.BanyandbMeasure.WriteRequest) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasDataPoint()) {
mergeDataPoint(other.getDataPoint());
}
if (other.getMessageId() != 0L) {
setMessageId(other.getMessageId());
}
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(
getMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getDataPointFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
messageId_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder> metadataBuilder_;
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return The metadata.
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
public Builder setMetadata(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
public Builder setMetadata(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
public Builder mergeMetadata(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
metadata_ != null &&
metadata_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000001);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
}
}
/**
*
* the metadata is required.
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue dataPoint_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder> dataPointBuilder_;
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
* @return Whether the dataPoint field is set.
*/
public boolean hasDataPoint() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
* @return The dataPoint.
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue getDataPoint() {
if (dataPointBuilder_ == null) {
return dataPoint_ == null ? org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance() : dataPoint_;
} else {
return dataPointBuilder_.getMessage();
}
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
public Builder setDataPoint(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue value) {
if (dataPointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataPoint_ = value;
} else {
dataPointBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
public Builder setDataPoint(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder builderForValue) {
if (dataPointBuilder_ == null) {
dataPoint_ = builderForValue.build();
} else {
dataPointBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
public Builder mergeDataPoint(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue value) {
if (dataPointBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
dataPoint_ != null &&
dataPoint_ != org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance()) {
getDataPointBuilder().mergeFrom(value);
} else {
dataPoint_ = value;
}
} else {
dataPointBuilder_.mergeFrom(value);
}
if (dataPoint_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
public Builder clearDataPoint() {
bitField0_ = (bitField0_ & ~0x00000002);
dataPoint_ = null;
if (dataPointBuilder_ != null) {
dataPointBuilder_.dispose();
dataPointBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder getDataPointBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDataPointFieldBuilder().getBuilder();
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder getDataPointOrBuilder() {
if (dataPointBuilder_ != null) {
return dataPointBuilder_.getMessageOrBuilder();
} else {
return dataPoint_ == null ?
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.getDefaultInstance() : dataPoint_;
}
}
/**
*
* the data_point is required.
*
*
* .banyandb.measure.v1.DataPointValue data_point = 2 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder>
getDataPointFieldBuilder() {
if (dataPointBuilder_ == null) {
dataPointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValue.Builder, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.DataPointValueOrBuilder>(
getDataPoint(),
getParentForChildren(),
isClean());
dataPoint_ = null;
}
return dataPointBuilder_;
}
private long messageId_ ;
/**
*
* the message_id is required.
*
*
* uint64 message_id = 3 [(.validate.rules) = { ... }
* @return The messageId.
*/
@java.lang.Override
public long getMessageId() {
return messageId_;
}
/**
*
* the message_id is required.
*
*
* uint64 message_id = 3 [(.validate.rules) = { ... }
* @param value The messageId to set.
* @return This builder for chaining.
*/
public Builder setMessageId(long value) {
messageId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the message_id is required.
*
*
* uint64 message_id = 3 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearMessageId() {
bitField0_ = (bitField0_ & ~0x00000004);
messageId_ = 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.measure.v1.WriteRequest)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.WriteRequest)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteRequest 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.measure.v1.BanyandbMeasure.WriteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.measure.v1.WriteResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* the message_id from request.
*
*
* uint64 message_id = 1 [(.validate.rules) = { ... }
* @return The messageId.
*/
long getMessageId();
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return The status.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status getStatus();
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
* @return The metadata.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata();
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder();
}
/**
*
* WriteResponse is the response contract for write
*
*
* Protobuf type {@code banyandb.measure.v1.WriteResponse}
*/
public static final class WriteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.measure.v1.WriteResponse)
WriteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WriteResponse.newBuilder() to construct.
private WriteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WriteResponse() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WriteResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.Builder.class);
}
private int bitField0_;
public static final int MESSAGE_ID_FIELD_NUMBER = 1;
private long messageId_ = 0L;
/**
*
* the message_id from request.
*
*
* uint64 message_id = 1 [(.validate.rules) = { ... }
* @return The messageId.
*/
@java.lang.Override
public long getMessageId() {
return messageId_;
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_ = 0;
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return The status.
*/
@java.lang.Override public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status getStatus() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status.forNumber(status_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status.UNRECOGNIZED : result;
}
public static final int METADATA_FIELD_NUMBER = 3;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata metadata_;
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
* @return The metadata.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata() {
return metadata_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
}
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 (messageId_ != 0L) {
output.writeUInt64(1, messageId_);
}
if (status_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(2, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getMetadata());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, messageId_);
}
if (status_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMetadata());
}
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.measure.v1.BanyandbMeasure.WriteResponse)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse other = (org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse) obj;
if (getMessageId()
!= other.getMessageId()) return false;
if (status_ != other.status_) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) 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) + MESSAGE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMessageId());
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse 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.measure.v1.BanyandbMeasure.WriteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse 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.measure.v1.BanyandbMeasure.WriteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse 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.measure.v1.BanyandbMeasure.WriteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse 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.measure.v1.BanyandbMeasure.WriteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse 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.measure.v1.BanyandbMeasure.WriteResponse 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;
}
/**
*
* WriteResponse is the response contract for write
*
*
* Protobuf type {@code banyandb.measure.v1.WriteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.measure.v1.WriteResponse)
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.class, org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
messageId_ = 0L;
status_ = 0;
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.internal_static_banyandb_measure_v1_WriteResponse_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse build() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse buildPartial() {
org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse result = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.messageId_ = messageId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = status_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.metadata_ = metadataBuilder_ == null
? metadata_
: metadataBuilder_.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.measure.v1.BanyandbMeasure.WriteResponse) {
return mergeFrom((org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse other) {
if (other == org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse.getDefaultInstance()) return this;
if (other.getMessageId() != 0L) {
setMessageId(other.getMessageId());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
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: {
messageId_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
status_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getMetadataFieldBuilder().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 long messageId_ ;
/**
*
* the message_id from request.
*
*
* uint64 message_id = 1 [(.validate.rules) = { ... }
* @return The messageId.
*/
@java.lang.Override
public long getMessageId() {
return messageId_;
}
/**
*
* the message_id from request.
*
*
* uint64 message_id = 1 [(.validate.rules) = { ... }
* @param value The messageId to set.
* @return This builder for chaining.
*/
public Builder setMessageId(long value) {
messageId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* the message_id from request.
*
*
* uint64 message_id = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearMessageId() {
bitField0_ = (bitField0_ & ~0x00000001);
messageId_ = 0L;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return The status.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status getStatus() {
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status result = org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status.forNumber(status_);
return result == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status.UNRECOGNIZED : result;
}
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* status indicates the request processing result
*
*
* .banyandb.model.v1.Status status = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
onChanged();
return this;
}
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder> metadataBuilder_;
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
* @return The metadata.
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
public Builder setMetadata(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
public Builder setMetadata(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
public Builder mergeMetadata(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
metadata_ != null &&
metadata_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000004);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder getMetadataBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance() : metadata_;
}
}
/**
*
* the metadata from request when request fails
*
*
* .banyandb.common.v1.Metadata metadata = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
@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.measure.v1.WriteResponse)
}
// @@protoc_insertion_point(class_scope:banyandb.measure.v1.WriteResponse)
private static final org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse();
}
public static org.apache.skywalking.banyandb.measure.v1.BanyandbMeasure.WriteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WriteResponse 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.measure.v1.BanyandbMeasure.WriteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_DataPoint_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_DataPoint_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_DataPoint_Field_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_DataPoint_Field_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_QueryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_QueryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_QueryRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_QueryRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_QueryRequest_GroupBy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_QueryRequest_GroupBy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_QueryRequest_Aggregation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_QueryRequest_Aggregation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_QueryRequest_Top_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_QueryRequest_Top_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_TopNList_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_TopNList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_TopNList_Item_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_TopNList_Item_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_TopNResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_TopNResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_TopNRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_TopNRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_DataPointValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_DataPointValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_WriteRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_WriteRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_measure_v1_WriteResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_measure_v1_WriteResponse_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-measure.proto\022\023ba" +
"nyandb.measure.v1\032\037google/protobuf/times" +
"tamp.proto\032\027validate/validate.proto\032!ban" +
"yandb/v1/banyandb-common.proto\032 banyandb" +
"/v1/banyandb-model.proto\"\351\001\n\tDataPoint\022-" +
"\n\ttimestamp\030\001 \001(\0132\032.google.protobuf.Time" +
"stamp\0222\n\014tag_families\030\002 \003(\0132\034.banyandb.m" +
"odel.v1.TagFamily\0224\n\006fields\030\003 \003(\0132$.bany" +
"andb.measure.v1.DataPoint.Field\032C\n\005Field" +
"\022\014\n\004name\030\001 \001(\t\022,\n\005value\030\002 \001(\0132\035.banyandb" +
".model.v1.FieldValue\"n\n\rQueryResponse\0223\n" +
"\013data_points\030\001 \003(\0132\036.banyandb.measure.v1" +
".DataPoint\022(\n\005trace\030\002 \001(\0132\031.banyandb.com" +
"mon.v1.Trace\"\363\006\n\014QueryRequest\022\030\n\006groups\030" +
"\001 \003(\tB\010\372B\005\222\001\002\010\001\022\025\n\004name\030\002 \001(\tB\007\372B\004r\002\020\001\022:" +
"\n\ntime_range\030\003 \001(\0132\034.banyandb.model.v1.T" +
"imeRangeB\010\372B\005\212\001\002\020\001\022-\n\010criteria\030\004 \001(\0132\033.b" +
"anyandb.model.v1.Criteria\0228\n\016tag_project" +
"ion\030\005 \001(\0132 .banyandb.model.v1.TagProject" +
"ion\022K\n\020field_projection\030\006 \001(\01321.banyandb" +
".measure.v1.QueryRequest.FieldProjection" +
"\022;\n\010group_by\030\007 \001(\0132).banyandb.measure.v1" +
".QueryRequest.GroupBy\022:\n\003agg\030\010 \001(\0132-.ban" +
"yandb.measure.v1.QueryRequest.Aggregatio" +
"n\0222\n\003top\030\t \001(\0132%.banyandb.measure.v1.Que" +
"ryRequest.Top\022\016\n\006offset\030\n \001(\r\022\r\n\005limit\030\013" +
" \001(\r\022/\n\010order_by\030\014 \001(\0132\035.banyandb.model." +
"v1.QueryOrder\022\r\n\005trace\030\r \001(\010\032 \n\017FieldPro" +
"jection\022\r\n\005names\030\001 \003(\t\032W\n\007GroupBy\0228\n\016tag" +
"_projection\030\001 \001(\0132 .banyandb.model.v1.Ta" +
"gProjection\022\022\n\nfield_name\030\002 \001(\t\032[\n\013Aggre" +
"gation\0228\n\010function\030\001 \001(\0162&.banyandb.mode" +
"l.v1.AggregationFunction\022\022\n\nfield_name\030\002" +
" \001(\t\032\\\n\003Top\022\016\n\006number\030\001 \001(\005\022\022\n\nfield_nam" +
"e\030\002 \001(\t\0221\n\020field_value_sort\030\003 \001(\0162\027.bany" +
"andb.model.v1.Sort\"\312\001\n\010TopNList\022-\n\ttimes" +
"tamp\030\001 \001(\0132\032.google.protobuf.Timestamp\0221" +
"\n\005items\030\002 \003(\0132\".banyandb.measure.v1.TopN" +
"List.Item\032\\\n\004Item\022&\n\006entity\030\001 \003(\0132\026.bany" +
"andb.model.v1.Tag\022,\n\005value\030\002 \001(\0132\035.banya" +
"ndb.model.v1.FieldValue\"<\n\014TopNResponse\022" +
",\n\005lists\030\001 \003(\0132\035.banyandb.measure.v1.Top" +
"NList\"\254\002\n\013TopNRequest\022\030\n\006groups\030\001 \003(\tB\010\372" +
"B\005\222\001\002\010\001\022\025\n\004name\030\002 \001(\tB\007\372B\004r\002\020\001\022:\n\ntime_r" +
"ange\030\003 \001(\0132\034.banyandb.model.v1.TimeRange" +
"B\010\372B\005\212\001\002\020\001\022\026\n\005top_n\030\004 \001(\005B\007\372B\004\032\002 \000\0223\n\003ag" +
"g\030\005 \001(\0162&.banyandb.model.v1.AggregationF" +
"unction\0220\n\nconditions\030\006 \003(\0132\034.banyandb.m" +
"odel.v1.Condition\0221\n\020field_value_sort\030\007 " +
"\001(\0162\027.banyandb.model.v1.Sort\"\276\001\n\016DataPoi" +
"ntValue\0227\n\ttimestamp\030\001 \001(\0132\032.google.prot" +
"obuf.TimestampB\010\372B\005\262\001\002\010\001\022D\n\014tag_families" +
"\030\002 \003(\0132$.banyandb.model.v1.TagFamilyForW" +
"riteB\010\372B\005\222\001\002\010\001\022-\n\006fields\030\003 \003(\0132\035.banyand" +
"b.model.v1.FieldValue\"\250\001\n\014WriteRequest\0228" +
"\n\010metadata\030\001 \001(\0132\034.banyandb.common.v1.Me" +
"tadataB\010\372B\005\212\001\002\020\001\022A\n\ndata_point\030\002 \001(\0132#.b" +
"anyandb.measure.v1.DataPointValueB\010\372B\005\212\001" +
"\002\020\001\022\033\n\nmessage_id\030\003 \001(\004B\007\372B\0042\002 \000\"\221\001\n\rWri" +
"teResponse\022\033\n\nmessage_id\030\001 \001(\004B\007\372B\0042\002 \000\022" +
"3\n\006status\030\002 \001(\0162\031.banyandb.model.v1.Stat" +
"usB\010\372B\005\202\001\002\020\001\022.\n\010metadata\030\003 \001(\0132\034.banyand" +
"b.common.v1.Metadata2\201\002\n\016MeasureService\022" +
"N\n\005Query\022!.banyandb.measure.v1.QueryRequ" +
"est\032\".banyandb.measure.v1.QueryResponse\022" +
"R\n\005Write\022!.banyandb.measure.v1.WriteRequ" +
"est\032\".banyandb.measure.v1.WriteResponse(" +
"\0010\001\022K\n\004TopN\022 .banyandb.measure.v1.TopNRe" +
"quest\032!.banyandb.measure.v1.TopNResponse" +
"B+\n)org.apache.skywalking.banyandb.measu" +
"re.v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
io.envoyproxy.pgv.validate.Validate.getDescriptor(),
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.getDescriptor(),
org.apache.skywalking.banyandb.model.v1.BanyandbModel.getDescriptor(),
});
internal_static_banyandb_measure_v1_DataPoint_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_banyandb_measure_v1_DataPoint_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_DataPoint_descriptor,
new java.lang.String[] { "Timestamp", "TagFamilies", "Fields", });
internal_static_banyandb_measure_v1_DataPoint_Field_descriptor =
internal_static_banyandb_measure_v1_DataPoint_descriptor.getNestedTypes().get(0);
internal_static_banyandb_measure_v1_DataPoint_Field_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_DataPoint_Field_descriptor,
new java.lang.String[] { "Name", "Value", });
internal_static_banyandb_measure_v1_QueryResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_banyandb_measure_v1_QueryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_QueryResponse_descriptor,
new java.lang.String[] { "DataPoints", "Trace", });
internal_static_banyandb_measure_v1_QueryRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_banyandb_measure_v1_QueryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_QueryRequest_descriptor,
new java.lang.String[] { "Groups", "Name", "TimeRange", "Criteria", "TagProjection", "FieldProjection", "GroupBy", "Agg", "Top", "Offset", "Limit", "OrderBy", "Trace", });
internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_descriptor =
internal_static_banyandb_measure_v1_QueryRequest_descriptor.getNestedTypes().get(0);
internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_QueryRequest_FieldProjection_descriptor,
new java.lang.String[] { "Names", });
internal_static_banyandb_measure_v1_QueryRequest_GroupBy_descriptor =
internal_static_banyandb_measure_v1_QueryRequest_descriptor.getNestedTypes().get(1);
internal_static_banyandb_measure_v1_QueryRequest_GroupBy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_QueryRequest_GroupBy_descriptor,
new java.lang.String[] { "TagProjection", "FieldName", });
internal_static_banyandb_measure_v1_QueryRequest_Aggregation_descriptor =
internal_static_banyandb_measure_v1_QueryRequest_descriptor.getNestedTypes().get(2);
internal_static_banyandb_measure_v1_QueryRequest_Aggregation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_QueryRequest_Aggregation_descriptor,
new java.lang.String[] { "Function", "FieldName", });
internal_static_banyandb_measure_v1_QueryRequest_Top_descriptor =
internal_static_banyandb_measure_v1_QueryRequest_descriptor.getNestedTypes().get(3);
internal_static_banyandb_measure_v1_QueryRequest_Top_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_QueryRequest_Top_descriptor,
new java.lang.String[] { "Number", "FieldName", "FieldValueSort", });
internal_static_banyandb_measure_v1_TopNList_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_banyandb_measure_v1_TopNList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_TopNList_descriptor,
new java.lang.String[] { "Timestamp", "Items", });
internal_static_banyandb_measure_v1_TopNList_Item_descriptor =
internal_static_banyandb_measure_v1_TopNList_descriptor.getNestedTypes().get(0);
internal_static_banyandb_measure_v1_TopNList_Item_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_TopNList_Item_descriptor,
new java.lang.String[] { "Entity", "Value", });
internal_static_banyandb_measure_v1_TopNResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_banyandb_measure_v1_TopNResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_TopNResponse_descriptor,
new java.lang.String[] { "Lists", });
internal_static_banyandb_measure_v1_TopNRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_banyandb_measure_v1_TopNRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_TopNRequest_descriptor,
new java.lang.String[] { "Groups", "Name", "TimeRange", "TopN", "Agg", "Conditions", "FieldValueSort", });
internal_static_banyandb_measure_v1_DataPointValue_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_banyandb_measure_v1_DataPointValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_DataPointValue_descriptor,
new java.lang.String[] { "Timestamp", "TagFamilies", "Fields", });
internal_static_banyandb_measure_v1_WriteRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_banyandb_measure_v1_WriteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_WriteRequest_descriptor,
new java.lang.String[] { "Metadata", "DataPoint", "MessageId", });
internal_static_banyandb_measure_v1_WriteResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_banyandb_measure_v1_WriteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_measure_v1_WriteResponse_descriptor,
new java.lang.String[] { "MessageId", "Status", "Metadata", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(io.envoyproxy.pgv.validate.Validate.rules);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.TimestampProto.getDescriptor();
io.envoyproxy.pgv.validate.Validate.getDescriptor();
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.getDescriptor();
org.apache.skywalking.banyandb.model.v1.BanyandbModel.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy