org.apache.skywalking.banyandb.common.v1.BanyandbCommon Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: banyandb/v1/banyandb-common.proto
// Protobuf Java Version: 3.25.3
package org.apache.skywalking.banyandb.common.v1;
public final class BanyandbCommon {
private BanyandbCommon() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code banyandb.common.v1.Catalog}
*/
public enum Catalog
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CATALOG_UNSPECIFIED = 0;
*/
CATALOG_UNSPECIFIED(0),
/**
* CATALOG_STREAM = 1;
*/
CATALOG_STREAM(1),
/**
* CATALOG_MEASURE = 2;
*/
CATALOG_MEASURE(2),
UNRECOGNIZED(-1),
;
/**
* CATALOG_UNSPECIFIED = 0;
*/
public static final int CATALOG_UNSPECIFIED_VALUE = 0;
/**
* CATALOG_STREAM = 1;
*/
public static final int CATALOG_STREAM_VALUE = 1;
/**
* CATALOG_MEASURE = 2;
*/
public static final int CATALOG_MEASURE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Catalog valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Catalog forNumber(int value) {
switch (value) {
case 0: return CATALOG_UNSPECIFIED;
case 1: return CATALOG_STREAM;
case 2: return CATALOG_MEASURE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Catalog> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Catalog findValueByNumber(int number) {
return Catalog.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.getDescriptor().getEnumTypes().get(0);
}
private static final Catalog[] VALUES = values();
public static Catalog valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Catalog(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:banyandb.common.v1.Catalog)
}
public interface MetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.Metadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return The group.
*/
java.lang.String getGroup();
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return The bytes for group.
*/
com.google.protobuf.ByteString
getGroupBytes();
/**
*
* name of the entity
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* name of the entity
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* id is the unique identifier of the entity
* if id is not set, the system will generate a unique id
*
*
* uint32 id = 3;
* @return The id.
*/
int getId();
/**
*
* readonly. create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 4;
* @return The createRevision.
*/
long getCreateRevision();
/**
*
* readonly. mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 5;
* @return The modRevision.
*/
long getModRevision();
}
/**
*
* Metadata is for multi-tenant, multi-model use
*
*
* Protobuf type {@code banyandb.common.v1.Metadata}
*/
public static final class Metadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.Metadata)
MetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use Metadata.newBuilder() to construct.
private Metadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Metadata() {
group_ = "";
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Metadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Metadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Metadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder.class);
}
public static final int GROUP_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object group_ = "";
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return The group.
*/
@java.lang.Override
public java.lang.String getGroup() {
java.lang.Object ref = group_;
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();
group_ = s;
return s;
}
}
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return The bytes for group.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* name of the entity
*
*
* string name = 2;
* @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 of the entity
*
*
* string name = 2;
* @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 ID_FIELD_NUMBER = 3;
private int id_ = 0;
/**
*
* id is the unique identifier of the entity
* if id is not set, the system will generate a unique id
*
*
* uint32 id = 3;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int CREATE_REVISION_FIELD_NUMBER = 4;
private long createRevision_ = 0L;
/**
*
* readonly. create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 4;
* @return The createRevision.
*/
@java.lang.Override
public long getCreateRevision() {
return createRevision_;
}
public static final int MOD_REVISION_FIELD_NUMBER = 5;
private long modRevision_ = 0L;
/**
*
* readonly. mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 5;
* @return The modRevision.
*/
@java.lang.Override
public long getModRevision() {
return modRevision_;
}
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(group_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (id_ != 0) {
output.writeUInt32(3, id_);
}
if (createRevision_ != 0L) {
output.writeInt64(4, createRevision_);
}
if (modRevision_ != 0L) {
output.writeInt64(5, modRevision_);
}
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(group_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, id_);
}
if (createRevision_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, createRevision_);
}
if (modRevision_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, modRevision_);
}
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.common.v1.BanyandbCommon.Metadata)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata) obj;
if (!getGroup()
.equals(other.getGroup())) return false;
if (!getName()
.equals(other.getName())) return false;
if (getId()
!= other.getId()) return false;
if (getCreateRevision()
!= other.getCreateRevision()) return false;
if (getModRevision()
!= other.getModRevision()) 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) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + CREATE_REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreateRevision());
hash = (37 * hash) + MOD_REVISION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getModRevision());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata 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.common.v1.BanyandbCommon.Metadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata 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.common.v1.BanyandbCommon.Metadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata 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.common.v1.BanyandbCommon.Metadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata 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.common.v1.BanyandbCommon.Metadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata 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.common.v1.BanyandbCommon.Metadata 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;
}
/**
*
* Metadata is for multi-tenant, multi-model use
*
*
* Protobuf type {@code banyandb.common.v1.Metadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.Metadata)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Metadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Metadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
group_ = "";
name_ = "";
id_ = 0;
createRevision_ = 0L;
modRevision_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Metadata_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.group_ = group_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createRevision_ = createRevision_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.modRevision_ = modRevision_;
}
}
@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.common.v1.BanyandbCommon.Metadata) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata.getDefaultInstance()) return this;
if (!other.getGroup().isEmpty()) {
group_ = other.group_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getId() != 0) {
setId(other.getId());
}
if (other.getCreateRevision() != 0L) {
setCreateRevision(other.getCreateRevision());
}
if (other.getModRevision() != 0L) {
setModRevision(other.getModRevision());
}
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: {
group_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
id_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
createRevision_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
modRevision_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object group_ = "";
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return The group.
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
group_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return The bytes for group.
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @param value The group to set.
* @return This builder for chaining.
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
group_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @return This builder for chaining.
*/
public Builder clearGroup() {
group_ = getDefaultInstance().getGroup();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* group contains a set of options, like retention policy, max
*
*
* string group = 1;
* @param value The bytes for group to set.
* @return This builder for chaining.
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
group_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* name of the entity
*
*
* string name = 2;
* @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 of the entity
*
*
* string name = 2;
* @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 of the entity
*
*
* string name = 2;
* @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 of the entity
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* name of the entity
*
*
* string name = 2;
* @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 int id_ ;
/**
*
* id is the unique identifier of the entity
* if id is not set, the system will generate a unique id
*
*
* uint32 id = 3;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
*
* id is the unique identifier of the entity
* if id is not set, the system will generate a unique id
*
*
* uint32 id = 3;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* id is the unique identifier of the entity
* if id is not set, the system will generate a unique id
*
*
* uint32 id = 3;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000004);
id_ = 0;
onChanged();
return this;
}
private long createRevision_ ;
/**
*
* readonly. create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 4;
* @return The createRevision.
*/
@java.lang.Override
public long getCreateRevision() {
return createRevision_;
}
/**
*
* readonly. create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 4;
* @param value The createRevision to set.
* @return This builder for chaining.
*/
public Builder setCreateRevision(long value) {
createRevision_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* readonly. create_revision is the revision of last creation on this key.
*
*
* int64 create_revision = 4;
* @return This builder for chaining.
*/
public Builder clearCreateRevision() {
bitField0_ = (bitField0_ & ~0x00000008);
createRevision_ = 0L;
onChanged();
return this;
}
private long modRevision_ ;
/**
*
* readonly. mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 5;
* @return The modRevision.
*/
@java.lang.Override
public long getModRevision() {
return modRevision_;
}
/**
*
* readonly. mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 5;
* @param value The modRevision to set.
* @return This builder for chaining.
*/
public Builder setModRevision(long value) {
modRevision_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* readonly. mod_revision is the revision of last modification on this key.
*
*
* int64 mod_revision = 5;
* @return This builder for chaining.
*/
public Builder clearModRevision() {
bitField0_ = (bitField0_ & ~0x00000010);
modRevision_ = 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.common.v1.Metadata)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.Metadata)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Metadata 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.common.v1.BanyandbCommon.Metadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntervalRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.IntervalRule)
com.google.protobuf.MessageOrBuilder {
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for unit.
*/
int getUnitValue();
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return The unit.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit getUnit();
/**
* uint32 num = 2 [(.validate.rules) = { ... }
* @return The num.
*/
int getNum();
}
/**
*
* IntervalRule is a structured duration
*
*
* Protobuf type {@code banyandb.common.v1.IntervalRule}
*/
public static final class IntervalRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.IntervalRule)
IntervalRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntervalRule.newBuilder() to construct.
private IntervalRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntervalRule() {
unit_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntervalRule();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_IntervalRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_IntervalRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder.class);
}
/**
* Protobuf enum {@code banyandb.common.v1.IntervalRule.Unit}
*/
public enum Unit
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNIT_UNSPECIFIED = 0;
*/
UNIT_UNSPECIFIED(0),
/**
* UNIT_HOUR = 1;
*/
UNIT_HOUR(1),
/**
* UNIT_DAY = 2;
*/
UNIT_DAY(2),
UNRECOGNIZED(-1),
;
/**
* UNIT_UNSPECIFIED = 0;
*/
public static final int UNIT_UNSPECIFIED_VALUE = 0;
/**
* UNIT_HOUR = 1;
*/
public static final int UNIT_HOUR_VALUE = 1;
/**
* UNIT_DAY = 2;
*/
public static final int UNIT_DAY_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Unit valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Unit forNumber(int value) {
switch (value) {
case 0: return UNIT_UNSPECIFIED;
case 1: return UNIT_HOUR;
case 2: return UNIT_DAY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Unit> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Unit findValueByNumber(int number) {
return Unit.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDescriptor().getEnumTypes().get(0);
}
private static final Unit[] VALUES = values();
public static Unit valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Unit(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:banyandb.common.v1.IntervalRule.Unit)
}
public static final int UNIT_FIELD_NUMBER = 1;
private int unit_ = 0;
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for unit.
*/
@java.lang.Override public int getUnitValue() {
return unit_;
}
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return The unit.
*/
@java.lang.Override public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit getUnit() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit result = org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit.forNumber(unit_);
return result == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit.UNRECOGNIZED : result;
}
public static final int NUM_FIELD_NUMBER = 2;
private int num_ = 0;
/**
* uint32 num = 2 [(.validate.rules) = { ... }
* @return The num.
*/
@java.lang.Override
public int getNum() {
return num_;
}
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 (unit_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit.UNIT_UNSPECIFIED.getNumber()) {
output.writeEnum(1, unit_);
}
if (num_ != 0) {
output.writeUInt32(2, num_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (unit_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit.UNIT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, unit_);
}
if (num_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, num_);
}
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.common.v1.BanyandbCommon.IntervalRule)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule) obj;
if (unit_ != other.unit_) return false;
if (getNum()
!= other.getNum()) 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) + UNIT_FIELD_NUMBER;
hash = (53 * hash) + unit_;
hash = (37 * hash) + NUM_FIELD_NUMBER;
hash = (53 * hash) + getNum();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule 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.common.v1.BanyandbCommon.IntervalRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule 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.common.v1.BanyandbCommon.IntervalRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule 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.common.v1.BanyandbCommon.IntervalRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule 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.common.v1.BanyandbCommon.IntervalRule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule 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.common.v1.BanyandbCommon.IntervalRule 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;
}
/**
*
* IntervalRule is a structured duration
*
*
* Protobuf type {@code banyandb.common.v1.IntervalRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.IntervalRule)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_IntervalRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_IntervalRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
unit_ = 0;
num_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_IntervalRule_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.unit_ = unit_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.num_ = num_;
}
}
@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.common.v1.BanyandbCommon.IntervalRule) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance()) return this;
if (other.unit_ != 0) {
setUnitValue(other.getUnitValue());
}
if (other.getNum() != 0) {
setNum(other.getNum());
}
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: {
unit_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
num_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int unit_ = 0;
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return The enum numeric value on the wire for unit.
*/
@java.lang.Override public int getUnitValue() {
return unit_;
}
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @param value The enum numeric value on the wire for unit to set.
* @return This builder for chaining.
*/
public Builder setUnitValue(int value) {
unit_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return The unit.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit getUnit() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit result = org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit.forNumber(unit_);
return result == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit.UNRECOGNIZED : result;
}
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @param value The unit to set.
* @return This builder for chaining.
*/
public Builder setUnit(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Unit value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
unit_ = value.getNumber();
onChanged();
return this;
}
/**
*
* unit can only be UNIT_HOUR or UNIT_DAY
*
*
* .banyandb.common.v1.IntervalRule.Unit unit = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearUnit() {
bitField0_ = (bitField0_ & ~0x00000001);
unit_ = 0;
onChanged();
return this;
}
private int num_ ;
/**
* uint32 num = 2 [(.validate.rules) = { ... }
* @return The num.
*/
@java.lang.Override
public int getNum() {
return num_;
}
/**
* uint32 num = 2 [(.validate.rules) = { ... }
* @param value The num to set.
* @return This builder for chaining.
*/
public Builder setNum(int value) {
num_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 num = 2 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearNum() {
bitField0_ = (bitField0_ & ~0x00000002);
num_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:banyandb.common.v1.IntervalRule)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.IntervalRule)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntervalRule 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.common.v1.BanyandbCommon.IntervalRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceOptsOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.ResourceOpts)
com.google.protobuf.MessageOrBuilder {
/**
*
* shard_num is the number of shards
*
*
* uint32 shard_num = 1 [(.validate.rules) = { ... }
* @return The shardNum.
*/
int getShardNum();
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
* @return Whether the segmentInterval field is set.
*/
boolean hasSegmentInterval();
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
* @return The segmentInterval.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getSegmentInterval();
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder getSegmentIntervalOrBuilder();
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
* @return Whether the ttl field is set.
*/
boolean hasTtl();
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
* @return The ttl.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getTtl();
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder getTtlOrBuilder();
}
/**
* Protobuf type {@code banyandb.common.v1.ResourceOpts}
*/
public static final class ResourceOpts extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.ResourceOpts)
ResourceOptsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceOpts.newBuilder() to construct.
private ResourceOpts(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceOpts() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResourceOpts();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_ResourceOpts_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_ResourceOpts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder.class);
}
private int bitField0_;
public static final int SHARD_NUM_FIELD_NUMBER = 1;
private int shardNum_ = 0;
/**
*
* shard_num is the number of shards
*
*
* uint32 shard_num = 1 [(.validate.rules) = { ... }
* @return The shardNum.
*/
@java.lang.Override
public int getShardNum() {
return shardNum_;
}
public static final int SEGMENT_INTERVAL_FIELD_NUMBER = 2;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule segmentInterval_;
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
* @return Whether the segmentInterval field is set.
*/
@java.lang.Override
public boolean hasSegmentInterval() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
* @return The segmentInterval.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getSegmentInterval() {
return segmentInterval_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : segmentInterval_;
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder getSegmentIntervalOrBuilder() {
return segmentInterval_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : segmentInterval_;
}
public static final int TTL_FIELD_NUMBER = 3;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule ttl_;
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
* @return Whether the ttl field is set.
*/
@java.lang.Override
public boolean hasTtl() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
* @return The ttl.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getTtl() {
return ttl_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : ttl_;
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder getTtlOrBuilder() {
return ttl_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : ttl_;
}
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 (shardNum_ != 0) {
output.writeUInt32(1, shardNum_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getSegmentInterval());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getTtl());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (shardNum_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, shardNum_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSegmentInterval());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTtl());
}
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.common.v1.BanyandbCommon.ResourceOpts)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts) obj;
if (getShardNum()
!= other.getShardNum()) return false;
if (hasSegmentInterval() != other.hasSegmentInterval()) return false;
if (hasSegmentInterval()) {
if (!getSegmentInterval()
.equals(other.getSegmentInterval())) return false;
}
if (hasTtl() != other.hasTtl()) return false;
if (hasTtl()) {
if (!getTtl()
.equals(other.getTtl())) 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) + SHARD_NUM_FIELD_NUMBER;
hash = (53 * hash) + getShardNum();
if (hasSegmentInterval()) {
hash = (37 * hash) + SEGMENT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getSegmentInterval().hashCode();
}
if (hasTtl()) {
hash = (37 * hash) + TTL_FIELD_NUMBER;
hash = (53 * hash) + getTtl().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts 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.common.v1.BanyandbCommon.ResourceOpts parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts 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.common.v1.BanyandbCommon.ResourceOpts parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts 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.common.v1.BanyandbCommon.ResourceOpts parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts 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.common.v1.BanyandbCommon.ResourceOpts parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts 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.common.v1.BanyandbCommon.ResourceOpts 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.common.v1.ResourceOpts}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.ResourceOpts)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_ResourceOpts_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_ResourceOpts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSegmentIntervalFieldBuilder();
getTtlFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
shardNum_ = 0;
segmentInterval_ = null;
if (segmentIntervalBuilder_ != null) {
segmentIntervalBuilder_.dispose();
segmentIntervalBuilder_ = null;
}
ttl_ = null;
if (ttlBuilder_ != null) {
ttlBuilder_.dispose();
ttlBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_ResourceOpts_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.shardNum_ = shardNum_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.segmentInterval_ = segmentIntervalBuilder_ == null
? segmentInterval_
: segmentIntervalBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ttl_ = ttlBuilder_ == null
? ttl_
: ttlBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance()) return this;
if (other.getShardNum() != 0) {
setShardNum(other.getShardNum());
}
if (other.hasSegmentInterval()) {
mergeSegmentInterval(other.getSegmentInterval());
}
if (other.hasTtl()) {
mergeTtl(other.getTtl());
}
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: {
shardNum_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getSegmentIntervalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTtlFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int shardNum_ ;
/**
*
* shard_num is the number of shards
*
*
* uint32 shard_num = 1 [(.validate.rules) = { ... }
* @return The shardNum.
*/
@java.lang.Override
public int getShardNum() {
return shardNum_;
}
/**
*
* shard_num is the number of shards
*
*
* uint32 shard_num = 1 [(.validate.rules) = { ... }
* @param value The shardNum to set.
* @return This builder for chaining.
*/
public Builder setShardNum(int value) {
shardNum_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* shard_num is the number of shards
*
*
* uint32 shard_num = 1 [(.validate.rules) = { ... }
* @return This builder for chaining.
*/
public Builder clearShardNum() {
bitField0_ = (bitField0_ & ~0x00000001);
shardNum_ = 0;
onChanged();
return this;
}
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule segmentInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder> segmentIntervalBuilder_;
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
* @return Whether the segmentInterval field is set.
*/
public boolean hasSegmentInterval() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
* @return The segmentInterval.
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getSegmentInterval() {
if (segmentIntervalBuilder_ == null) {
return segmentInterval_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : segmentInterval_;
} else {
return segmentIntervalBuilder_.getMessage();
}
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
public Builder setSegmentInterval(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule value) {
if (segmentIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
segmentInterval_ = value;
} else {
segmentIntervalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
public Builder setSegmentInterval(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder builderForValue) {
if (segmentIntervalBuilder_ == null) {
segmentInterval_ = builderForValue.build();
} else {
segmentIntervalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
public Builder mergeSegmentInterval(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule value) {
if (segmentIntervalBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
segmentInterval_ != null &&
segmentInterval_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance()) {
getSegmentIntervalBuilder().mergeFrom(value);
} else {
segmentInterval_ = value;
}
} else {
segmentIntervalBuilder_.mergeFrom(value);
}
if (segmentInterval_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
public Builder clearSegmentInterval() {
bitField0_ = (bitField0_ & ~0x00000002);
segmentInterval_ = null;
if (segmentIntervalBuilder_ != null) {
segmentIntervalBuilder_.dispose();
segmentIntervalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder getSegmentIntervalBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSegmentIntervalFieldBuilder().getBuilder();
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder getSegmentIntervalOrBuilder() {
if (segmentIntervalBuilder_ != null) {
return segmentIntervalBuilder_.getMessageOrBuilder();
} else {
return segmentInterval_ == null ?
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : segmentInterval_;
}
}
/**
*
* segment_interval indicates the length of a segment
*
*
* .banyandb.common.v1.IntervalRule segment_interval = 2 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder>
getSegmentIntervalFieldBuilder() {
if (segmentIntervalBuilder_ == null) {
segmentIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder>(
getSegmentInterval(),
getParentForChildren(),
isClean());
segmentInterval_ = null;
}
return segmentIntervalBuilder_;
}
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule ttl_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder> ttlBuilder_;
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
* @return Whether the ttl field is set.
*/
public boolean hasTtl() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
* @return The ttl.
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule getTtl() {
if (ttlBuilder_ == null) {
return ttl_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : ttl_;
} else {
return ttlBuilder_.getMessage();
}
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
public Builder setTtl(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule value) {
if (ttlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ttl_ = value;
} else {
ttlBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
public Builder setTtl(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder builderForValue) {
if (ttlBuilder_ == null) {
ttl_ = builderForValue.build();
} else {
ttlBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
public Builder mergeTtl(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule value) {
if (ttlBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
ttl_ != null &&
ttl_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance()) {
getTtlBuilder().mergeFrom(value);
} else {
ttl_ = value;
}
} else {
ttlBuilder_.mergeFrom(value);
}
if (ttl_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
public Builder clearTtl() {
bitField0_ = (bitField0_ & ~0x00000004);
ttl_ = null;
if (ttlBuilder_ != null) {
ttlBuilder_.dispose();
ttlBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder getTtlBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTtlFieldBuilder().getBuilder();
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder getTtlOrBuilder() {
if (ttlBuilder_ != null) {
return ttlBuilder_.getMessageOrBuilder();
} else {
return ttl_ == null ?
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.getDefaultInstance() : ttl_;
}
}
/**
*
* ttl indicates time to live, how long the data will be cached
*
*
* .banyandb.common.v1.IntervalRule ttl = 3 [(.validate.rules) = { ... }
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder>
getTtlFieldBuilder() {
if (ttlBuilder_ == null) {
ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRule.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.IntervalRuleOrBuilder>(
getTtl(),
getParentForChildren(),
isClean());
ttl_ = null;
}
return ttlBuilder_;
}
@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.common.v1.ResourceOpts)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.ResourceOpts)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResourceOpts 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.common.v1.BanyandbCommon.ResourceOpts getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.Group)
com.google.protobuf.MessageOrBuilder {
/**
*
* metadata define the group's identity
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
*
* metadata define the group's identity
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return The metadata.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata getMetadata();
/**
*
* metadata define the group's identity
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.MetadataOrBuilder getMetadataOrBuilder();
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return The enum numeric value on the wire for catalog.
*/
int getCatalogValue();
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return The catalog.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog getCatalog();
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
* @return Whether the resourceOpts field is set.
*/
boolean hasResourceOpts();
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
* @return The resourceOpts.
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts getResourceOpts();
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder getResourceOptsOrBuilder();
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
* @return Whether the updatedAt field is set.
*/
boolean hasUpdatedAt();
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
* @return The updatedAt.
*/
com.google.protobuf.Timestamp getUpdatedAt();
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder();
}
/**
*
* Group is an internal object for Group management
*
*
* Protobuf type {@code banyandb.common.v1.Group}
*/
public static final class Group extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.Group)
GroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use Group.newBuilder() to construct.
private Group(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Group() {
catalog_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Group();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Group_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Group_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Metadata metadata_;
/**
*
* metadata define the group's identity
*
*
* .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);
}
/**
*
* metadata define the group's identity
*
*
* .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_;
}
/**
*
* metadata define the group's identity
*
*
* .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 CATALOG_FIELD_NUMBER = 2;
private int catalog_ = 0;
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return The enum numeric value on the wire for catalog.
*/
@java.lang.Override public int getCatalogValue() {
return catalog_;
}
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return The catalog.
*/
@java.lang.Override public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog getCatalog() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog result = org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog.forNumber(catalog_);
return result == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog.UNRECOGNIZED : result;
}
public static final int RESOURCE_OPTS_FIELD_NUMBER = 3;
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts resourceOpts_;
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
* @return Whether the resourceOpts field is set.
*/
@java.lang.Override
public boolean hasResourceOpts() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
* @return The resourceOpts.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts getResourceOpts() {
return resourceOpts_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance() : resourceOpts_;
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder getResourceOptsOrBuilder() {
return resourceOpts_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance() : resourceOpts_;
}
public static final int UPDATED_AT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp updatedAt_;
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
* @return Whether the updatedAt field is set.
*/
@java.lang.Override
public boolean hasUpdatedAt() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
* @return The updatedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdatedAt() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
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 (catalog_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog.CATALOG_UNSPECIFIED.getNumber()) {
output.writeEnum(2, catalog_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getResourceOpts());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getUpdatedAt());
}
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 (catalog_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog.CATALOG_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, catalog_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResourceOpts());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUpdatedAt());
}
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.common.v1.BanyandbCommon.Group)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group) obj;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (catalog_ != other.catalog_) return false;
if (hasResourceOpts() != other.hasResourceOpts()) return false;
if (hasResourceOpts()) {
if (!getResourceOpts()
.equals(other.getResourceOpts())) return false;
}
if (hasUpdatedAt() != other.hasUpdatedAt()) return false;
if (hasUpdatedAt()) {
if (!getUpdatedAt()
.equals(other.getUpdatedAt())) 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();
}
hash = (37 * hash) + CATALOG_FIELD_NUMBER;
hash = (53 * hash) + catalog_;
if (hasResourceOpts()) {
hash = (37 * hash) + RESOURCE_OPTS_FIELD_NUMBER;
hash = (53 * hash) + getResourceOpts().hashCode();
}
if (hasUpdatedAt()) {
hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAt().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group 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.common.v1.BanyandbCommon.Group parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group 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.common.v1.BanyandbCommon.Group parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group 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.common.v1.BanyandbCommon.Group parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group 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.common.v1.BanyandbCommon.Group parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group 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.common.v1.BanyandbCommon.Group 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;
}
/**
*
* Group is an internal object for Group management
*
*
* Protobuf type {@code banyandb.common.v1.Group}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.Group)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.GroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Group_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Group_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.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();
getResourceOptsFieldBuilder();
getUpdatedAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
catalog_ = 0;
resourceOpts_ = null;
if (resourceOptsBuilder_ != null) {
resourceOptsBuilder_.dispose();
resourceOptsBuilder_ = null;
}
updatedAt_ = null;
if (updatedAtBuilder_ != null) {
updatedAtBuilder_.dispose();
updatedAtBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Group_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group 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.catalog_ = catalog_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.resourceOpts_ = resourceOptsBuilder_ == null
? resourceOpts_
: resourceOptsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updatedAt_ = updatedAtBuilder_ == null
? updatedAt_
: updatedAtBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.common.v1.BanyandbCommon.Group) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.catalog_ != 0) {
setCatalogValue(other.getCatalogValue());
}
if (other.hasResourceOpts()) {
mergeResourceOpts(other.getResourceOpts());
}
if (other.hasUpdatedAt()) {
mergeUpdatedAt(other.getUpdatedAt());
}
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 16: {
catalog_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getResourceOptsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getUpdatedAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private 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_;
/**
*
* metadata define the group's identity
*
*
* .banyandb.common.v1.Metadata metadata = 1 [(.validate.rules) = { ... }
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* metadata define the group's identity
*
*
* .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();
}
}
/**
*
* metadata define the group's identity
*
*
* .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;
}
/**
*
* metadata define the group's identity
*
*
* .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;
}
/**
*
* metadata define the group's identity
*
*
* .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;
}
/**
*
* metadata define the group's identity
*
*
* .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;
}
/**
*
* metadata define the group's identity
*
*
* .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();
}
/**
*
* metadata define the group's identity
*
*
* .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_;
}
}
/**
*
* metadata define the group's identity
*
*
* .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 int catalog_ = 0;
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return The enum numeric value on the wire for catalog.
*/
@java.lang.Override public int getCatalogValue() {
return catalog_;
}
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @param value The enum numeric value on the wire for catalog to set.
* @return This builder for chaining.
*/
public Builder setCatalogValue(int value) {
catalog_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return The catalog.
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog getCatalog() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog result = org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog.forNumber(catalog_);
return result == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog.UNRECOGNIZED : result;
}
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @param value The catalog to set.
* @return This builder for chaining.
*/
public Builder setCatalog(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Catalog value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
catalog_ = value.getNumber();
onChanged();
return this;
}
/**
*
* catalog denotes which type of data the group contains
*
*
* .banyandb.common.v1.Catalog catalog = 2;
* @return This builder for chaining.
*/
public Builder clearCatalog() {
bitField0_ = (bitField0_ & ~0x00000002);
catalog_ = 0;
onChanged();
return this;
}
private org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts resourceOpts_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder> resourceOptsBuilder_;
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
* @return Whether the resourceOpts field is set.
*/
public boolean hasResourceOpts() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
* @return The resourceOpts.
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts getResourceOpts() {
if (resourceOptsBuilder_ == null) {
return resourceOpts_ == null ? org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance() : resourceOpts_;
} else {
return resourceOptsBuilder_.getMessage();
}
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
public Builder setResourceOpts(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts value) {
if (resourceOptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourceOpts_ = value;
} else {
resourceOptsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
public Builder setResourceOpts(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder builderForValue) {
if (resourceOptsBuilder_ == null) {
resourceOpts_ = builderForValue.build();
} else {
resourceOptsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
public Builder mergeResourceOpts(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts value) {
if (resourceOptsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
resourceOpts_ != null &&
resourceOpts_ != org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance()) {
getResourceOptsBuilder().mergeFrom(value);
} else {
resourceOpts_ = value;
}
} else {
resourceOptsBuilder_.mergeFrom(value);
}
if (resourceOpts_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
public Builder clearResourceOpts() {
bitField0_ = (bitField0_ & ~0x00000004);
resourceOpts_ = null;
if (resourceOptsBuilder_ != null) {
resourceOptsBuilder_.dispose();
resourceOptsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder getResourceOptsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getResourceOptsFieldBuilder().getBuilder();
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder getResourceOptsOrBuilder() {
if (resourceOptsBuilder_ != null) {
return resourceOptsBuilder_.getMessageOrBuilder();
} else {
return resourceOpts_ == null ?
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.getDefaultInstance() : resourceOpts_;
}
}
/**
*
* resourceOpts indicates the structure of the underlying kv storage
*
*
* .banyandb.common.v1.ResourceOpts resource_opts = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder>
getResourceOptsFieldBuilder() {
if (resourceOptsBuilder_ == null) {
resourceOptsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOpts.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.ResourceOptsOrBuilder>(
getResourceOpts(),
getParentForChildren(),
isClean());
resourceOpts_ = null;
}
return resourceOptsBuilder_;
}
private com.google.protobuf.Timestamp updatedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_;
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
* @return Whether the updatedAt field is set.
*/
public boolean hasUpdatedAt() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
* @return The updatedAt.
*/
public com.google.protobuf.Timestamp getUpdatedAt() {
if (updatedAtBuilder_ == null) {
return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
} else {
return updatedAtBuilder_.getMessage();
}
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
public Builder setUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAt_ = value;
} else {
updatedAtBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
public Builder setUpdatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (updatedAtBuilder_ == null) {
updatedAt_ = builderForValue.build();
} else {
updatedAtBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) {
if (updatedAtBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
updatedAt_ != null &&
updatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdatedAtBuilder().mergeFrom(value);
} else {
updatedAt_ = value;
}
} else {
updatedAtBuilder_.mergeFrom(value);
}
if (updatedAt_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
public Builder clearUpdatedAt() {
bitField0_ = (bitField0_ & ~0x00000008);
updatedAt_ = null;
if (updatedAtBuilder_ != null) {
updatedAtBuilder_.dispose();
updatedAtBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUpdatedAtFieldBuilder().getBuilder();
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() {
if (updatedAtBuilder_ != null) {
return updatedAtBuilder_.getMessageOrBuilder();
} else {
return updatedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_;
}
}
/**
*
* updated_at indicates when resources of the group are updated
*
*
* .google.protobuf.Timestamp updated_at = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getUpdatedAtFieldBuilder() {
if (updatedAtBuilder_ == null) {
updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getUpdatedAt(),
getParentForChildren(),
isClean());
updatedAt_ = null;
}
return updatedAtBuilder_;
}
@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.common.v1.Group)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.Group)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Group getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Group 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.common.v1.BanyandbCommon.Group getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TraceOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.Trace)
com.google.protobuf.MessageOrBuilder {
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return The traceId.
*/
java.lang.String getTraceId();
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return The bytes for traceId.
*/
com.google.protobuf.ByteString
getTraceIdBytes();
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
java.util.List
getSpansList();
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getSpans(int index);
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
int getSpansCount();
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getSpansOrBuilderList();
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder getSpansOrBuilder(
int index);
/**
*
* error indicates whether the trace is an error trace.
*
*
* bool error = 3;
* @return The error.
*/
boolean getError();
}
/**
*
* Trace is the top level message of a trace.
*
*
* Protobuf type {@code banyandb.common.v1.Trace}
*/
public static final class Trace extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.Trace)
TraceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Trace.newBuilder() to construct.
private Trace(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Trace() {
traceId_ = "";
spans_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Trace();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Trace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Trace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder.class);
}
public static final int TRACE_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object traceId_ = "";
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return The traceId.
*/
@java.lang.Override
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
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();
traceId_ = s;
return s;
}
}
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return The bytes for traceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPANS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List spans_;
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
@java.lang.Override
public java.util.List getSpansList() {
return spans_;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getSpansOrBuilderList() {
return spans_;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
@java.lang.Override
public int getSpansCount() {
return spans_.size();
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getSpans(int index) {
return spans_.get(index);
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder getSpansOrBuilder(
int index) {
return spans_.get(index);
}
public static final int ERROR_FIELD_NUMBER = 3;
private boolean error_ = false;
/**
*
* error indicates whether the trace is an error trace.
*
*
* bool error = 3;
* @return The error.
*/
@java.lang.Override
public boolean getError() {
return error_;
}
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(traceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, traceId_);
}
for (int i = 0; i < spans_.size(); i++) {
output.writeMessage(2, spans_.get(i));
}
if (error_ != false) {
output.writeBool(3, error_);
}
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(traceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, traceId_);
}
for (int i = 0; i < spans_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, spans_.get(i));
}
if (error_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, error_);
}
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.common.v1.BanyandbCommon.Trace)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace) obj;
if (!getTraceId()
.equals(other.getTraceId())) return false;
if (!getSpansList()
.equals(other.getSpansList())) return false;
if (getError()
!= other.getError()) 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) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
if (getSpansCount() > 0) {
hash = (37 * hash) + SPANS_FIELD_NUMBER;
hash = (53 * hash) + getSpansList().hashCode();
}
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getError());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace 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.common.v1.BanyandbCommon.Trace parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace 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.common.v1.BanyandbCommon.Trace parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace 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.common.v1.BanyandbCommon.Trace parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace 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.common.v1.BanyandbCommon.Trace parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace 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.common.v1.BanyandbCommon.Trace 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;
}
/**
*
* Trace is the top level message of a trace.
*
*
* Protobuf type {@code banyandb.common.v1.Trace}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.Trace)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TraceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Trace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Trace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
traceId_ = "";
if (spansBuilder_ == null) {
spans_ = java.util.Collections.emptyList();
} else {
spans_ = null;
spansBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
error_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Trace_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace result) {
if (spansBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
spans_ = java.util.Collections.unmodifiableList(spans_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.spans_ = spans_;
} else {
result.spans_ = spansBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.traceId_ = traceId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.error_ = error_;
}
}
@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.common.v1.BanyandbCommon.Trace) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace.getDefaultInstance()) return this;
if (!other.getTraceId().isEmpty()) {
traceId_ = other.traceId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (spansBuilder_ == null) {
if (!other.spans_.isEmpty()) {
if (spans_.isEmpty()) {
spans_ = other.spans_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSpansIsMutable();
spans_.addAll(other.spans_);
}
onChanged();
}
} else {
if (!other.spans_.isEmpty()) {
if (spansBuilder_.isEmpty()) {
spansBuilder_.dispose();
spansBuilder_ = null;
spans_ = other.spans_;
bitField0_ = (bitField0_ & ~0x00000002);
spansBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpansFieldBuilder() : null;
} else {
spansBuilder_.addAllMessages(other.spans_);
}
}
}
if (other.getError() != false) {
setError(other.getError());
}
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: {
traceId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span m =
input.readMessage(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.parser(),
extensionRegistry);
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.add(m);
} else {
spansBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
error_ = input.readBool();
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 java.lang.Object traceId_ = "";
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return The traceId.
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
traceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return The bytes for traceId.
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @param value The traceId to set.
* @return This builder for chaining.
*/
public Builder setTraceId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
traceId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @return This builder for chaining.
*/
public Builder clearTraceId() {
traceId_ = getDefaultInstance().getTraceId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* trace_id is the unique identifier of the trace.
*
*
* string trace_id = 1;
* @param value The bytes for traceId to set.
* @return This builder for chaining.
*/
public Builder setTraceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
traceId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List spans_ =
java.util.Collections.emptyList();
private void ensureSpansIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
spans_ = new java.util.ArrayList(spans_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder> spansBuilder_;
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public java.util.List getSpansList() {
if (spansBuilder_ == null) {
return java.util.Collections.unmodifiableList(spans_);
} else {
return spansBuilder_.getMessageList();
}
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public int getSpansCount() {
if (spansBuilder_ == null) {
return spans_.size();
} else {
return spansBuilder_.getCount();
}
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getSpans(int index) {
if (spansBuilder_ == null) {
return spans_.get(index);
} else {
return spansBuilder_.getMessage(index);
}
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder setSpans(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span value) {
if (spansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpansIsMutable();
spans_.set(index, value);
onChanged();
} else {
spansBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder setSpans(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder builderForValue) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.set(index, builderForValue.build());
onChanged();
} else {
spansBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder addSpans(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span value) {
if (spansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpansIsMutable();
spans_.add(value);
onChanged();
} else {
spansBuilder_.addMessage(value);
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder addSpans(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span value) {
if (spansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpansIsMutable();
spans_.add(index, value);
onChanged();
} else {
spansBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder addSpans(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder builderForValue) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.add(builderForValue.build());
onChanged();
} else {
spansBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder addSpans(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder builderForValue) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.add(index, builderForValue.build());
onChanged();
} else {
spansBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder addAllSpans(
java.lang.Iterable extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span> values) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spans_);
onChanged();
} else {
spansBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder clearSpans() {
if (spansBuilder_ == null) {
spans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
spansBuilder_.clear();
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public Builder removeSpans(int index) {
if (spansBuilder_ == null) {
ensureSpansIsMutable();
spans_.remove(index);
onChanged();
} else {
spansBuilder_.remove(index);
}
return this;
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder getSpansBuilder(
int index) {
return getSpansFieldBuilder().getBuilder(index);
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder getSpansOrBuilder(
int index) {
if (spansBuilder_ == null) {
return spans_.get(index); } else {
return spansBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getSpansOrBuilderList() {
if (spansBuilder_ != null) {
return spansBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spans_);
}
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder addSpansBuilder() {
return getSpansFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.getDefaultInstance());
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder addSpansBuilder(
int index) {
return getSpansFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.getDefaultInstance());
}
/**
*
* spans is a list of spans in the trace.
*
*
* repeated .banyandb.common.v1.Span spans = 2;
*/
public java.util.List
getSpansBuilderList() {
return getSpansFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getSpansFieldBuilder() {
if (spansBuilder_ == null) {
spansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>(
spans_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
spans_ = null;
}
return spansBuilder_;
}
private boolean error_ ;
/**
*
* error indicates whether the trace is an error trace.
*
*
* bool error = 3;
* @return The error.
*/
@java.lang.Override
public boolean getError() {
return error_;
}
/**
*
* error indicates whether the trace is an error trace.
*
*
* bool error = 3;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(boolean value) {
error_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* error indicates whether the trace is an error trace.
*
*
* bool error = 3;
* @return This builder for chaining.
*/
public Builder clearError() {
bitField0_ = (bitField0_ & ~0x00000004);
error_ = 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.common.v1.Trace)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.Trace)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Trace getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Trace 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.common.v1.BanyandbCommon.Trace getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpanOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.Span)
com.google.protobuf.MessageOrBuilder {
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
* @return Whether the endTime field is set.
*/
boolean hasEndTime();
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
* @return The endTime.
*/
com.google.protobuf.Timestamp getEndTime();
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
/**
*
* error indicates whether the span is an error span.
*
*
* bool error = 3;
* @return The error.
*/
boolean getError();
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
java.util.List
getTagsList();
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag getTags(int index);
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
int getTagsCount();
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder>
getTagsOrBuilderList();
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder getTagsOrBuilder(
int index);
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
java.util.List
getChildrenList();
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getChildren(int index);
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
int getChildrenCount();
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getChildrenOrBuilderList();
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder getChildrenOrBuilder(
int index);
/**
*
* duration is the duration of the span.
*
*
* int64 duration = 7;
* @return The duration.
*/
long getDuration();
}
/**
*
* Span is the basic unit of a trace.
*
*
* Protobuf type {@code banyandb.common.v1.Span}
*/
public static final class Span extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.Span)
SpanOrBuilder {
private static final long serialVersionUID = 0L;
// Use Span.newBuilder() to construct.
private Span(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Span() {
tags_ = java.util.Collections.emptyList();
message_ = "";
children_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Span();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Span_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Span_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder.class);
}
private int bitField0_;
public static final int START_TIME_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp startTime_;
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int END_TIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp endTime_;
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
* @return The endTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEndTime() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
public static final int ERROR_FIELD_NUMBER = 3;
private boolean error_ = false;
/**
*
* error indicates whether the span is an error span.
*
*
* bool error = 3;
* @return The error.
*/
@java.lang.Override
public boolean getError() {
return error_;
}
public static final int TAGS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List tags_;
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
@java.lang.Override
public java.util.List getTagsList() {
return tags_;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder>
getTagsOrBuilderList() {
return tags_;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
@java.lang.Override
public int getTagsCount() {
return tags_.size();
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag getTags(int index) {
return tags_.get(index);
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder getTagsOrBuilder(
int index) {
return tags_.get(index);
}
public static final int MESSAGE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHILDREN_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List children_;
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
@java.lang.Override
public java.util.List getChildrenList() {
return children_;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
@java.lang.Override
public java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getChildrenOrBuilderList() {
return children_;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
@java.lang.Override
public int getChildrenCount() {
return children_.size();
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getChildren(int index) {
return children_.get(index);
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder getChildrenOrBuilder(
int index) {
return children_.get(index);
}
public static final int DURATION_FIELD_NUMBER = 7;
private long duration_ = 0L;
/**
*
* duration is the duration of the span.
*
*
* int64 duration = 7;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
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, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getEndTime());
}
if (error_ != false) {
output.writeBool(3, error_);
}
for (int i = 0; i < tags_.size(); i++) {
output.writeMessage(4, tags_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_);
}
for (int i = 0; i < children_.size(); i++) {
output.writeMessage(6, children_.get(i));
}
if (duration_ != 0L) {
output.writeInt64(7, duration_);
}
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, getStartTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getEndTime());
}
if (error_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, error_);
}
for (int i = 0; i < tags_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, tags_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_);
}
for (int i = 0; i < children_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, children_.get(i));
}
if (duration_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, duration_);
}
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.common.v1.BanyandbCommon.Span)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span) obj;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime()
.equals(other.getStartTime())) return false;
}
if (hasEndTime() != other.hasEndTime()) return false;
if (hasEndTime()) {
if (!getEndTime()
.equals(other.getEndTime())) return false;
}
if (getError()
!= other.getError()) return false;
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!getChildrenList()
.equals(other.getChildrenList())) return false;
if (getDuration()
!= other.getDuration()) 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 (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getError());
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (getChildrenCount() > 0) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + getChildrenList().hashCode();
}
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDuration());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span 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.common.v1.BanyandbCommon.Span parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span 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.common.v1.BanyandbCommon.Span parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span 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.common.v1.BanyandbCommon.Span parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span 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.common.v1.BanyandbCommon.Span parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span 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.common.v1.BanyandbCommon.Span 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;
}
/**
*
* Span is the basic unit of a trace.
*
*
* Protobuf type {@code banyandb.common.v1.Span}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.Span)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Span_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Span_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartTimeFieldBuilder();
getEndTimeFieldBuilder();
getTagsFieldBuilder();
getChildrenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
error_ = false;
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
} else {
tags_ = null;
tagsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
message_ = "";
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
} else {
children_ = null;
childrenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
duration_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Span_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span result) {
if (tagsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.tags_ = tags_;
} else {
result.tags_ = tagsBuilder_.build();
}
if (childrenBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
children_ = java.util.Collections.unmodifiableList(children_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.children_ = children_;
} else {
result.children_ = childrenBuilder_.build();
}
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startTime_ = startTimeBuilder_ == null
? startTime_
: startTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endTime_ = endTimeBuilder_ == null
? endTime_
: endTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.error_ = error_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.message_ = message_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.duration_ = duration_;
}
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.common.v1.BanyandbCommon.Span) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.getDefaultInstance()) return this;
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasEndTime()) {
mergeEndTime(other.getEndTime());
}
if (other.getError() != false) {
setError(other.getError());
}
if (tagsBuilder_ == null) {
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
} else {
if (!other.tags_.isEmpty()) {
if (tagsBuilder_.isEmpty()) {
tagsBuilder_.dispose();
tagsBuilder_ = null;
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000008);
tagsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTagsFieldBuilder() : null;
} else {
tagsBuilder_.addAllMessages(other.tags_);
}
}
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000010;
onChanged();
}
if (childrenBuilder_ == null) {
if (!other.children_.isEmpty()) {
if (children_.isEmpty()) {
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureChildrenIsMutable();
children_.addAll(other.children_);
}
onChanged();
}
} else {
if (!other.children_.isEmpty()) {
if (childrenBuilder_.isEmpty()) {
childrenBuilder_.dispose();
childrenBuilder_ = null;
children_ = other.children_;
bitField0_ = (bitField0_ & ~0x00000020);
childrenBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChildrenFieldBuilder() : null;
} else {
childrenBuilder_.addAllMessages(other.children_);
}
}
}
if (other.getDuration() != 0L) {
setDuration(other.getDuration());
}
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(
getStartTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getEndTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
error_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag m =
input.readMessage(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.parser(),
extensionRegistry);
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.add(m);
} else {
tagsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span m =
input.readMessage(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.parser(),
extensionRegistry);
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(m);
} else {
childrenBuilder_.addMessage(m);
}
break;
} // case 50
case 56: {
duration_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder setStartTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
startTime_ != null &&
startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getStartTimeBuilder().mergeFrom(value);
} else {
startTime_ = value;
}
} else {
startTimeBuilder_.mergeFrom(value);
}
if (startTime_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000001);
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
* start_time is the start time of the span.
*
*
* .google.protobuf.Timestamp start_time = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStartTime(),
getParentForChildren(),
isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
} else {
endTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder setEndTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
endTime_ != null &&
endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
} else {
endTime_ = value;
}
} else {
endTimeBuilder_.mergeFrom(value);
}
if (endTime_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000002);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
* end_time is the end time of the span.
*
*
* .google.protobuf.Timestamp end_time = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getEndTime(),
getParentForChildren(),
isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
private boolean error_ ;
/**
*
* error indicates whether the span is an error span.
*
*
* bool error = 3;
* @return The error.
*/
@java.lang.Override
public boolean getError() {
return error_;
}
/**
*
* error indicates whether the span is an error span.
*
*
* bool error = 3;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(boolean value) {
error_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* error indicates whether the span is an error span.
*
*
* bool error = 3;
* @return This builder for chaining.
*/
public Builder clearError() {
bitField0_ = (bitField0_ & ~0x00000004);
error_ = false;
onChanged();
return this;
}
private java.util.List tags_ =
java.util.Collections.emptyList();
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
tags_ = new java.util.ArrayList(tags_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder> tagsBuilder_;
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public java.util.List getTagsList() {
if (tagsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tags_);
} else {
return tagsBuilder_.getMessageList();
}
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public int getTagsCount() {
if (tagsBuilder_ == null) {
return tags_.size();
} else {
return tagsBuilder_.getCount();
}
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag getTags(int index) {
if (tagsBuilder_ == null) {
return tags_.get(index);
} else {
return tagsBuilder_.getMessage(index);
}
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder setTags(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
} else {
tagsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder setTags(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder builderForValue) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.set(index, builderForValue.build());
onChanged();
} else {
tagsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder addTags(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
} else {
tagsBuilder_.addMessage(value);
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder addTags(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(index, value);
onChanged();
} else {
tagsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder addTags(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder builderForValue) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.add(builderForValue.build());
onChanged();
} else {
tagsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder addTags(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder builderForValue) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.add(index, builderForValue.build());
onChanged();
} else {
tagsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder addAllTags(
java.lang.Iterable extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag> values) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
} else {
tagsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder clearTags() {
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
tagsBuilder_.clear();
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public Builder removeTags(int index) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.remove(index);
onChanged();
} else {
tagsBuilder_.remove(index);
}
return this;
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder getTagsBuilder(
int index) {
return getTagsFieldBuilder().getBuilder(index);
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder getTagsOrBuilder(
int index) {
if (tagsBuilder_ == null) {
return tags_.get(index); } else {
return tagsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder>
getTagsOrBuilderList() {
if (tagsBuilder_ != null) {
return tagsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tags_);
}
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder addTagsBuilder() {
return getTagsFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.getDefaultInstance());
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder addTagsBuilder(
int index) {
return getTagsFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.getDefaultInstance());
}
/**
*
* tags is a list of tags of the span.
*
*
* repeated .banyandb.common.v1.Tag tags = 4;
*/
public java.util.List
getTagsBuilderList() {
return getTagsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder>
getTagsFieldBuilder() {
if (tagsBuilder_ == null) {
tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder>(
tags_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
tags_ = null;
}
return tagsBuilder_;
}
private java.lang.Object message_ = "";
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* message is the message generated by the span.
*
*
* string message = 5;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.util.List children_ =
java.util.Collections.emptyList();
private void ensureChildrenIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
children_ = new java.util.ArrayList(children_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder> childrenBuilder_;
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public java.util.List getChildrenList() {
if (childrenBuilder_ == null) {
return java.util.Collections.unmodifiableList(children_);
} else {
return childrenBuilder_.getMessageList();
}
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public int getChildrenCount() {
if (childrenBuilder_ == null) {
return children_.size();
} else {
return childrenBuilder_.getCount();
}
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getChildren(int index) {
if (childrenBuilder_ == null) {
return children_.get(index);
} else {
return childrenBuilder_.getMessage(index);
}
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder setChildren(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.set(index, value);
onChanged();
} else {
childrenBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder setChildren(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.set(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder addChildren(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(value);
onChanged();
} else {
childrenBuilder_.addMessage(value);
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder addChildren(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span value) {
if (childrenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildrenIsMutable();
children_.add(index, value);
onChanged();
} else {
childrenBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder addChildren(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder addChildren(
int index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder builderForValue) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.add(index, builderForValue.build());
onChanged();
} else {
childrenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder addAllChildren(
java.lang.Iterable extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span> values) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, children_);
onChanged();
} else {
childrenBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder clearChildren() {
if (childrenBuilder_ == null) {
children_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
childrenBuilder_.clear();
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public Builder removeChildren(int index) {
if (childrenBuilder_ == null) {
ensureChildrenIsMutable();
children_.remove(index);
onChanged();
} else {
childrenBuilder_.remove(index);
}
return this;
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder getChildrenBuilder(
int index) {
return getChildrenFieldBuilder().getBuilder(index);
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder getChildrenOrBuilder(
int index) {
if (childrenBuilder_ == null) {
return children_.get(index); } else {
return childrenBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public java.util.List extends org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getChildrenOrBuilderList() {
if (childrenBuilder_ != null) {
return childrenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(children_);
}
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder addChildrenBuilder() {
return getChildrenFieldBuilder().addBuilder(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.getDefaultInstance());
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder addChildrenBuilder(
int index) {
return getChildrenFieldBuilder().addBuilder(
index, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.getDefaultInstance());
}
/**
*
* children is a list of child spans of the span.
*
*
* repeated .banyandb.common.v1.Span children = 6;
*/
public java.util.List
getChildrenBuilderList() {
return getChildrenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>
getChildrenFieldBuilder() {
if (childrenBuilder_ == null) {
childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span.Builder, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.SpanOrBuilder>(
children_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
children_ = null;
}
return childrenBuilder_;
}
private long duration_ ;
/**
*
* duration is the duration of the span.
*
*
* int64 duration = 7;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
/**
*
* duration is the duration of the span.
*
*
* int64 duration = 7;
* @param value The duration to set.
* @return This builder for chaining.
*/
public Builder setDuration(long value) {
duration_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* duration is the duration of the span.
*
*
* int64 duration = 7;
* @return This builder for chaining.
*/
public Builder clearDuration() {
bitField0_ = (bitField0_ & ~0x00000040);
duration_ = 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.common.v1.Span)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.Span)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Span getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Span 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.common.v1.BanyandbCommon.Span getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TagOrBuilder extends
// @@protoc_insertion_point(interface_extends:banyandb.common.v1.Tag)
com.google.protobuf.MessageOrBuilder {
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return The value.
*/
java.lang.String getValue();
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
*
* Tag is the key-value pair of a span.
*
*
* Protobuf type {@code banyandb.common.v1.Tag}
*/
public static final class Tag extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:banyandb.common.v1.Tag)
TagOrBuilder {
private static final long serialVersionUID = 0L;
// Use Tag.newBuilder() to construct.
private Tag(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Tag() {
key_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Tag();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Tag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Tag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag)) {
return super.equals(obj);
}
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag other = (org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Tag is the key-value pair of a span.
*
*
* Protobuf type {@code banyandb.common.v1.Tag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:banyandb.common.v1.Tag)
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.TagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Tag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Tag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.class, org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.Builder.class);
}
// Construct using org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = "";
value_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.internal_static_banyandb_common_v1_Tag_descriptor;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag getDefaultInstanceForType() {
return org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.getDefaultInstance();
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag build() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag buildPartial() {
org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag result = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag) {
return mergeFrom((org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag other) {
if (other == org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* key is the key of the tag.
*
*
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* value is the value of the tag.
*
*
* string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:banyandb.common.v1.Tag)
}
// @@protoc_insertion_point(class_scope:banyandb.common.v1.Tag)
private static final org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag();
}
public static org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Tag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.skywalking.banyandb.common.v1.BanyandbCommon.Tag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_Metadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_Metadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_IntervalRule_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_IntervalRule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_ResourceOpts_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_ResourceOpts_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_Group_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_Group_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_Trace_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_Trace_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_Span_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_Span_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_banyandb_common_v1_Tag_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_banyandb_common_v1_Tag_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-common.proto\022\022ban" +
"yandb.common.v1\032\037google/protobuf/timesta" +
"mp.proto\032\027validate/validate.proto\"b\n\010Met" +
"adata\022\r\n\005group\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\n\n\002id" +
"\030\003 \001(\r\022\027\n\017create_revision\030\004 \001(\003\022\024\n\014mod_r" +
"evision\030\005 \001(\003\"\236\001\n\014IntervalRule\022=\n\004unit\030\001" +
" \001(\0162%.banyandb.common.v1.IntervalRule.U" +
"nitB\010\372B\005\202\001\002\020\001\022\024\n\003num\030\002 \001(\rB\007\372B\004*\002 \000\"9\n\004U" +
"nit\022\024\n\020UNIT_UNSPECIFIED\020\000\022\r\n\tUNIT_HOUR\020\001" +
"\022\014\n\010UNIT_DAY\020\002\"\251\001\n\014ResourceOpts\022\032\n\tshard" +
"_num\030\001 \001(\rB\007\372B\004*\002 \000\022D\n\020segment_interval\030" +
"\002 \001(\0132 .banyandb.common.v1.IntervalRuleB" +
"\010\372B\005\212\001\002\020\001\0227\n\003ttl\030\003 \001(\0132 .banyandb.common" +
".v1.IntervalRuleB\010\372B\005\212\001\002\020\001\"\330\001\n\005Group\0228\n\010" +
"metadata\030\001 \001(\0132\034.banyandb.common.v1.Meta" +
"dataB\010\372B\005\212\001\002\020\001\022,\n\007catalog\030\002 \001(\0162\033.banyan" +
"db.common.v1.Catalog\0227\n\rresource_opts\030\003 " +
"\001(\0132 .banyandb.common.v1.ResourceOpts\022.\n" +
"\nupdated_at\030\004 \001(\0132\032.google.protobuf.Time" +
"stamp\"Q\n\005Trace\022\020\n\010trace_id\030\001 \001(\t\022\'\n\005span" +
"s\030\002 \003(\0132\030.banyandb.common.v1.Span\022\r\n\005err" +
"or\030\003 \001(\010\"\351\001\n\004Span\022.\n\nstart_time\030\001 \001(\0132\032." +
"google.protobuf.Timestamp\022,\n\010end_time\030\002 " +
"\001(\0132\032.google.protobuf.Timestamp\022\r\n\005error" +
"\030\003 \001(\010\022%\n\004tags\030\004 \003(\0132\027.banyandb.common.v" +
"1.Tag\022\017\n\007message\030\005 \001(\t\022*\n\010children\030\006 \003(\013" +
"2\030.banyandb.common.v1.Span\022\020\n\010duration\030\007" +
" \001(\003\"!\n\003Tag\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t*" +
"K\n\007Catalog\022\027\n\023CATALOG_UNSPECIFIED\020\000\022\022\n\016C" +
"ATALOG_STREAM\020\001\022\023\n\017CATALOG_MEASURE\020\002B*\n(" +
"org.apache.skywalking.banyandb.common.v1" +
"b\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(),
});
internal_static_banyandb_common_v1_Metadata_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_banyandb_common_v1_Metadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_Metadata_descriptor,
new java.lang.String[] { "Group", "Name", "Id", "CreateRevision", "ModRevision", });
internal_static_banyandb_common_v1_IntervalRule_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_banyandb_common_v1_IntervalRule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_IntervalRule_descriptor,
new java.lang.String[] { "Unit", "Num", });
internal_static_banyandb_common_v1_ResourceOpts_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_banyandb_common_v1_ResourceOpts_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_ResourceOpts_descriptor,
new java.lang.String[] { "ShardNum", "SegmentInterval", "Ttl", });
internal_static_banyandb_common_v1_Group_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_banyandb_common_v1_Group_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_Group_descriptor,
new java.lang.String[] { "Metadata", "Catalog", "ResourceOpts", "UpdatedAt", });
internal_static_banyandb_common_v1_Trace_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_banyandb_common_v1_Trace_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_Trace_descriptor,
new java.lang.String[] { "TraceId", "Spans", "Error", });
internal_static_banyandb_common_v1_Span_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_banyandb_common_v1_Span_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_Span_descriptor,
new java.lang.String[] { "StartTime", "EndTime", "Error", "Tags", "Message", "Children", "Duration", });
internal_static_banyandb_common_v1_Tag_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_banyandb_common_v1_Tag_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_banyandb_common_v1_Tag_descriptor,
new java.lang.String[] { "Key", "Value", });
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();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy