
cz.o2.proxima.io.pubsub.proto.PubSub Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: PubSub.proto
package cz.o2.proxima.io.pubsub.proto;
public final class PubSub {
private PubSub() {}
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 KeyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:cz.o2.proxima.io.pubsub.proto.KeyValue)
com.google.protobuf.MessageOrBuilder {
/**
*
** Key of entity.
*
*
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
*
** Key of entity.
*
*
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
** Attribute of entity.
*
*
* string attribute = 2;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
*
** Attribute of entity.
*
*
* string attribute = 2;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
/**
*
** Value (if not delete)
*
*
* bytes value = 3;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
*
** Is this attribute delete?
*
*
* bool delete = 4;
* @return The delete.
*/
boolean getDelete();
/**
*
** Is this wildcard attribute delete?
*
*
* bool deleteWildcard = 5;
* @return The deleteWildcard.
*/
boolean getDeleteWildcard();
/**
*
** Timestamp of the write.
*
*
* uint64 stamp = 6;
* @return The stamp.
*/
long getStamp();
}
/**
*
**
* KeyValue sent to the PubSub by ingest.
*
*
* Protobuf type {@code cz.o2.proxima.io.pubsub.proto.KeyValue}
*/
public static final class KeyValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.o2.proxima.io.pubsub.proto.KeyValue)
KeyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyValue.newBuilder() to construct.
private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyValue() {
key_ = "";
attribute_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KeyValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
attribute_ = s;
break;
}
case 26: {
value_ = input.readBytes();
break;
}
case 32: {
delete_ = input.readBool();
break;
}
case 40: {
deleteWildcard_ = input.readBool();
break;
}
case 48: {
stamp_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.io.pubsub.proto.PubSub.internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.io.pubsub.proto.PubSub.internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.class, cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
*
** Key of entity.
*
*
* string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
}
}
/**
*
** Key of entity.
*
*
* 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;
private volatile java.lang.Object attribute_;
/**
*
** Attribute of entity.
*
*
* 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;
}
}
/**
*
** Attribute of entity.
*
*
* 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 VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString value_;
/**
*
** Value (if not delete)
*
*
* bytes value = 3;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int DELETE_FIELD_NUMBER = 4;
private boolean delete_;
/**
*
** Is this attribute delete?
*
*
* bool delete = 4;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
public static final int DELETEWILDCARD_FIELD_NUMBER = 5;
private boolean deleteWildcard_;
/**
*
** Is this wildcard attribute delete?
*
*
* bool deleteWildcard = 5;
* @return The deleteWildcard.
*/
@java.lang.Override
public boolean getDeleteWildcard() {
return deleteWildcard_;
}
public static final int STAMP_FIELD_NUMBER = 6;
private long stamp_;
/**
*
** Timestamp of the write.
*
*
* uint64 stamp = 6;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
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 (!value_.isEmpty()) {
output.writeBytes(3, value_);
}
if (delete_ != false) {
output.writeBool(4, delete_);
}
if (deleteWildcard_ != false) {
output.writeBool(5, deleteWildcard_);
}
if (stamp_ != 0L) {
output.writeUInt64(6, stamp_);
}
unknownFields.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 (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, value_);
}
if (delete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, delete_);
}
if (deleteWildcard_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, deleteWildcard_);
}
if (stamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, stamp_);
}
size += unknownFields.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.io.pubsub.proto.PubSub.KeyValue)) {
return super.equals(obj);
}
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue other = (cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getAttribute()
.equals(other.getAttribute())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (getDelete()
!= other.getDelete()) return false;
if (getDeleteWildcard()
!= other.getDeleteWildcard()) return false;
if (getStamp()
!= other.getStamp()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + 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) + STAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue 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.io.pubsub.proto.PubSub.KeyValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue 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.io.pubsub.proto.PubSub.KeyValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue 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.io.pubsub.proto.PubSub.KeyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue 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.io.pubsub.proto.PubSub.KeyValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue 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.io.pubsub.proto.PubSub.KeyValue 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;
}
/**
*
**
* KeyValue sent to the PubSub by ingest.
*
*
* Protobuf type {@code cz.o2.proxima.io.pubsub.proto.KeyValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.o2.proxima.io.pubsub.proto.KeyValue)
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.io.pubsub.proto.PubSub.internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.io.pubsub.proto.PubSub.internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.class, cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.Builder.class);
}
// Construct using cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
attribute_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
delete_ = false;
deleteWildcard_ = false;
stamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.io.pubsub.proto.PubSub.internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_descriptor;
}
@java.lang.Override
public cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue getDefaultInstanceForType() {
return cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue build() {
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue buildPartial() {
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue result = new cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue(this);
result.key_ = key_;
result.attribute_ = attribute_;
result.value_ = value_;
result.delete_ = delete_;
result.deleteWildcard_ = deleteWildcard_;
result.stamp_ = stamp_;
onBuilt();
return result;
}
@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.io.pubsub.proto.PubSub.KeyValue) {
return mergeFrom((cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue other) {
if (other == cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
onChanged();
}
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.getStamp() != 0L) {
setStamp(other.getStamp());
}
this.mergeUnknownFields(other.unknownFields);
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 {
cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
*
** Key of entity.
*
*
* string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Key of entity.
*
*
* string key = 1;
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Key of entity.
*
*
* 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;
onChanged();
return this;
}
/**
*
** Key of entity.
*
*
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
** Key of entity.
*
*
* 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;
onChanged();
return this;
}
private java.lang.Object attribute_ = "";
/**
*
** Attribute of entity.
*
*
* 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;
}
}
/**
*
** Attribute of entity.
*
*
* 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;
}
}
/**
*
** Attribute of entity.
*
*
* 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;
onChanged();
return this;
}
/**
*
** Attribute of entity.
*
*
* string attribute = 2;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
onChanged();
return this;
}
/**
*
** Attribute of entity.
*
*
* 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;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
** Value (if not delete)
*
*
* bytes value = 3;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
** Value (if not delete)
*
*
* bytes value = 3;
* @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;
onChanged();
return this;
}
/**
*
** Value (if not delete)
*
*
* bytes value = 3;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private boolean delete_ ;
/**
*
** Is this attribute delete?
*
*
* bool delete = 4;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
/**
*
** Is this attribute delete?
*
*
* bool delete = 4;
* @param value The delete to set.
* @return This builder for chaining.
*/
public Builder setDelete(boolean value) {
delete_ = value;
onChanged();
return this;
}
/**
*
** Is this attribute delete?
*
*
* bool delete = 4;
* @return This builder for chaining.
*/
public Builder clearDelete() {
delete_ = false;
onChanged();
return this;
}
private boolean deleteWildcard_ ;
/**
*
** Is this wildcard attribute delete?
*
*
* bool deleteWildcard = 5;
* @return The deleteWildcard.
*/
@java.lang.Override
public boolean getDeleteWildcard() {
return deleteWildcard_;
}
/**
*
** Is this wildcard attribute delete?
*
*
* bool deleteWildcard = 5;
* @param value The deleteWildcard to set.
* @return This builder for chaining.
*/
public Builder setDeleteWildcard(boolean value) {
deleteWildcard_ = value;
onChanged();
return this;
}
/**
*
** Is this wildcard attribute delete?
*
*
* bool deleteWildcard = 5;
* @return This builder for chaining.
*/
public Builder clearDeleteWildcard() {
deleteWildcard_ = false;
onChanged();
return this;
}
private long stamp_ ;
/**
*
** Timestamp of the write.
*
*
* uint64 stamp = 6;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
/**
*
** Timestamp of the write.
*
*
* uint64 stamp = 6;
* @param value The stamp to set.
* @return This builder for chaining.
*/
public Builder setStamp(long value) {
stamp_ = value;
onChanged();
return this;
}
/**
*
** Timestamp of the write.
*
*
* uint64 stamp = 6;
* @return This builder for chaining.
*/
public Builder clearStamp() {
stamp_ = 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.io.pubsub.proto.KeyValue)
}
// @@protoc_insertion_point(class_scope:cz.o2.proxima.io.pubsub.proto.KeyValue)
private static final cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue();
}
public static cz.o2.proxima.io.pubsub.proto.PubSub.KeyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KeyValue(input, extensionRegistry);
}
};
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.io.pubsub.proto.PubSub.KeyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_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\014PubSub.proto\022\035cz.o2.proxima.io.pubsub." +
"proto\"p\n\010KeyValue\022\013\n\003key\030\001 \001(\t\022\021\n\tattrib" +
"ute\030\002 \001(\t\022\r\n\005value\030\003 \001(\014\022\016\n\006delete\030\004 \001(\010" +
"\022\026\n\016deleteWildcard\030\005 \001(\010\022\r\n\005stamp\030\006 \001(\004b" +
"\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cz_o2_proxima_io_pubsub_proto_KeyValue_descriptor,
new java.lang.String[] { "Key", "Attribute", "Value", "Delete", "DeleteWildcard", "Stamp", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy