org.apache.skywalking.banyandb.stream.v1.BanyandbStream Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: banyandb/v1/banyandb-stream.proto
// Protobuf Java Version: 3.25.3
package org.apache.skywalking.banyandb.stream.v1;
public final class BanyandbStream {
private BanyandbStream() {}
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 ElementOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.stream.v1.Element)
com.google.protobuf.MessageOrBuilder {
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The elementId.
*/
java.lang.String getElementId();
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The bytes for elementId.
*/
com.google.protobuf.ByteString
getElementIdBytes();
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
java.util.List
getTagFamiliesList();
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getTagFamilies(int index);
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
int getTagFamiliesCount();
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>
getTagFamiliesOrBuilderList();
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder getTagFamiliesOrBuilder(
int index);
}
/**
*
* Element represents
* (stream context) a Span defined in Google Dapper paper or equivalently a Segment in Skywalking.
* (Log context) a log
*
*
* Protobuf type {@code banyandb.stream.v1.Element}
*/
public static final class Element extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.stream.v1.Element)
ElementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Element.newBuilder() to construct.
private Element(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Element() {
elementId_ = "";
tagFamilies_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Element();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_Element_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_Element_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder.class);
}
private int bitField0_;
public static final int ELEMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object elementId_ = "";
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The elementId.
*/
@java.lang.Override
public java.lang.String getElementId() {
java.lang.Object ref = elementId_;
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();
elementId_ = s;
return s;
}
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The bytes for elementId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getElementIdBytes() {
java.lang.Object ref = elementId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
elementId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
@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 = 3;
@SuppressWarnings("serial")
private java.util.List tagFamilies_;
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
@java.lang.Override
public java.util.List getTagFamiliesList() {
return tagFamilies_;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder>
getTagFamiliesOrBuilderList() {
return tagFamilies_;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
@java.lang.Override
public int getTagFamiliesCount() {
return tagFamilies_.size();
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getTagFamilies(int index) {
return tagFamilies_.get(index);
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder getTagFamiliesOrBuilder(
int index) {
return tagFamilies_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(elementId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, elementId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
output.writeMessage(3, tagFamilies_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(elementId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, elementId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tagFamilies_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element other = (org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element) obj;
if (!getElementId()
.equals(other.getElementId())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!getTagFamiliesList()
.equals(other.getTagFamiliesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ELEMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getElementId().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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element 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.stream.v1.BanyandbStream.Element parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element 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.stream.v1.BanyandbStream.Element parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element 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.stream.v1.BanyandbStream.Element parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element 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.stream.v1.BanyandbStream.Element parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element 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.stream.v1.BanyandbStream.Element 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;
}
/**
*
* Element represents
* (stream context) a Span defined in Google Dapper paper or equivalently a Segment in Skywalking.
* (Log context) a log
*
*
* Protobuf type {@code banyandb.stream.v1.Element}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.stream.v1.Element)
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_Element_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_Element_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
elementId_ = "";
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
} else {
tagFamilies_ = null;
tagFamiliesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_Element_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element build() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element buildPartial() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element result = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element result) {
if (tagFamiliesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
tagFamilies_ = java.util.Collections.unmodifiableList(tagFamilies_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tagFamilies_ = tagFamilies_;
} else {
result.tagFamilies_ = tagFamiliesBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.elementId_ = elementId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 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.stream.v1.BanyandbStream.Element) {
return mergeFrom((org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element other) {
if (other == org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.getDefaultInstance()) return this;
if (!other.getElementId().isEmpty()) {
elementId_ = other.elementId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (tagFamiliesBuilder_ == null) {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamilies_.isEmpty()) {
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTagFamiliesIsMutable();
tagFamilies_.addAll(other.tagFamilies_);
}
onChanged();
}
} else {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamiliesBuilder_.isEmpty()) {
tagFamiliesBuilder_.dispose();
tagFamiliesBuilder_ = null;
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000004);
tagFamiliesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagFamiliesFieldBuilder() : null;
} else {
tagFamiliesBuilder_.addAllMessages(other.tagFamilies_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
elementId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
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 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 java.lang.Object elementId_ = "";
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The elementId.
*/
public java.lang.String getElementId() {
java.lang.Object ref = elementId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
elementId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The bytes for elementId.
*/
public com.google.protobuf.ByteString
getElementIdBytes() {
java.lang.Object ref = elementId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
elementId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @param value The elementId to set.
* @return This builder for chaining.
*/
public Builder setElementId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
elementId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return This builder for chaining.
*/
public Builder clearElementId() {
elementId_ = getDefaultInstance().getElementId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @param value The bytes for elementId to set.
* @return This builder for chaining.
*/
public Builder setElementIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
elementId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
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 represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @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 represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* timestamp represents a millisecond
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
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_ & 0x00000004) != 0)) {
tagFamilies_ = new java.util.ArrayList(tagFamilies_);
bitField0_ |= 0x00000004;
}
}
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_;
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public java.util.List getTagFamiliesList() {
if (tagFamiliesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tagFamilies_);
} else {
return tagFamiliesBuilder_.getMessageList();
}
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public int getTagFamiliesCount() {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.size();
} else {
return tagFamiliesBuilder_.getCount();
}
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily getTagFamilies(int index) {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.get(index);
} else {
return tagFamiliesBuilder_.getMessage(index);
}
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public Builder clearTagFamilies() {
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tagFamiliesBuilder_.clear();
}
return this;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public Builder removeTagFamilies(int index) {
if (tagFamiliesBuilder_ == null) {
ensureTagFamiliesIsMutable();
tagFamilies_.remove(index);
onChanged();
} else {
tagFamiliesBuilder_.remove(index);
}
return this;
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder getTagFamiliesBuilder(
int index) {
return getTagFamiliesFieldBuilder().getBuilder(index);
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyOrBuilder getTagFamiliesOrBuilder(
int index) {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.get(index); } else {
return tagFamiliesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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_);
}
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.Builder addTagFamiliesBuilder() {
return getTagFamiliesFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamily.getDefaultInstance());
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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());
}
/**
*
* fields contains all indexed Field. Some typical names,
* - stream_id
* - duration
* - service_name
* - service_instance_id
* - end_time_milliseconds
*
*
* repeated .banyandb.model.v1.TagFamily tag_families = 3;
*/
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_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
tagFamilies_ = null;
}
return tagFamiliesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:banyandb.stream.v1.Element)
}
// @@protoc_insertion_point(class_scope:banyandb.stream.v1.Element)
private static final org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element();
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Element 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.stream.v1.BanyandbStream.Element getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.stream.v1.QueryResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
java.util.List
getElementsList();
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element getElements(int index);
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
int getElementsCount();
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
java.util.List extends org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder>
getElementsOrBuilderList();
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder getElementsOrBuilder(
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.stream.v1.QueryResponse}
*/
public static final class QueryResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.stream.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() {
elements_ = 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.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse.Builder.class);
}
private int bitField0_;
public static final int ELEMENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List elements_;
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
@java.lang.Override
public java.util.List getElementsList() {
return elements_;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder>
getElementsOrBuilderList() {
return elements_;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
@java.lang.Override
public int getElementsCount() {
return elements_.size();
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element getElements(int index) {
return elements_.get(index);
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder getElementsOrBuilder(
int index) {
return elements_.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 < elements_.size(); i++) {
output.writeMessage(1, elements_.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 < elements_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, elements_.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.stream.v1.BanyandbStream.QueryResponse)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse other = (org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse) obj;
if (!getElementsList()
.equals(other.getElementsList())) 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 (getElementsCount() > 0) {
hash = (37 * hash) + ELEMENTS_FIELD_NUMBER;
hash = (53 * hash) + getElementsList().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.stream.v1.BanyandbStream.QueryResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.QueryResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.stream.v1.QueryResponse)
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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) {
getElementsFieldBuilder();
getTraceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (elementsBuilder_ == null) {
elements_ = java.util.Collections.emptyList();
} else {
elements_ = null;
elementsBuilder_.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.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryResponse_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse build() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse buildPartial() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse result = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse result) {
if (elementsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
elements_ = java.util.Collections.unmodifiableList(elements_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.elements_ = elements_;
} else {
result.elements_ = elementsBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryResponse) {
return mergeFrom((org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse other) {
if (other == org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse.getDefaultInstance()) return this;
if (elementsBuilder_ == null) {
if (!other.elements_.isEmpty()) {
if (elements_.isEmpty()) {
elements_ = other.elements_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureElementsIsMutable();
elements_.addAll(other.elements_);
}
onChanged();
}
} else {
if (!other.elements_.isEmpty()) {
if (elementsBuilder_.isEmpty()) {
elementsBuilder_.dispose();
elementsBuilder_ = null;
elements_ = other.elements_;
bitField0_ = (bitField0_ & ~0x00000001);
elementsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getElementsFieldBuilder() : null;
} else {
elementsBuilder_.addAllMessages(other.elements_);
}
}
}
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.stream.v1.BanyandbStream.Element m =
input.readMessage(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.parser(),
extensionRegistry);
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(m);
} else {
elementsBuilder_.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 elements_ =
java.util.Collections.emptyList();
private void ensureElementsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
elements_ = new java.util.ArrayList(elements_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder> elementsBuilder_;
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public java.util.List getElementsList() {
if (elementsBuilder_ == null) {
return java.util.Collections.unmodifiableList(elements_);
} else {
return elementsBuilder_.getMessageList();
}
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public int getElementsCount() {
if (elementsBuilder_ == null) {
return elements_.size();
} else {
return elementsBuilder_.getCount();
}
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element getElements(int index) {
if (elementsBuilder_ == null) {
return elements_.get(index);
} else {
return elementsBuilder_.getMessage(index);
}
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder setElements(
int index, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.set(index, value);
onChanged();
} else {
elementsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder setElements(
int index, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.set(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder addElements(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(value);
onChanged();
} else {
elementsBuilder_.addMessage(value);
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder addElements(
int index, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element value) {
if (elementsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementsIsMutable();
elements_.add(index, value);
onChanged();
} else {
elementsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder addElements(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder addElements(
int index, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder builderForValue) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.add(index, builderForValue.build());
onChanged();
} else {
elementsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder addAllElements(
java.lang.Iterable extends org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element> values) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elements_);
onChanged();
} else {
elementsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder clearElements() {
if (elementsBuilder_ == null) {
elements_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
elementsBuilder_.clear();
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public Builder removeElements(int index) {
if (elementsBuilder_ == null) {
ensureElementsIsMutable();
elements_.remove(index);
onChanged();
} else {
elementsBuilder_.remove(index);
}
return this;
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder getElementsBuilder(
int index) {
return getElementsFieldBuilder().getBuilder(index);
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder getElementsOrBuilder(
int index) {
if (elementsBuilder_ == null) {
return elements_.get(index); } else {
return elementsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public java.util.List extends org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder>
getElementsOrBuilderList() {
if (elementsBuilder_ != null) {
return elementsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(elements_);
}
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder addElementsBuilder() {
return getElementsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.getDefaultInstance());
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder addElementsBuilder(
int index) {
return getElementsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.getDefaultInstance());
}
/**
*
* elements are the actual data returned
*
*
* repeated .banyandb.stream.v1.Element elements = 1;
*/
public java.util.List
getElementsBuilderList() {
return getElementsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder>
getElementsFieldBuilder() {
if (elementsBuilder_ == null) {
elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.Element.Builder, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementOrBuilder>(
elements_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
elements_ = null;
}
return elementsBuilder_;
}
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.stream.v1.QueryResponse)
}
// @@protoc_insertion_point(class_scope:banyandb.stream.v1.QueryResponse)
private static final org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryResponse();
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.stream.v1.QueryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* groups indicate where the elements are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return A list containing the groups.
*/
java.util.List
getGroupsList();
/**
*
* groups indicate where the elements are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
int getGroupsCount();
/**
*
* groups indicate where the elements 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 elements 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 stream.
*
*
* string name = 2 [(.validate.rules) = { ... }
* @return The name.
*/
java.lang.String getName();
/**
*
* name is the identity of a stream.
*
*
* 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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
* @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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
* @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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TimeRangeOrBuilder getTimeRangeOrBuilder();
/**
*
* offset is used to support pagination, together with the following limit
*
*
* uint32 offset = 4;
* @return The offset.
*/
int getOffset();
/**
*
* limit is used to impose a boundary on the number of records being returned
*
*
* uint32 limit = 5;
* @return The limit.
*/
int getLimit();
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
* @return Whether the orderBy field is set.
*/
boolean hasOrderBy();
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
* @return The orderBy.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder getOrderBy();
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrderOrBuilder getOrderByOrBuilder();
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
* @return Whether the criteria field is set.
*/
boolean hasCriteria();
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
* @return The criteria.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria getCriteria();
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.CriteriaOrBuilder getCriteriaOrBuilder();
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
* @return Whether the projection field is set.
*/
boolean hasProjection();
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
* @return The projection.
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getProjection();
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getProjectionOrBuilder();
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 9;
* @return The trace.
*/
boolean getTrace();
}
/**
*
* QueryRequest is the request contract for query.
*
*
* Protobuf type {@code banyandb.stream.v1.QueryRequest}
*/
public static final class QueryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.stream.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.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest.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 elements 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 elements are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* groups indicate where the elements 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 elements 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 stream.
*
*
* 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 stream.
*
*
* 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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
* @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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
* @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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
@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 OFFSET_FIELD_NUMBER = 4;
private int offset_ = 0;
/**
*
* offset is used to support pagination, together with the following limit
*
*
* uint32 offset = 4;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int LIMIT_FIELD_NUMBER = 5;
private int limit_ = 0;
/**
*
* limit is used to impose a boundary on the number of records being returned
*
*
* uint32 limit = 5;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int ORDER_BY_FIELD_NUMBER = 6;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder orderBy_;
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
* @return Whether the orderBy field is set.
*/
@java.lang.Override
public boolean hasOrderBy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
* @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 field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
@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 CRITERIA_FIELD_NUMBER = 7;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria criteria_;
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
* @return Whether the criteria field is set.
*/
@java.lang.Override
public boolean hasCriteria() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
* @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 = 7;
*/
@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 PROJECTION_FIELD_NUMBER = 8;
private org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection projection_;
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
* @return Whether the projection field is set.
*/
@java.lang.Override
public boolean hasProjection() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
* @return The projection.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getProjection() {
return projection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : projection_;
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getProjectionOrBuilder() {
return projection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : projection_;
}
public static final int TRACE_FIELD_NUMBER = 9;
private boolean trace_ = false;
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 9;
* @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 (offset_ != 0) {
output.writeUInt32(4, offset_);
}
if (limit_ != 0) {
output.writeUInt32(5, limit_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getOrderBy());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getCriteria());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getProjection());
}
if (trace_ != false) {
output.writeBool(9, 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 (offset_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, offset_);
}
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, limit_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOrderBy());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getCriteria());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getProjection());
}
if (trace_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, 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.stream.v1.BanyandbStream.QueryRequest)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest other = (org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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 (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 (hasCriteria() != other.hasCriteria()) return false;
if (hasCriteria()) {
if (!getCriteria()
.equals(other.getCriteria())) return false;
}
if (hasProjection() != other.hasProjection()) return false;
if (hasProjection()) {
if (!getProjection()
.equals(other.getProjection())) 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();
}
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();
}
if (hasCriteria()) {
hash = (37 * hash) + CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getCriteria().hashCode();
}
if (hasProjection()) {
hash = (37 * hash) + PROJECTION_FIELD_NUMBER;
hash = (53 * hash) + getProjection().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.stream.v1.BanyandbStream.QueryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.QueryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.stream.v1.QueryRequest)
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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();
getOrderByFieldBuilder();
getCriteriaFieldBuilder();
getProjectionFieldBuilder();
}
}
@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;
}
offset_ = 0;
limit_ = 0;
orderBy_ = null;
if (orderByBuilder_ != null) {
orderByBuilder_.dispose();
orderByBuilder_ = null;
}
criteria_ = null;
if (criteriaBuilder_ != null) {
criteriaBuilder_.dispose();
criteriaBuilder_ = null;
}
projection_ = null;
if (projectionBuilder_ != null) {
projectionBuilder_.dispose();
projectionBuilder_ = null;
}
trace_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_QueryRequest_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest build() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest buildPartial() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest result = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.offset_ = offset_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.limit_ = limit_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.orderBy_ = orderByBuilder_ == null
? orderBy_
: orderByBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.criteria_ = criteriaBuilder_ == null
? criteria_
: criteriaBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.projection_ = projectionBuilder_ == null
? projection_
: projectionBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000100) != 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.stream.v1.BanyandbStream.QueryRequest) {
return mergeFrom((org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest other) {
if (other == org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.getOffset() != 0) {
setOffset(other.getOffset());
}
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
if (other.hasOrderBy()) {
mergeOrderBy(other.getOrderBy());
}
if (other.hasCriteria()) {
mergeCriteria(other.getCriteria());
}
if (other.hasProjection()) {
mergeProjection(other.getProjection());
}
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 32: {
offset_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
limit_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getOrderByFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getCriteriaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getProjectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
trace_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
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 elements 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 elements are stored.
*
*
* repeated string groups = 1 [(.validate.rules) = { ... }
* @return The count of groups.
*/
public int getGroupsCount() {
return groups_.size();
}
/**
*
* groups indicate where the elements 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 elements 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 elements 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 elements 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 elements 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 elements 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 elements 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 stream.
*
*
* 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 stream.
*
*
* 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 stream.
*
*
* 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 stream.
*
*
* 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 stream.
*
*
* 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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
* @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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
* @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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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.
* In the context of stream, it represents the range of the `startTime` for spans/segments,
* while in the context of Log, it means the range of the timestamp(s) for logs.
* it is always recommended to specify time range for performance reason
*
*
* .banyandb.model.v1.TimeRange time_range = 3;
*/
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 offset_ ;
/**
*
* offset is used to support pagination, together with the following limit
*
*
* uint32 offset = 4;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
/**
*
* offset is used to support pagination, together with the following limit
*
*
* uint32 offset = 4;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(int value) {
offset_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* offset is used to support pagination, together with the following limit
*
*
* uint32 offset = 4;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000008);
offset_ = 0;
onChanged();
return this;
}
private int limit_ ;
/**
*
* limit is used to impose a boundary on the number of records being returned
*
*
* uint32 limit = 5;
* @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
*
*
* uint32 limit = 5;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* limit is used to impose a boundary on the number of records being returned
*
*
* uint32 limit = 5;
* @return This builder for chaining.
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000010);
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 field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
* @return Whether the orderBy field is set.
*/
public boolean hasOrderBy() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
* @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 field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
public Builder mergeOrderBy(org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder value) {
if (orderByBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 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_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
public Builder clearOrderBy() {
bitField0_ = (bitField0_ & ~0x00000020);
orderBy_ = null;
if (orderByBuilder_ != null) {
orderByBuilder_.dispose();
orderByBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.QueryOrder.Builder getOrderByBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getOrderByFieldBuilder().getBuilder();
}
/**
*
* order_by is given to specify the sort for a field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
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 field. So far, only fields in the type of Integer are supported
*
*
* .banyandb.model.v1.QueryOrder order_by = 6;
*/
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 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 = 7;
* @return Whether the criteria field is set.
*/
public boolean hasCriteria() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
* @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 = 7;
*/
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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
*/
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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
*/
public Builder mergeCriteria(org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria value) {
if (criteriaBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
*/
public Builder clearCriteria() {
bitField0_ = (bitField0_ & ~0x00000040);
criteria_ = null;
if (criteriaBuilder_ != null) {
criteriaBuilder_.dispose();
criteriaBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.Criteria.Builder getCriteriaBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getCriteriaFieldBuilder().getBuilder();
}
/**
*
* tag_families are indexed.
*
*
* .banyandb.model.v1.Criteria criteria = 7;
*/
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 = 7;
*/
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 projection_;
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> projectionBuilder_;
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
* @return Whether the projection field is set.
*/
public boolean hasProjection() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
* @return The projection.
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection getProjection() {
if (projectionBuilder_ == null) {
return projection_ == null ? org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : projection_;
} else {
return projectionBuilder_.getMessage();
}
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
public Builder setProjection(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection value) {
if (projectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
projection_ = value;
} else {
projectionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
public Builder setProjection(
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder builderForValue) {
if (projectionBuilder_ == null) {
projection_ = builderForValue.build();
} else {
projectionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
public Builder mergeProjection(org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection value) {
if (projectionBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
projection_ != null &&
projection_ != org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance()) {
getProjectionBuilder().mergeFrom(value);
} else {
projection_ = value;
}
} else {
projectionBuilder_.mergeFrom(value);
}
if (projection_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
public Builder clearProjection() {
bitField0_ = (bitField0_ & ~0x00000080);
projection_ = null;
if (projectionBuilder_ != null) {
projectionBuilder_.dispose();
projectionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.Builder getProjectionBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getProjectionFieldBuilder().getBuilder();
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjectionOrBuilder getProjectionOrBuilder() {
if (projectionBuilder_ != null) {
return projectionBuilder_.getMessageOrBuilder();
} else {
return projection_ == null ?
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagProjection.getDefaultInstance() : projection_;
}
}
/**
*
* projection can be used to select the key names of the element in the response
*
*
* .banyandb.model.v1.TagProjection projection = 8 [(.validate.rules) = { ... }
*/
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>
getProjectionFieldBuilder() {
if (projectionBuilder_ == null) {
projectionBuilder_ = 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>(
getProjection(),
getParentForChildren(),
isClean());
projection_ = null;
}
return projectionBuilder_;
}
private boolean trace_ ;
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 9;
* @return The trace.
*/
@java.lang.Override
public boolean getTrace() {
return trace_;
}
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 9;
* @param value The trace to set.
* @return This builder for chaining.
*/
public Builder setTrace(boolean value) {
trace_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* trace is used to enable trace for the query
*
*
* bool trace = 9;
* @return This builder for chaining.
*/
public Builder clearTrace() {
bitField0_ = (bitField0_ & ~0x00000100);
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.stream.v1.QueryRequest)
}
// @@protoc_insertion_point(class_scope:banyandb.stream.v1.QueryRequest)
private static final org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.QueryRequest();
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.QueryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ElementValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.stream.v1.ElementValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The elementId.
*/
java.lang.String getElementId();
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The bytes for elementId.
*/
com.google.protobuf.ByteString
getElementIdBytes();
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
java.util.List
getTagFamiliesList();
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWrite getTagFamilies(int index);
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
int getTagFamiliesCount();
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
java.util.List extends org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder>
getTagFamiliesOrBuilderList();
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder getTagFamiliesOrBuilder(
int index);
}
/**
* Protobuf type {@code banyandb.stream.v1.ElementValue}
*/
public static final class ElementValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.stream.v1.ElementValue)
ElementValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use ElementValue.newBuilder() to construct.
private ElementValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ElementValue() {
elementId_ = "";
tagFamilies_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ElementValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_ElementValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_ElementValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder.class);
}
private int bitField0_;
public static final int ELEMENT_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object elementId_ = "";
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The elementId.
*/
@java.lang.Override
public java.lang.String getElementId() {
java.lang.Object ref = elementId_;
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();
elementId_ = s;
return s;
}
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The bytes for elementId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getElementIdBytes() {
java.lang.Object ref = elementId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
elementId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @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. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
@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 = 3;
@SuppressWarnings("serial")
private java.util.List tagFamilies_;
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
@java.lang.Override
public java.util.List getTagFamiliesList() {
return tagFamilies_;
}
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
@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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
@java.lang.Override
public int getTagFamiliesCount() {
return tagFamilies_.size();
}
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
@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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.model.v1.BanyandbModel.TagFamilyForWriteOrBuilder getTagFamiliesOrBuilder(
int index) {
return tagFamilies_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(elementId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, elementId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
output.writeMessage(3, tagFamilies_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(elementId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, elementId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimestamp());
}
for (int i = 0; i < tagFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tagFamilies_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue other = (org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue) obj;
if (!getElementId()
.equals(other.getElementId())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (!getTagFamiliesList()
.equals(other.getTagFamiliesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ELEMENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getElementId().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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue 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.stream.v1.BanyandbStream.ElementValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue 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.stream.v1.BanyandbStream.ElementValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue 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.stream.v1.BanyandbStream.ElementValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue 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.stream.v1.BanyandbStream.ElementValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue 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.stream.v1.BanyandbStream.ElementValue 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.stream.v1.ElementValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.stream.v1.ElementValue)
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_ElementValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_ElementValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
elementId_ = "";
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
} else {
tagFamilies_ = null;
tagFamiliesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_ElementValue_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue build() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue buildPartial() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue result = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue result) {
if (tagFamiliesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
tagFamilies_ = java.util.Collections.unmodifiableList(tagFamilies_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tagFamilies_ = tagFamilies_;
} else {
result.tagFamilies_ = tagFamiliesBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.elementId_ = elementId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 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.stream.v1.BanyandbStream.ElementValue) {
return mergeFrom((org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue other) {
if (other == org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance()) return this;
if (!other.getElementId().isEmpty()) {
elementId_ = other.elementId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (tagFamiliesBuilder_ == null) {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamilies_.isEmpty()) {
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTagFamiliesIsMutable();
tagFamilies_.addAll(other.tagFamilies_);
}
onChanged();
}
} else {
if (!other.tagFamilies_.isEmpty()) {
if (tagFamiliesBuilder_.isEmpty()) {
tagFamiliesBuilder_.dispose();
tagFamiliesBuilder_ = null;
tagFamilies_ = other.tagFamilies_;
bitField0_ = (bitField0_ & ~0x00000004);
tagFamiliesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagFamiliesFieldBuilder() : null;
} else {
tagFamiliesBuilder_.addAllMessages(other.tagFamilies_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
elementId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
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 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 java.lang.Object elementId_ = "";
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The elementId.
*/
public java.lang.String getElementId() {
java.lang.Object ref = elementId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
elementId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return The bytes for elementId.
*/
public com.google.protobuf.ByteString
getElementIdBytes() {
java.lang.Object ref = elementId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
elementId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @param value The elementId to set.
* @return This builder for chaining.
*/
public Builder setElementId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
elementId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @return This builder for chaining.
*/
public Builder clearElementId() {
elementId_ = getDefaultInstance().getElementId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* element_id could be span_id of a Span or segment_id of a Segment in the context of stream
*
*
* string element_id = 1;
* @param value The bytes for elementId to set.
* @return This builder for chaining.
*/
public Builder setElementIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
elementId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
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. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @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. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
timestamp_ != null &&
timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
if (timestamp_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* timestamp is in the timeunit of milliseconds. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
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. It represents
* 1) either the start time of a Span/Segment,
* 2) or the timestamp of a log
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
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_ & 0x00000004) != 0)) {
tagFamilies_ = new java.util.ArrayList(tagFamilies_);
bitField0_ |= 0x00000004;
}
}
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
public int getTagFamiliesCount() {
if (tagFamiliesBuilder_ == null) {
return tagFamilies_.size();
} else {
return tagFamiliesBuilder_.getCount();
}
}
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
public Builder clearTagFamilies() {
if (tagFamiliesBuilder_ == null) {
tagFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tagFamiliesBuilder_.clear();
}
return this;
}
/**
*
* the order of tag_families' items match the stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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 stream schema
*
*
* repeated .banyandb.model.v1.TagFamilyForWrite tag_families = 3;
*/
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_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
tagFamilies_ = null;
}
return tagFamiliesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:banyandb.stream.v1.ElementValue)
}
// @@protoc_insertion_point(class_scope:banyandb.stream.v1.ElementValue)
private static final org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue();
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ElementValue 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.stream.v1.BanyandbStream.ElementValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.stream.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 element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
* @return Whether the element field is set.
*/
boolean hasElement();
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
* @return The element.
*/
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue getElement();
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder getElementOrBuilder();
/**
*
* the message_id is required.
*
*
* uint64 message_id = 3 [(.validate.rules) = { ... }
* @return The messageId.
*/
long getMessageId();
}
/**
* Protobuf type {@code banyandb.stream.v1.WriteRequest}
*/
public static final class WriteRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.stream.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.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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 ELEMENT_FIELD_NUMBER = 2;
private org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue element_;
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
* @return Whether the element field is set.
*/
@java.lang.Override
public boolean hasElement() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
* @return The element.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue getElement() {
return element_ == null ? org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance() : element_;
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder getElementOrBuilder() {
return element_ == null ? org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance() : element_;
}
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, getElement());
}
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, getElement());
}
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.stream.v1.BanyandbStream.WriteRequest)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest other = (org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest) obj;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (hasElement() != other.hasElement()) return false;
if (hasElement()) {
if (!getElement()
.equals(other.getElement())) 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 (hasElement()) {
hash = (37 * hash) + ELEMENT_FIELD_NUMBER;
hash = (53 * hash) + getElement().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.stream.v1.BanyandbStream.WriteRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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;
}
/**
* Protobuf type {@code banyandb.stream.v1.WriteRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.stream.v1.WriteRequest)
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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();
getElementFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
element_ = null;
if (elementBuilder_ != null) {
elementBuilder_.dispose();
elementBuilder_ = null;
}
messageId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteRequest_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest build() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest buildPartial() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest result = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.element_ = elementBuilder_ == null
? element_
: elementBuilder_.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.stream.v1.BanyandbStream.WriteRequest) {
return mergeFrom((org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest other) {
if (other == org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasElement()) {
mergeElement(other.getElement());
}
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(
getElementFieldBuilder().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.stream.v1.BanyandbStream.ElementValue element_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder> elementBuilder_;
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
* @return Whether the element field is set.
*/
public boolean hasElement() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
* @return The element.
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue getElement() {
if (elementBuilder_ == null) {
return element_ == null ? org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance() : element_;
} else {
return elementBuilder_.getMessage();
}
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
public Builder setElement(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue value) {
if (elementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
element_ = value;
} else {
elementBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
public Builder setElement(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder builderForValue) {
if (elementBuilder_ == null) {
element_ = builderForValue.build();
} else {
elementBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
public Builder mergeElement(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue value) {
if (elementBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
element_ != null &&
element_ != org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance()) {
getElementBuilder().mergeFrom(value);
} else {
element_ = value;
}
} else {
elementBuilder_.mergeFrom(value);
}
if (element_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
public Builder clearElement() {
bitField0_ = (bitField0_ & ~0x00000002);
element_ = null;
if (elementBuilder_ != null) {
elementBuilder_.dispose();
elementBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder getElementBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getElementFieldBuilder().getBuilder();
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder getElementOrBuilder() {
if (elementBuilder_ != null) {
return elementBuilder_.getMessageOrBuilder();
} else {
return element_ == null ?
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.getDefaultInstance() : element_;
}
}
/**
*
* the element is required.
*
*
* .banyandb.stream.v1.ElementValue element = 2 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder>
getElementFieldBuilder() {
if (elementBuilder_ == null) {
elementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValue.Builder, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.ElementValueOrBuilder>(
getElement(),
getParentForChildren(),
isClean());
element_ = null;
}
return elementBuilder_;
}
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.stream.v1.WriteRequest)
}
// @@protoc_insertion_point(class_scope:banyandb.stream.v1.WriteRequest)
private static final org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteRequest();
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WriteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.stream.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();
}
/**
* Protobuf type {@code banyandb.stream.v1.WriteResponse}
*/
public static final class WriteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.stream.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.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse other = (org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.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;
}
/**
* Protobuf type {@code banyandb.stream.v1.WriteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.stream.v1.WriteResponse)
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse.class, org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.internal_static_banyandb_stream_v1_WriteResponse_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse build() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse buildPartial() {
org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse result = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse) {
return mergeFrom((org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse other) {
if (other == org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.WriteResponse)
}
// @@protoc_insertion_point(class_scope:banyandb.stream.v1.WriteResponse)
private static final org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.stream.v1.BanyandbStream.WriteResponse();
}
public static org.apache.skywalking.banyandb.stream.v1.BanyandbStream.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.stream.v1.BanyandbStream.WriteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_stream_v1_Element_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_stream_v1_Element_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_stream_v1_QueryResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_stream_v1_QueryResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_stream_v1_QueryRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_stream_v1_QueryRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_stream_v1_ElementValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_stream_v1_ElementValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_stream_v1_WriteRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_stream_v1_WriteRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_stream_v1_WriteResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_stream_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-stream.proto\022\022ban" +
"yandb.stream.v1\032\037google/protobuf/timesta" +
"mp.proto\032\027validate/validate.proto\032!banya" +
"ndb/v1/banyandb-common.proto\032 banyandb/v" +
"1/banyandb-model.proto\"\200\001\n\007Element\022\022\n\nel" +
"ement_id\030\001 \001(\t\022-\n\ttimestamp\030\002 \001(\0132\032.goog" +
"le.protobuf.Timestamp\0222\n\014tag_families\030\003 " +
"\003(\0132\034.banyandb.model.v1.TagFamily\"h\n\rQue" +
"ryResponse\022-\n\010elements\030\001 \003(\0132\033.banyandb." +
"stream.v1.Element\022(\n\005trace\030\002 \001(\0132\031.banya" +
"ndb.common.v1.Trace\"\277\002\n\014QueryRequest\022\030\n\006" +
"groups\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\0220\n\ntime_range\030\003 \001(\0132\034.banyandb.mod" +
"el.v1.TimeRange\022\016\n\006offset\030\004 \001(\r\022\r\n\005limit" +
"\030\005 \001(\r\022/\n\010order_by\030\006 \001(\0132\035.banyandb.mode" +
"l.v1.QueryOrder\022-\n\010criteria\030\007 \001(\0132\033.bany" +
"andb.model.v1.Criteria\022>\n\nprojection\030\010 \001" +
"(\0132 .banyandb.model.v1.TagProjectionB\010\372B" +
"\005\212\001\002\020\001\022\r\n\005trace\030\t \001(\010\"\215\001\n\014ElementValue\022\022" +
"\n\nelement_id\030\001 \001(\t\022-\n\ttimestamp\030\002 \001(\0132\032." +
"google.protobuf.Timestamp\022:\n\014tag_familie" +
"s\030\003 \003(\0132$.banyandb.model.v1.TagFamilyFor" +
"Write\"\242\001\n\014WriteRequest\0228\n\010metadata\030\001 \001(\013" +
"2\034.banyandb.common.v1.MetadataB\010\372B\005\212\001\002\020\001" +
"\022;\n\007element\030\002 \001(\0132 .banyandb.stream.v1.E" +
"lementValueB\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\rWriteResponse\022\033\n\nmessage_" +
"id\030\001 \001(\004B\007\372B\0042\002 \000\0223\n\006status\030\002 \001(\0162\031.bany" +
"andb.model.v1.StatusB\010\372B\005\202\001\002\020\001\022.\n\010metada" +
"ta\030\003 \001(\0132\034.banyandb.common.v1.Metadata2\257" +
"\001\n\rStreamService\022L\n\005Query\022 .banyandb.str" +
"eam.v1.QueryRequest\032!.banyandb.stream.v1" +
".QueryResponse\022P\n\005Write\022 .banyandb.strea" +
"m.v1.WriteRequest\032!.banyandb.stream.v1.W" +
"riteResponse(\0010\001B*\n(org.apache.skywalkin" +
"g.banyandb.stream.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_stream_v1_Element_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_banyandb_stream_v1_Element_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_stream_v1_Element_descriptor,
new java.lang.String[] { "ElementId", "Timestamp", "TagFamilies", });
internal_static_banyandb_stream_v1_QueryResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_banyandb_stream_v1_QueryResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_stream_v1_QueryResponse_descriptor,
new java.lang.String[] { "Elements", "Trace", });
internal_static_banyandb_stream_v1_QueryRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_banyandb_stream_v1_QueryRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_stream_v1_QueryRequest_descriptor,
new java.lang.String[] { "Groups", "Name", "TimeRange", "Offset", "Limit", "OrderBy", "Criteria", "Projection", "Trace", });
internal_static_banyandb_stream_v1_ElementValue_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_banyandb_stream_v1_ElementValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_stream_v1_ElementValue_descriptor,
new java.lang.String[] { "ElementId", "Timestamp", "TagFamilies", });
internal_static_banyandb_stream_v1_WriteRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_banyandb_stream_v1_WriteRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_stream_v1_WriteRequest_descriptor,
new java.lang.String[] { "Metadata", "Element", "MessageId", });
internal_static_banyandb_stream_v1_WriteResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_banyandb_stream_v1_WriteResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_stream_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