cz.o2.proxima.storage.proto.Serialization Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: serialization.proto
package cz.o2.proxima.storage.proto;
public final class Serialization {
private Serialization() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface HeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.o2.proxima.storage.proto.Header)
com.google.protobuf.MessageOrBuilder {
/**
* string magic = 1;
* @return The magic.
*/
java.lang.String getMagic();
/**
* string magic = 1;
* @return The bytes for magic.
*/
com.google.protobuf.ByteString
getMagicBytes();
/**
* uint32 version = 2;
* @return The version.
*/
int getVersion();
/**
* bool gzip = 3;
* @return The gzip.
*/
boolean getGzip();
}
/**
*
* Header message
*
*
* Protobuf type {@code cz.o2.proxima.storage.proto.Header}
*/
public static final class Header extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.o2.proxima.storage.proto.Header)
HeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use Header.newBuilder() to construct.
private Header(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Header() {
magic_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Header();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.Header.class, cz.o2.proxima.storage.proto.Serialization.Header.Builder.class);
}
public static final int MAGIC_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object magic_ = "";
/**
* string magic = 1;
* @return The magic.
*/
@java.lang.Override
public java.lang.String getMagic() {
java.lang.Object ref = magic_;
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();
magic_ = s;
return s;
}
}
/**
* string magic = 1;
* @return The bytes for magic.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMagicBytes() {
java.lang.Object ref = magic_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
magic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private int version_ = 0;
/**
* uint32 version = 2;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
public static final int GZIP_FIELD_NUMBER = 3;
private boolean gzip_ = false;
/**
* bool gzip = 3;
* @return The gzip.
*/
@java.lang.Override
public boolean getGzip() {
return gzip_;
}
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(magic_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, magic_);
}
if (version_ != 0) {
output.writeUInt32(2, version_);
}
if (gzip_ != false) {
output.writeBool(3, gzip_);
}
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(magic_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, magic_);
}
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, version_);
}
if (gzip_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, gzip_);
}
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 cz.o2.proxima.storage.proto.Serialization.Header)) {
return super.equals(obj);
}
cz.o2.proxima.storage.proto.Serialization.Header other = (cz.o2.proxima.storage.proto.Serialization.Header) obj;
if (!getMagic()
.equals(other.getMagic())) return false;
if (getVersion()
!= other.getVersion()) return false;
if (getGzip()
!= other.getGzip()) 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) + MAGIC_FIELD_NUMBER;
hash = (53 * hash) + getMagic().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (37 * hash) + GZIP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGzip());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Header parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Header 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 cz.o2.proxima.storage.proto.Serialization.Header parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Header 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 cz.o2.proxima.storage.proto.Serialization.Header parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Header 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(cz.o2.proxima.storage.proto.Serialization.Header 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;
}
/**
*
* Header message
*
*
* Protobuf type {@code cz.o2.proxima.storage.proto.Header}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.o2.proxima.storage.proto.Header)
cz.o2.proxima.storage.proto.Serialization.HeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Header_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Header_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.Header.class, cz.o2.proxima.storage.proto.Serialization.Header.Builder.class);
}
// Construct using cz.o2.proxima.storage.proto.Serialization.Header.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
magic_ = "";
version_ = 0;
gzip_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Header_descriptor;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Header getDefaultInstanceForType() {
return cz.o2.proxima.storage.proto.Serialization.Header.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Header build() {
cz.o2.proxima.storage.proto.Serialization.Header result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Header buildPartial() {
cz.o2.proxima.storage.proto.Serialization.Header result = new cz.o2.proxima.storage.proto.Serialization.Header(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.storage.proto.Serialization.Header result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.magic_ = magic_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.version_ = version_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.gzip_ = gzip_;
}
}
@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 cz.o2.proxima.storage.proto.Serialization.Header) {
return mergeFrom((cz.o2.proxima.storage.proto.Serialization.Header)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.storage.proto.Serialization.Header other) {
if (other == cz.o2.proxima.storage.proto.Serialization.Header.getDefaultInstance()) return this;
if (!other.getMagic().isEmpty()) {
magic_ = other.magic_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getGzip() != false) {
setGzip(other.getGzip());
}
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: {
magic_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
version_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
gzip_ = 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 magic_ = "";
/**
* string magic = 1;
* @return The magic.
*/
public java.lang.String getMagic() {
java.lang.Object ref = magic_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
magic_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string magic = 1;
* @return The bytes for magic.
*/
public com.google.protobuf.ByteString
getMagicBytes() {
java.lang.Object ref = magic_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
magic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string magic = 1;
* @param value The magic to set.
* @return This builder for chaining.
*/
public Builder setMagic(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
magic_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string magic = 1;
* @return This builder for chaining.
*/
public Builder clearMagic() {
magic_ = getDefaultInstance().getMagic();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string magic = 1;
* @param value The bytes for magic to set.
* @return This builder for chaining.
*/
public Builder setMagicBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
magic_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int version_ ;
/**
* uint32 version = 2;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
* uint32 version = 2;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 version = 2;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
version_ = 0;
onChanged();
return this;
}
private boolean gzip_ ;
/**
* bool gzip = 3;
* @return The gzip.
*/
@java.lang.Override
public boolean getGzip() {
return gzip_;
}
/**
* bool gzip = 3;
* @param value The gzip to set.
* @return This builder for chaining.
*/
public Builder setGzip(boolean value) {
gzip_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bool gzip = 3;
* @return This builder for chaining.
*/
public Builder clearGzip() {
bitField0_ = (bitField0_ & ~0x00000004);
gzip_ = 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:cz.o2.proxima.storage.proto.Header)
}
// @@protoc_insertion_point(class_scope:cz.o2.proxima.storage.proto.Header)
private static final cz.o2.proxima.storage.proto.Serialization.Header DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.storage.proto.Serialization.Header();
}
public static cz.o2.proxima.storage.proto.Serialization.Header getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Header 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 cz.o2.proxima.storage.proto.Serialization.Header getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ElementOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.o2.proxima.storage.proto.Element)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string attribute = 2;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
* string attribute = 2;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
/**
* uint64 stamp = 3;
* @return The stamp.
*/
long getStamp();
/**
* bytes value = 4;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
* bool delete = 5;
* @return The delete.
*/
boolean getDelete();
/**
* bool deleteWildcard = 6;
* @return The deleteWildcard.
*/
boolean getDeleteWildcard();
/**
* string uuid = 7;
* @return The uuid.
*/
java.lang.String getUuid();
/**
* string uuid = 7;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
}
/**
*
* Single record (StreamElement) serialied
*
*
* Protobuf type {@code cz.o2.proxima.storage.proto.Element}
*/
public static final class Element extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.o2.proxima.storage.proto.Element)
ElementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Element.newBuilder() to construct.
private Element(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Element() {
key_ = "";
attribute_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
uuid_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Element();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Element_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Element_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.Element.class, cz.o2.proxima.storage.proto.Serialization.Element.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRIBUTE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object attribute_ = "";
/**
* string attribute = 2;
* @return The attribute.
*/
@java.lang.Override
public java.lang.String getAttribute() {
java.lang.Object ref = attribute_;
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();
attribute_ = s;
return s;
}
}
/**
* string attribute = 2;
* @return The bytes for attribute.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAttributeBytes() {
java.lang.Object ref = attribute_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attribute_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STAMP_FIELD_NUMBER = 3;
private long stamp_ = 0L;
/**
* uint64 stamp = 3;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
public static final int VALUE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 4;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int DELETE_FIELD_NUMBER = 5;
private boolean delete_ = false;
/**
* bool delete = 5;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
public static final int DELETEWILDCARD_FIELD_NUMBER = 6;
private boolean deleteWildcard_ = false;
/**
* bool deleteWildcard = 6;
* @return The deleteWildcard.
*/
@java.lang.Override
public boolean getDeleteWildcard() {
return deleteWildcard_;
}
public static final int UUID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object uuid_ = "";
/**
* string uuid = 7;
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
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();
uuid_ = s;
return s;
}
}
/**
* string uuid = 7;
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = 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(attribute_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attribute_);
}
if (stamp_ != 0L) {
output.writeUInt64(3, stamp_);
}
if (!value_.isEmpty()) {
output.writeBytes(4, value_);
}
if (delete_ != false) {
output.writeBool(5, delete_);
}
if (deleteWildcard_ != false) {
output.writeBool(6, deleteWildcard_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, uuid_);
}
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(attribute_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attribute_);
}
if (stamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, stamp_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, value_);
}
if (delete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, delete_);
}
if (deleteWildcard_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, deleteWildcard_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, uuid_);
}
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 cz.o2.proxima.storage.proto.Serialization.Element)) {
return super.equals(obj);
}
cz.o2.proxima.storage.proto.Serialization.Element other = (cz.o2.proxima.storage.proto.Serialization.Element) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getAttribute()
.equals(other.getAttribute())) return false;
if (getStamp()
!= other.getStamp()) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (getDelete()
!= other.getDelete()) return false;
if (getDeleteWildcard()
!= other.getDeleteWildcard()) return false;
if (!getUuid()
.equals(other.getUuid())) 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) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
hash = (37 * hash) + STAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStamp());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDelete());
hash = (37 * hash) + DELETEWILDCARD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeleteWildcard());
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Element parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cz.o2.proxima.storage.proto.Serialization.Element prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Single record (StreamElement) serialied
*
*
* Protobuf type {@code cz.o2.proxima.storage.proto.Element}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.o2.proxima.storage.proto.Element)
cz.o2.proxima.storage.proto.Serialization.ElementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Element_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Element_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.Element.class, cz.o2.proxima.storage.proto.Serialization.Element.Builder.class);
}
// Construct using cz.o2.proxima.storage.proto.Serialization.Element.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = "";
attribute_ = "";
stamp_ = 0L;
value_ = com.google.protobuf.ByteString.EMPTY;
delete_ = false;
deleteWildcard_ = false;
uuid_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Element_descriptor;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Element getDefaultInstanceForType() {
return cz.o2.proxima.storage.proto.Serialization.Element.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Element build() {
cz.o2.proxima.storage.proto.Serialization.Element result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Element buildPartial() {
cz.o2.proxima.storage.proto.Serialization.Element result = new cz.o2.proxima.storage.proto.Serialization.Element(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.storage.proto.Serialization.Element result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.attribute_ = attribute_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.stamp_ = stamp_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.delete_ = delete_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deleteWildcard_ = deleteWildcard_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.uuid_ = uuid_;
}
}
@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 cz.o2.proxima.storage.proto.Serialization.Element) {
return mergeFrom((cz.o2.proxima.storage.proto.Serialization.Element)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.storage.proto.Serialization.Element other) {
if (other == cz.o2.proxima.storage.proto.Serialization.Element.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getStamp() != 0L) {
setStamp(other.getStamp());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.getDelete() != false) {
setDelete(other.getDelete());
}
if (other.getDeleteWildcard() != false) {
setDeleteWildcard(other.getDeleteWildcard());
}
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
bitField0_ |= 0x00000040;
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: {
attribute_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
stamp_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
value_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
delete_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
deleteWildcard_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
uuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object attribute_ = "";
/**
* string attribute = 2;
* @return The attribute.
*/
public java.lang.String getAttribute() {
java.lang.Object ref = attribute_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
attribute_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string attribute = 2;
* @return The bytes for attribute.
*/
public com.google.protobuf.ByteString
getAttributeBytes() {
java.lang.Object ref = attribute_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attribute_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string attribute = 2;
* @param value The attribute to set.
* @return This builder for chaining.
*/
public Builder setAttribute(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
attribute_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string attribute = 2;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string attribute = 2;
* @param value The bytes for attribute to set.
* @return This builder for chaining.
*/
public Builder setAttributeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
attribute_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long stamp_ ;
/**
* uint64 stamp = 3;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
/**
* uint64 stamp = 3;
* @param value The stamp to set.
* @return This builder for chaining.
*/
public Builder setStamp(long value) {
stamp_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint64 stamp = 3;
* @return This builder for chaining.
*/
public Builder clearStamp() {
bitField0_ = (bitField0_ & ~0x00000004);
stamp_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes value = 4;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* bytes value = 4;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* bytes value = 4;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000008);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private boolean delete_ ;
/**
* bool delete = 5;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
/**
* bool delete = 5;
* @param value The delete to set.
* @return This builder for chaining.
*/
public Builder setDelete(boolean value) {
delete_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool delete = 5;
* @return This builder for chaining.
*/
public Builder clearDelete() {
bitField0_ = (bitField0_ & ~0x00000010);
delete_ = false;
onChanged();
return this;
}
private boolean deleteWildcard_ ;
/**
* bool deleteWildcard = 6;
* @return The deleteWildcard.
*/
@java.lang.Override
public boolean getDeleteWildcard() {
return deleteWildcard_;
}
/**
* bool deleteWildcard = 6;
* @param value The deleteWildcard to set.
* @return This builder for chaining.
*/
public Builder setDeleteWildcard(boolean value) {
deleteWildcard_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool deleteWildcard = 6;
* @return This builder for chaining.
*/
public Builder clearDeleteWildcard() {
bitField0_ = (bitField0_ & ~0x00000020);
deleteWildcard_ = false;
onChanged();
return this;
}
private java.lang.Object uuid_ = "";
/**
* string uuid = 7;
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uuid = 7;
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uuid = 7;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uuid_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* string uuid = 7;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* string uuid = 7;
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uuid_ = value;
bitField0_ |= 0x00000040;
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:cz.o2.proxima.storage.proto.Element)
}
// @@protoc_insertion_point(class_scope:cz.o2.proxima.storage.proto.Element)
private static final cz.o2.proxima.storage.proto.Serialization.Element DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.storage.proto.Serialization.Element();
}
public static cz.o2.proxima.storage.proto.Serialization.Element getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Element parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Element getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JsonElementOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.o2.proxima.storage.proto.JsonElement)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* string attribute = 2;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
* string attribute = 2;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
/**
* uint64 stamp = 3;
* @return The stamp.
*/
long getStamp();
/**
* string value = 4;
* @return The value.
*/
java.lang.String getValue();
/**
* string value = 4;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* bool delete = 5;
* @return The delete.
*/
boolean getDelete();
/**
* bool deleteWildcard = 6;
* @return The deleteWildcard.
*/
boolean getDeleteWildcard();
/**
* string uuid = 7;
* @return The uuid.
*/
java.lang.String getUuid();
/**
* string uuid = 7;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
}
/**
* Protobuf type {@code cz.o2.proxima.storage.proto.JsonElement}
*/
public static final class JsonElement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.o2.proxima.storage.proto.JsonElement)
JsonElementOrBuilder {
private static final long serialVersionUID = 0L;
// Use JsonElement.newBuilder() to construct.
private JsonElement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JsonElement() {
key_ = "";
attribute_ = "";
value_ = "";
uuid_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JsonElement();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_JsonElement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_JsonElement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.JsonElement.class, cz.o2.proxima.storage.proto.Serialization.JsonElement.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRIBUTE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object attribute_ = "";
/**
* string attribute = 2;
* @return The attribute.
*/
@java.lang.Override
public java.lang.String getAttribute() {
java.lang.Object ref = attribute_;
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();
attribute_ = s;
return s;
}
}
/**
* string attribute = 2;
* @return The bytes for attribute.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAttributeBytes() {
java.lang.Object ref = attribute_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attribute_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STAMP_FIELD_NUMBER = 3;
private long stamp_ = 0L;
/**
* uint64 stamp = 3;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
public static final int VALUE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
* string value = 4;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
* string value = 4;
* @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;
}
}
public static final int DELETE_FIELD_NUMBER = 5;
private boolean delete_ = false;
/**
* bool delete = 5;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
public static final int DELETEWILDCARD_FIELD_NUMBER = 6;
private boolean deleteWildcard_ = false;
/**
* bool deleteWildcard = 6;
* @return The deleteWildcard.
*/
@java.lang.Override
public boolean getDeleteWildcard() {
return deleteWildcard_;
}
public static final int UUID_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object uuid_ = "";
/**
* string uuid = 7;
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
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();
uuid_ = s;
return s;
}
}
/**
* string uuid = 7;
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = 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(attribute_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, attribute_);
}
if (stamp_ != 0L) {
output.writeUInt64(3, stamp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_);
}
if (delete_ != false) {
output.writeBool(5, delete_);
}
if (deleteWildcard_ != false) {
output.writeBool(6, deleteWildcard_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, uuid_);
}
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(attribute_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, attribute_);
}
if (stamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, stamp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_);
}
if (delete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, delete_);
}
if (deleteWildcard_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, deleteWildcard_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, uuid_);
}
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 cz.o2.proxima.storage.proto.Serialization.JsonElement)) {
return super.equals(obj);
}
cz.o2.proxima.storage.proto.Serialization.JsonElement other = (cz.o2.proxima.storage.proto.Serialization.JsonElement) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getAttribute()
.equals(other.getAttribute())) return false;
if (getStamp()
!= other.getStamp()) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (getDelete()
!= other.getDelete()) return false;
if (getDeleteWildcard()
!= other.getDeleteWildcard()) return false;
if (!getUuid()
.equals(other.getUuid())) 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) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
hash = (37 * hash) + STAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStamp());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDelete());
hash = (37 * hash) + DELETEWILDCARD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeleteWildcard());
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement 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 cz.o2.proxima.storage.proto.Serialization.JsonElement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement 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 cz.o2.proxima.storage.proto.Serialization.JsonElement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement 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(cz.o2.proxima.storage.proto.Serialization.JsonElement 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 cz.o2.proxima.storage.proto.JsonElement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.o2.proxima.storage.proto.JsonElement)
cz.o2.proxima.storage.proto.Serialization.JsonElementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_JsonElement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_JsonElement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.JsonElement.class, cz.o2.proxima.storage.proto.Serialization.JsonElement.Builder.class);
}
// Construct using cz.o2.proxima.storage.proto.Serialization.JsonElement.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = "";
attribute_ = "";
stamp_ = 0L;
value_ = "";
delete_ = false;
deleteWildcard_ = false;
uuid_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_JsonElement_descriptor;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.JsonElement getDefaultInstanceForType() {
return cz.o2.proxima.storage.proto.Serialization.JsonElement.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.JsonElement build() {
cz.o2.proxima.storage.proto.Serialization.JsonElement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.JsonElement buildPartial() {
cz.o2.proxima.storage.proto.Serialization.JsonElement result = new cz.o2.proxima.storage.proto.Serialization.JsonElement(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.storage.proto.Serialization.JsonElement result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.attribute_ = attribute_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.stamp_ = stamp_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.delete_ = delete_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.deleteWildcard_ = deleteWildcard_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.uuid_ = uuid_;
}
}
@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 cz.o2.proxima.storage.proto.Serialization.JsonElement) {
return mergeFrom((cz.o2.proxima.storage.proto.Serialization.JsonElement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.storage.proto.Serialization.JsonElement other) {
if (other == cz.o2.proxima.storage.proto.Serialization.JsonElement.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getStamp() != 0L) {
setStamp(other.getStamp());
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getDelete() != false) {
setDelete(other.getDelete());
}
if (other.getDeleteWildcard() != false) {
setDeleteWildcard(other.getDeleteWildcard());
}
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
bitField0_ |= 0x00000040;
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: {
attribute_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
stamp_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
delete_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
deleteWildcard_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
uuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object attribute_ = "";
/**
* string attribute = 2;
* @return The attribute.
*/
public java.lang.String getAttribute() {
java.lang.Object ref = attribute_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
attribute_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string attribute = 2;
* @return The bytes for attribute.
*/
public com.google.protobuf.ByteString
getAttributeBytes() {
java.lang.Object ref = attribute_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attribute_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string attribute = 2;
* @param value The attribute to set.
* @return This builder for chaining.
*/
public Builder setAttribute(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
attribute_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string attribute = 2;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string attribute = 2;
* @param value The bytes for attribute to set.
* @return This builder for chaining.
*/
public Builder setAttributeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
attribute_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long stamp_ ;
/**
* uint64 stamp = 3;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
/**
* uint64 stamp = 3;
* @param value The stamp to set.
* @return This builder for chaining.
*/
public Builder setStamp(long value) {
stamp_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint64 stamp = 3;
* @return This builder for chaining.
*/
public Builder clearStamp() {
bitField0_ = (bitField0_ & ~0x00000004);
stamp_ = 0L;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* string value = 4;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string value = 4;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string value = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
* string value = 4;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string value = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private boolean delete_ ;
/**
* bool delete = 5;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
/**
* bool delete = 5;
* @param value The delete to set.
* @return This builder for chaining.
*/
public Builder setDelete(boolean value) {
delete_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* bool delete = 5;
* @return This builder for chaining.
*/
public Builder clearDelete() {
bitField0_ = (bitField0_ & ~0x00000010);
delete_ = false;
onChanged();
return this;
}
private boolean deleteWildcard_ ;
/**
* bool deleteWildcard = 6;
* @return The deleteWildcard.
*/
@java.lang.Override
public boolean getDeleteWildcard() {
return deleteWildcard_;
}
/**
* bool deleteWildcard = 6;
* @param value The deleteWildcard to set.
* @return This builder for chaining.
*/
public Builder setDeleteWildcard(boolean value) {
deleteWildcard_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* bool deleteWildcard = 6;
* @return This builder for chaining.
*/
public Builder clearDeleteWildcard() {
bitField0_ = (bitField0_ & ~0x00000020);
deleteWildcard_ = false;
onChanged();
return this;
}
private java.lang.Object uuid_ = "";
/**
* string uuid = 7;
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uuid = 7;
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uuid = 7;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
uuid_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* string uuid = 7;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* string uuid = 7;
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
uuid_ = value;
bitField0_ |= 0x00000040;
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:cz.o2.proxima.storage.proto.JsonElement)
}
// @@protoc_insertion_point(class_scope:cz.o2.proxima.storage.proto.JsonElement)
private static final cz.o2.proxima.storage.proto.Serialization.JsonElement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.storage.proto.Serialization.JsonElement();
}
public static cz.o2.proxima.storage.proto.Serialization.JsonElement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JsonElement 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 cz.o2.proxima.storage.proto.Serialization.JsonElement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CellOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.o2.proxima.storage.proto.Cell)
com.google.protobuf.MessageOrBuilder {
/**
* optional bytes value = 1;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional bytes value = 1;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
* optional uint64 seqId = 2;
* @return Whether the seqId field is set.
*/
boolean hasSeqId();
/**
* optional uint64 seqId = 2;
* @return The seqId.
*/
long getSeqId();
}
/**
* Protobuf type {@code cz.o2.proxima.storage.proto.Cell}
*/
public static final class Cell extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.o2.proxima.storage.proto.Cell)
CellOrBuilder {
private static final long serialVersionUID = 0L;
// Use Cell.newBuilder() to construct.
private Cell(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Cell() {
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Cell();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Cell_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Cell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.Cell.class, cz.o2.proxima.storage.proto.Serialization.Cell.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes value = 1;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int SEQID_FIELD_NUMBER = 2;
private long seqId_ = 0L;
/**
* optional uint64 seqId = 2;
* @return Whether the seqId field is set.
*/
@java.lang.Override
public boolean hasSeqId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint64 seqId = 2;
* @return The seqId.
*/
@java.lang.Override
public long getSeqId() {
return seqId_;
}
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.writeBytes(1, value_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(2, seqId_);
}
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
.computeBytesSize(1, value_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, seqId_);
}
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 cz.o2.proxima.storage.proto.Serialization.Cell)) {
return super.equals(obj);
}
cz.o2.proxima.storage.proto.Serialization.Cell other = (cz.o2.proxima.storage.proto.Serialization.Cell) obj;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (hasSeqId() != other.hasSeqId()) return false;
if (hasSeqId()) {
if (getSeqId()
!= other.getSeqId()) 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 (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasSeqId()) {
hash = (37 * hash) + SEQID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSeqId());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell 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 cz.o2.proxima.storage.proto.Serialization.Cell parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell 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 cz.o2.proxima.storage.proto.Serialization.Cell parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.storage.proto.Serialization.Cell 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(cz.o2.proxima.storage.proto.Serialization.Cell 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 cz.o2.proxima.storage.proto.Cell}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.o2.proxima.storage.proto.Cell)
cz.o2.proxima.storage.proto.Serialization.CellOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Cell_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Cell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.storage.proto.Serialization.Cell.class, cz.o2.proxima.storage.proto.Serialization.Cell.Builder.class);
}
// Construct using cz.o2.proxima.storage.proto.Serialization.Cell.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
value_ = com.google.protobuf.ByteString.EMPTY;
seqId_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.storage.proto.Serialization.internal_static_cz_o2_proxima_storage_proto_Cell_descriptor;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Cell getDefaultInstanceForType() {
return cz.o2.proxima.storage.proto.Serialization.Cell.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Cell build() {
cz.o2.proxima.storage.proto.Serialization.Cell result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.storage.proto.Serialization.Cell buildPartial() {
cz.o2.proxima.storage.proto.Serialization.Cell result = new cz.o2.proxima.storage.proto.Serialization.Cell(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.storage.proto.Serialization.Cell result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.seqId_ = seqId_;
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 cz.o2.proxima.storage.proto.Serialization.Cell) {
return mergeFrom((cz.o2.proxima.storage.proto.Serialization.Cell)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.storage.proto.Serialization.Cell other) {
if (other == cz.o2.proxima.storage.proto.Serialization.Cell.getDefaultInstance()) return this;
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasSeqId()) {
setSeqId(other.getSeqId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
value_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
seqId_ = input.readUInt64();
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 com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes value = 1;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* optional bytes value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional bytes value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private long seqId_ ;
/**
* optional uint64 seqId = 2;
* @return Whether the seqId field is set.
*/
@java.lang.Override
public boolean hasSeqId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint64 seqId = 2;
* @return The seqId.
*/
@java.lang.Override
public long getSeqId() {
return seqId_;
}
/**
* optional uint64 seqId = 2;
* @param value The seqId to set.
* @return This builder for chaining.
*/
public Builder setSeqId(long value) {
seqId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional uint64 seqId = 2;
* @return This builder for chaining.
*/
public Builder clearSeqId() {
bitField0_ = (bitField0_ & ~0x00000002);
seqId_ = 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:cz.o2.proxima.storage.proto.Cell)
}
// @@protoc_insertion_point(class_scope:cz.o2.proxima.storage.proto.Cell)
private static final cz.o2.proxima.storage.proto.Serialization.Cell DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.storage.proto.Serialization.Cell();
}
public static cz.o2.proxima.storage.proto.Serialization.Cell getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Cell 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 cz.o2.proxima.storage.proto.Serialization.Cell getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_o2_proxima_storage_proto_Header_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_o2_proxima_storage_proto_Header_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_o2_proxima_storage_proto_Element_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_o2_proxima_storage_proto_Element_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_o2_proxima_storage_proto_JsonElement_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_o2_proxima_storage_proto_JsonElement_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_o2_proxima_storage_proto_Cell_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_o2_proxima_storage_proto_Cell_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\023serialization.proto\022\033cz.o2.proxima.sto" +
"rage.proto\"6\n\006Header\022\r\n\005magic\030\001 \001(\t\022\017\n\007v" +
"ersion\030\002 \001(\r\022\014\n\004gzip\030\003 \001(\010\"}\n\007Element\022\013\n" +
"\003key\030\001 \001(\t\022\021\n\tattribute\030\002 \001(\t\022\r\n\005stamp\030\003" +
" \001(\004\022\r\n\005value\030\004 \001(\014\022\016\n\006delete\030\005 \001(\010\022\026\n\016d" +
"eleteWildcard\030\006 \001(\010\022\014\n\004uuid\030\007 \001(\t\"\201\001\n\013Js" +
"onElement\022\013\n\003key\030\001 \001(\t\022\021\n\tattribute\030\002 \001(" +
"\t\022\r\n\005stamp\030\003 \001(\004\022\r\n\005value\030\004 \001(\t\022\016\n\006delet" +
"e\030\005 \001(\010\022\026\n\016deleteWildcard\030\006 \001(\010\022\014\n\004uuid\030" +
"\007 \001(\t\"B\n\004Cell\022\022\n\005value\030\001 \001(\014H\000\210\001\001\022\022\n\005seq" +
"Id\030\002 \001(\004H\001\210\001\001B\010\n\006_valueB\010\n\006_seqIdb\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_cz_o2_proxima_storage_proto_Header_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_o2_proxima_storage_proto_Header_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_o2_proxima_storage_proto_Header_descriptor,
new java.lang.String[] { "Magic", "Version", "Gzip", });
internal_static_cz_o2_proxima_storage_proto_Element_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cz_o2_proxima_storage_proto_Element_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_o2_proxima_storage_proto_Element_descriptor,
new java.lang.String[] { "Key", "Attribute", "Stamp", "Value", "Delete", "DeleteWildcard", "Uuid", });
internal_static_cz_o2_proxima_storage_proto_JsonElement_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cz_o2_proxima_storage_proto_JsonElement_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_o2_proxima_storage_proto_JsonElement_descriptor,
new java.lang.String[] { "Key", "Attribute", "Stamp", "Value", "Delete", "DeleteWildcard", "Uuid", });
internal_static_cz_o2_proxima_storage_proto_Cell_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cz_o2_proxima_storage_proto_Cell_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_o2_proxima_storage_proto_Cell_descriptor,
new java.lang.String[] { "Value", "SeqId", "Value", "SeqId", });
}
// @@protoc_insertion_point(outer_class_scope)
}
| | | | © 2015 - 2025 Weber Informatics LLC | Privacy Policy