
cz.o2.proxima.proto.service.Rpc Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rpc.proto
package cz.o2.proxima.proto.service;
public final class Rpc {
private Rpc() {}
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 IngestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ingest)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @return The uuid.
*/
java.lang.String getUuid();
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return The entity.
*/
java.lang.String getEntity();
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return The bytes for entity.
*/
com.google.protobuf.ByteString
getEntityBytes();
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
/**
*
** Key of the entity.
*
*
* string key = 4;
* @return The key.
*/
java.lang.String getKey();
/**
*
** Key of the entity.
*
*
* string key = 4;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
** Value to update.
*
*
* bytes value = 5;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
/**
*
** Timestamp of the ingest. If not provided, it will be replaced with actual ingest timestamp.
*
*
* uint64 stamp = 7;
* @return The stamp.
*/
long getStamp();
/**
*
**
* Whether to delete the attribute. You must explicitly set this
* if you want to delete an attribute.
*
*
* bool delete = 6;
* @return The delete.
*/
boolean getDelete();
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
*
** Ingest of a attribute update (or delete)
*
*
* Protobuf type {@code Ingest}
*/
public static final class Ingest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ingest)
IngestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Ingest.newBuilder() to construct.
private Ingest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Ingest() {
uuid_ = "";
entity_ = "";
attribute_ = "";
key_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Ingest();
}
@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.proto.service.Rpc.internal_static_Ingest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Ingest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.Ingest.class, cz.o2.proxima.proto.service.Rpc.Ingest.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object uuid_ = "";
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @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;
}
}
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @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;
}
}
public static final int ENTITY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object entity_ = "";
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return The entity.
*/
@java.lang.Override
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
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();
entity_ = s;
return s;
}
}
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return The bytes for entity.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRIBUTE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object attribute_ = "";
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @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 KEY_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
*
** Key of the entity.
*
*
* string key = 4;
* @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 the entity.
*
*
* string key = 4;
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
** Value to update.
*
*
* bytes value = 5;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
public static final int STAMP_FIELD_NUMBER = 7;
private long stamp_ = 0L;
/**
*
** Timestamp of the ingest. If not provided, it will be replaced with actual ingest timestamp.
*
*
* uint64 stamp = 7;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
public static final int DELETE_FIELD_NUMBER = 6;
private boolean delete_ = false;
/**
*
**
* Whether to delete the attribute. You must explicitly set this
* if you want to delete an attribute.
*
*
* bool delete = 6;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
public static final int TRANSACTIONID_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionId_ = "";
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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(uuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, attribute_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, key_);
}
if (!value_.isEmpty()) {
output.writeBytes(5, value_);
}
if (delete_ != false) {
output.writeBool(6, delete_);
}
if (stamp_ != 0L) {
output.writeUInt64(7, stamp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, transactionId_);
}
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(uuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, attribute_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, key_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, value_);
}
if (delete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, delete_);
}
if (stamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, stamp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, transactionId_);
}
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.proto.service.Rpc.Ingest)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.Ingest other = (cz.o2.proxima.proto.service.Rpc.Ingest) obj;
if (!getUuid()
.equals(other.getUuid())) return false;
if (!getEntity()
.equals(other.getEntity())) return false;
if (!getAttribute()
.equals(other.getAttribute())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (getStamp()
!= other.getStamp()) return false;
if (getDelete()
!= other.getDelete()) return false;
if (!getTransactionId()
.equals(other.getTransactionId())) 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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + STAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStamp());
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDelete());
hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.Ingest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest 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.proto.service.Rpc.Ingest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest 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.proto.service.Rpc.Ingest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest 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.proto.service.Rpc.Ingest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest 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.proto.service.Rpc.Ingest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.Ingest 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.proto.service.Rpc.Ingest 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;
}
/**
*
** Ingest of a attribute update (or delete)
*
*
* Protobuf type {@code Ingest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ingest)
cz.o2.proxima.proto.service.Rpc.IngestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Ingest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Ingest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.Ingest.class, cz.o2.proxima.proto.service.Rpc.Ingest.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.Ingest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
uuid_ = "";
entity_ = "";
attribute_ = "";
key_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
stamp_ = 0L;
delete_ = false;
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Ingest_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Ingest getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.Ingest.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Ingest build() {
cz.o2.proxima.proto.service.Rpc.Ingest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Ingest buildPartial() {
cz.o2.proxima.proto.service.Rpc.Ingest result = new cz.o2.proxima.proto.service.Rpc.Ingest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.Ingest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uuid_ = uuid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.entity_ = entity_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.attribute_ = attribute_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.stamp_ = stamp_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.delete_ = delete_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.proto.service.Rpc.Ingest) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.Ingest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.Ingest other) {
if (other == cz.o2.proxima.proto.service.Rpc.Ingest.getDefaultInstance()) return this;
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEntity().isEmpty()) {
entity_ = other.entity_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
if (other.getStamp() != 0L) {
setStamp(other.getStamp());
}
if (other.getDelete() != false) {
setDelete(other.getDelete());
}
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000080;
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: {
uuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
entity_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
attribute_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
value_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
delete_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 48
case 56: {
stamp_ = input.readUInt64();
bitField0_ |= 0x00000020;
break;
} // case 56
case 66: {
transactionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
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 uuid_ = "";
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @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;
}
}
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @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;
}
}
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
**
* UUID of the ingest. This UUID is returned in status to match
* the request with the response
*
*
* string uuid = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object entity_ = "";
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return The entity.
*/
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return The bytes for entity.
*/
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Name of the entity
*
*
* string entity = 2;
* @param value The entity to set.
* @return This builder for chaining.
*/
public Builder setEntity(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
entity_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** Name of the entity
*
*
* string entity = 2;
* @return This builder for chaining.
*/
public Builder clearEntity() {
entity_ = getDefaultInstance().getEntity();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
** Name of the entity
*
*
* string entity = 2;
* @param value The bytes for entity to set.
* @return This builder for chaining.
*/
public Builder setEntityBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
entity_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object attribute_ = "";
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
** Name of the attribute.
* Might be a wildcard specified (e.g. "prefix.*" if `delete` is true, meaning to delete the whole prefix.
*
*
* string attribute = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
** Key of the entity.
*
*
* string key = 4;
* @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 the entity.
*
*
* string key = 4;
* @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 the entity.
*
*
* string key = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
** Key of the entity.
*
*
* string key = 4;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
** Key of the entity.
*
*
* string key = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
** Value to update.
*
*
* bytes value = 5;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
** Value to update.
*
*
* bytes value = 5;
* @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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
** Value to update.
*
*
* bytes value = 5;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000010);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
private long stamp_ ;
/**
*
** Timestamp of the ingest. If not provided, it will be replaced with actual ingest timestamp.
*
*
* uint64 stamp = 7;
* @return The stamp.
*/
@java.lang.Override
public long getStamp() {
return stamp_;
}
/**
*
** Timestamp of the ingest. If not provided, it will be replaced with actual ingest timestamp.
*
*
* uint64 stamp = 7;
* @param value The stamp to set.
* @return This builder for chaining.
*/
public Builder setStamp(long value) {
stamp_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
** Timestamp of the ingest. If not provided, it will be replaced with actual ingest timestamp.
*
*
* uint64 stamp = 7;
* @return This builder for chaining.
*/
public Builder clearStamp() {
bitField0_ = (bitField0_ & ~0x00000020);
stamp_ = 0L;
onChanged();
return this;
}
private boolean delete_ ;
/**
*
**
* Whether to delete the attribute. You must explicitly set this
* if you want to delete an attribute.
*
*
* bool delete = 6;
* @return The delete.
*/
@java.lang.Override
public boolean getDelete() {
return delete_;
}
/**
*
**
* Whether to delete the attribute. You must explicitly set this
* if you want to delete an attribute.
*
*
* bool delete = 6;
* @param value The delete to set.
* @return This builder for chaining.
*/
public Builder setDelete(boolean value) {
delete_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* Whether to delete the attribute. You must explicitly set this
* if you want to delete an attribute.
*
*
* bool delete = 6;
* @return This builder for chaining.
*/
public Builder clearDelete() {
bitField0_ = (bitField0_ & ~0x00000040);
delete_ = false;
onChanged();
return this;
}
private java.lang.Object transactionId_ = "";
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionId_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
**
* Optional transaction ID associated with the ingest.
*
*
* string transactionId = 8;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionId_ = value;
bitField0_ |= 0x00000080;
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:Ingest)
}
// @@protoc_insertion_point(class_scope:Ingest)
private static final cz.o2.proxima.proto.service.Rpc.Ingest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.Ingest();
}
public static cz.o2.proxima.proto.service.Rpc.Ingest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Ingest 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.proto.service.Rpc.Ingest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:Status)
com.google.protobuf.MessageOrBuilder {
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @return The uuid.
*/
java.lang.String getUuid();
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
/**
*
** Status code:
* 200 - OK - the request was processed and is ingested
* 400 - Bad request - the request was missing some key parts
* 404 - Not found - the entity or attribute not found in the settings
* 412 - Not acceptable - the message has unknown format (unable to validate the scheme)
* 502 - Bad gateway - cannot connect to the target storage
* 504 - Gateway timeout - the request timeouted
*
*
* uint32 status = 2;
* @return The status.
*/
int getStatus();
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return The statusMessage.
*/
java.lang.String getStatusMessage();
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return The bytes for statusMessage.
*/
com.google.protobuf.ByteString
getStatusMessageBytes();
}
/**
*
** Response to a message ingest
*
*
* Protobuf type {@code Status}
*/
public static final class Status extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Status)
StatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use Status.newBuilder() to construct.
private Status(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Status() {
uuid_ = "";
statusMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Status();
}
@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.proto.service.Rpc.internal_static_Status_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Status_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.Status.class, cz.o2.proxima.proto.service.Rpc.Status.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object uuid_ = "";
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @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;
}
}
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @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;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_ = 0;
/**
*
** Status code:
* 200 - OK - the request was processed and is ingested
* 400 - Bad request - the request was missing some key parts
* 404 - Not found - the entity or attribute not found in the settings
* 412 - Not acceptable - the message has unknown format (unable to validate the scheme)
* 502 - Bad gateway - cannot connect to the target storage
* 504 - Gateway timeout - the request timeouted
*
*
* uint32 status = 2;
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
public static final int STATUSMESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object statusMessage_ = "";
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return The statusMessage.
*/
@java.lang.Override
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
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();
statusMessage_ = s;
return s;
}
}
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return The bytes for statusMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = 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(uuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);
}
if (status_ != 0) {
output.writeUInt32(2, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, statusMessage_);
}
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(uuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_);
}
if (status_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, statusMessage_);
}
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.proto.service.Rpc.Status)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.Status other = (cz.o2.proxima.proto.service.Rpc.Status) obj;
if (!getUuid()
.equals(other.getUuid())) return false;
if (getStatus()
!= other.getStatus()) return false;
if (!getStatusMessage()
.equals(other.getStatusMessage())) 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) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus();
hash = (37 * hash) + STATUSMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusMessage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.Status parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.Status 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.proto.service.Rpc.Status parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.Status 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.proto.service.Rpc.Status parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.Status parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.Status parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.Status 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.proto.service.Rpc.Status parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.Status 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.proto.service.Rpc.Status parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.Status 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.proto.service.Rpc.Status 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;
}
/**
*
** Response to a message ingest
*
*
* Protobuf type {@code Status}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Status)
cz.o2.proxima.proto.service.Rpc.StatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Status_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Status_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.Status.class, cz.o2.proxima.proto.service.Rpc.Status.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.Status.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
uuid_ = "";
status_ = 0;
statusMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_Status_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Status getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.Status.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Status build() {
cz.o2.proxima.proto.service.Rpc.Status result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Status buildPartial() {
cz.o2.proxima.proto.service.Rpc.Status result = new cz.o2.proxima.proto.service.Rpc.Status(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.Status result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.uuid_ = uuid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.statusMessage_ = statusMessage_;
}
}
@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.proto.service.Rpc.Status) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.Status)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.Status other) {
if (other == cz.o2.proxima.proto.service.Rpc.Status.getDefaultInstance()) return this;
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getStatus() != 0) {
setStatus(other.getStatus());
}
if (!other.getStatusMessage().isEmpty()) {
statusMessage_ = other.statusMessage_;
bitField0_ |= 0x00000004;
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: {
uuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
status_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
statusMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object uuid_ = "";
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @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;
}
}
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @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;
}
}
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** The UUID of the original ingest request
*
*
* string uuid = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
private int status_ ;
/**
*
** Status code:
* 200 - OK - the request was processed and is ingested
* 400 - Bad request - the request was missing some key parts
* 404 - Not found - the entity or attribute not found in the settings
* 412 - Not acceptable - the message has unknown format (unable to validate the scheme)
* 502 - Bad gateway - cannot connect to the target storage
* 504 - Gateway timeout - the request timeouted
*
*
* uint32 status = 2;
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
/**
*
** Status code:
* 200 - OK - the request was processed and is ingested
* 400 - Bad request - the request was missing some key parts
* 404 - Not found - the entity or attribute not found in the settings
* 412 - Not acceptable - the message has unknown format (unable to validate the scheme)
* 502 - Bad gateway - cannot connect to the target storage
* 504 - Gateway timeout - the request timeouted
*
*
* uint32 status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(int value) {
status_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** Status code:
* 200 - OK - the request was processed and is ingested
* 400 - Bad request - the request was missing some key parts
* 404 - Not found - the entity or attribute not found in the settings
* 412 - Not acceptable - the message has unknown format (unable to validate the scheme)
* 502 - Bad gateway - cannot connect to the target storage
* 504 - Gateway timeout - the request timeouted
*
*
* uint32 status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object statusMessage_ = "";
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return The statusMessage.
*/
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return The bytes for statusMessage.
*/
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @param value The statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
statusMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @return This builder for chaining.
*/
public Builder clearStatusMessage() {
statusMessage_ = getDefaultInstance().getStatusMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* Textual information for the event. Might be missing for 200 OK.
* Contains error message if any error occurs
*
*
* string statusMessage = 3;
* @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
statusMessage_ = value;
bitField0_ |= 0x00000004;
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:Status)
}
// @@protoc_insertion_point(class_scope:Status)
private static final cz.o2.proxima.proto.service.Rpc.Status DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.Status();
}
public static cz.o2.proxima.proto.service.Rpc.Status getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Status 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.proto.service.Rpc.Status getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngestBulkOrBuilder extends
// @@protoc_insertion_point(interface_extends:IngestBulk)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Ingest ingest = 1;
*/
java.util.List
getIngestList();
/**
* repeated .Ingest ingest = 1;
*/
cz.o2.proxima.proto.service.Rpc.Ingest getIngest(int index);
/**
* repeated .Ingest ingest = 1;
*/
int getIngestCount();
/**
* repeated .Ingest ingest = 1;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.IngestOrBuilder>
getIngestOrBuilderList();
/**
* repeated .Ingest ingest = 1;
*/
cz.o2.proxima.proto.service.Rpc.IngestOrBuilder getIngestOrBuilder(
int index);
}
/**
*
** Bulk of ingest requests.
*
*
* Protobuf type {@code IngestBulk}
*/
public static final class IngestBulk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:IngestBulk)
IngestBulkOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngestBulk.newBuilder() to construct.
private IngestBulk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngestBulk() {
ingest_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IngestBulk();
}
@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.proto.service.Rpc.internal_static_IngestBulk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_IngestBulk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.IngestBulk.class, cz.o2.proxima.proto.service.Rpc.IngestBulk.Builder.class);
}
public static final int INGEST_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List ingest_;
/**
* repeated .Ingest ingest = 1;
*/
@java.lang.Override
public java.util.List getIngestList() {
return ingest_;
}
/**
* repeated .Ingest ingest = 1;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.IngestOrBuilder>
getIngestOrBuilderList() {
return ingest_;
}
/**
* repeated .Ingest ingest = 1;
*/
@java.lang.Override
public int getIngestCount() {
return ingest_.size();
}
/**
* repeated .Ingest ingest = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Ingest getIngest(int index) {
return ingest_.get(index);
}
/**
* repeated .Ingest ingest = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.IngestOrBuilder getIngestOrBuilder(
int index) {
return ingest_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < ingest_.size(); i++) {
output.writeMessage(1, ingest_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ingest_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, ingest_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.o2.proxima.proto.service.Rpc.IngestBulk)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.IngestBulk other = (cz.o2.proxima.proto.service.Rpc.IngestBulk) obj;
if (!getIngestList()
.equals(other.getIngestList())) 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 (getIngestCount() > 0) {
hash = (37 * hash) + INGEST_FIELD_NUMBER;
hash = (53 * hash) + getIngestList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk 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.proto.service.Rpc.IngestBulk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk 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.proto.service.Rpc.IngestBulk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk 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.proto.service.Rpc.IngestBulk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk 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.proto.service.Rpc.IngestBulk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk 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.proto.service.Rpc.IngestBulk 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;
}
/**
*
** Bulk of ingest requests.
*
*
* Protobuf type {@code IngestBulk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:IngestBulk)
cz.o2.proxima.proto.service.Rpc.IngestBulkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_IngestBulk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_IngestBulk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.IngestBulk.class, cz.o2.proxima.proto.service.Rpc.IngestBulk.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.IngestBulk.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (ingestBuilder_ == null) {
ingest_ = java.util.Collections.emptyList();
} else {
ingest_ = null;
ingestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_IngestBulk_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.IngestBulk getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.IngestBulk.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.IngestBulk build() {
cz.o2.proxima.proto.service.Rpc.IngestBulk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.IngestBulk buildPartial() {
cz.o2.proxima.proto.service.Rpc.IngestBulk result = new cz.o2.proxima.proto.service.Rpc.IngestBulk(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cz.o2.proxima.proto.service.Rpc.IngestBulk result) {
if (ingestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ingest_ = java.util.Collections.unmodifiableList(ingest_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ingest_ = ingest_;
} else {
result.ingest_ = ingestBuilder_.build();
}
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.IngestBulk result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.o2.proxima.proto.service.Rpc.IngestBulk) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.IngestBulk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.IngestBulk other) {
if (other == cz.o2.proxima.proto.service.Rpc.IngestBulk.getDefaultInstance()) return this;
if (ingestBuilder_ == null) {
if (!other.ingest_.isEmpty()) {
if (ingest_.isEmpty()) {
ingest_ = other.ingest_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIngestIsMutable();
ingest_.addAll(other.ingest_);
}
onChanged();
}
} else {
if (!other.ingest_.isEmpty()) {
if (ingestBuilder_.isEmpty()) {
ingestBuilder_.dispose();
ingestBuilder_ = null;
ingest_ = other.ingest_;
bitField0_ = (bitField0_ & ~0x00000001);
ingestBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIngestFieldBuilder() : null;
} else {
ingestBuilder_.addAllMessages(other.ingest_);
}
}
}
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: {
cz.o2.proxima.proto.service.Rpc.Ingest m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.Ingest.parser(),
extensionRegistry);
if (ingestBuilder_ == null) {
ensureIngestIsMutable();
ingest_.add(m);
} else {
ingestBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List ingest_ =
java.util.Collections.emptyList();
private void ensureIngestIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
ingest_ = new java.util.ArrayList(ingest_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.Ingest, cz.o2.proxima.proto.service.Rpc.Ingest.Builder, cz.o2.proxima.proto.service.Rpc.IngestOrBuilder> ingestBuilder_;
/**
* repeated .Ingest ingest = 1;
*/
public java.util.List getIngestList() {
if (ingestBuilder_ == null) {
return java.util.Collections.unmodifiableList(ingest_);
} else {
return ingestBuilder_.getMessageList();
}
}
/**
* repeated .Ingest ingest = 1;
*/
public int getIngestCount() {
if (ingestBuilder_ == null) {
return ingest_.size();
} else {
return ingestBuilder_.getCount();
}
}
/**
* repeated .Ingest ingest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Ingest getIngest(int index) {
if (ingestBuilder_ == null) {
return ingest_.get(index);
} else {
return ingestBuilder_.getMessage(index);
}
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder setIngest(
int index, cz.o2.proxima.proto.service.Rpc.Ingest value) {
if (ingestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIngestIsMutable();
ingest_.set(index, value);
onChanged();
} else {
ingestBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder setIngest(
int index, cz.o2.proxima.proto.service.Rpc.Ingest.Builder builderForValue) {
if (ingestBuilder_ == null) {
ensureIngestIsMutable();
ingest_.set(index, builderForValue.build());
onChanged();
} else {
ingestBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder addIngest(cz.o2.proxima.proto.service.Rpc.Ingest value) {
if (ingestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIngestIsMutable();
ingest_.add(value);
onChanged();
} else {
ingestBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder addIngest(
int index, cz.o2.proxima.proto.service.Rpc.Ingest value) {
if (ingestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIngestIsMutable();
ingest_.add(index, value);
onChanged();
} else {
ingestBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder addIngest(
cz.o2.proxima.proto.service.Rpc.Ingest.Builder builderForValue) {
if (ingestBuilder_ == null) {
ensureIngestIsMutable();
ingest_.add(builderForValue.build());
onChanged();
} else {
ingestBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder addIngest(
int index, cz.o2.proxima.proto.service.Rpc.Ingest.Builder builderForValue) {
if (ingestBuilder_ == null) {
ensureIngestIsMutable();
ingest_.add(index, builderForValue.build());
onChanged();
} else {
ingestBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder addAllIngest(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.Ingest> values) {
if (ingestBuilder_ == null) {
ensureIngestIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ingest_);
onChanged();
} else {
ingestBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder clearIngest() {
if (ingestBuilder_ == null) {
ingest_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
ingestBuilder_.clear();
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public Builder removeIngest(int index) {
if (ingestBuilder_ == null) {
ensureIngestIsMutable();
ingest_.remove(index);
onChanged();
} else {
ingestBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ingest ingest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Ingest.Builder getIngestBuilder(
int index) {
return getIngestFieldBuilder().getBuilder(index);
}
/**
* repeated .Ingest ingest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.IngestOrBuilder getIngestOrBuilder(
int index) {
if (ingestBuilder_ == null) {
return ingest_.get(index); } else {
return ingestBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ingest ingest = 1;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.IngestOrBuilder>
getIngestOrBuilderList() {
if (ingestBuilder_ != null) {
return ingestBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ingest_);
}
}
/**
* repeated .Ingest ingest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Ingest.Builder addIngestBuilder() {
return getIngestFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.Ingest.getDefaultInstance());
}
/**
* repeated .Ingest ingest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Ingest.Builder addIngestBuilder(
int index) {
return getIngestFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.Ingest.getDefaultInstance());
}
/**
* repeated .Ingest ingest = 1;
*/
public java.util.List
getIngestBuilderList() {
return getIngestFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.Ingest, cz.o2.proxima.proto.service.Rpc.Ingest.Builder, cz.o2.proxima.proto.service.Rpc.IngestOrBuilder>
getIngestFieldBuilder() {
if (ingestBuilder_ == null) {
ingestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.Ingest, cz.o2.proxima.proto.service.Rpc.Ingest.Builder, cz.o2.proxima.proto.service.Rpc.IngestOrBuilder>(
ingest_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
ingest_ = null;
}
return ingestBuilder_;
}
@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:IngestBulk)
}
// @@protoc_insertion_point(class_scope:IngestBulk)
private static final cz.o2.proxima.proto.service.Rpc.IngestBulk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.IngestBulk();
}
public static cz.o2.proxima.proto.service.Rpc.IngestBulk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngestBulk 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.proto.service.Rpc.IngestBulk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatusBulkOrBuilder extends
// @@protoc_insertion_point(interface_extends:StatusBulk)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Status status = 1;
*/
java.util.List
getStatusList();
/**
* repeated .Status status = 1;
*/
cz.o2.proxima.proto.service.Rpc.Status getStatus(int index);
/**
* repeated .Status status = 1;
*/
int getStatusCount();
/**
* repeated .Status status = 1;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.StatusOrBuilder>
getStatusOrBuilderList();
/**
* repeated .Status status = 1;
*/
cz.o2.proxima.proto.service.Rpc.StatusOrBuilder getStatusOrBuilder(
int index);
}
/**
*
**
* Bulk of status responses for the client.
* The server is free to buffer the responses and send them by single
* ack message to lower the network pressure.
*
*
* Protobuf type {@code StatusBulk}
*/
public static final class StatusBulk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StatusBulk)
StatusBulkOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatusBulk.newBuilder() to construct.
private StatusBulk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatusBulk() {
status_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatusBulk();
}
@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.proto.service.Rpc.internal_static_StatusBulk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_StatusBulk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.StatusBulk.class, cz.o2.proxima.proto.service.Rpc.StatusBulk.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List status_;
/**
* repeated .Status status = 1;
*/
@java.lang.Override
public java.util.List getStatusList() {
return status_;
}
/**
* repeated .Status status = 1;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.StatusOrBuilder>
getStatusOrBuilderList() {
return status_;
}
/**
* repeated .Status status = 1;
*/
@java.lang.Override
public int getStatusCount() {
return status_.size();
}
/**
* repeated .Status status = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.Status getStatus(int index) {
return status_.get(index);
}
/**
* repeated .Status status = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.StatusOrBuilder getStatusOrBuilder(
int index) {
return status_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < status_.size(); i++) {
output.writeMessage(1, status_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < status_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, status_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.o2.proxima.proto.service.Rpc.StatusBulk)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.StatusBulk other = (cz.o2.proxima.proto.service.Rpc.StatusBulk) obj;
if (!getStatusList()
.equals(other.getStatusList())) 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 (getStatusCount() > 0) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatusList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk 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.proto.service.Rpc.StatusBulk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk 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.proto.service.Rpc.StatusBulk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk 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.proto.service.Rpc.StatusBulk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk 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.proto.service.Rpc.StatusBulk parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk 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.proto.service.Rpc.StatusBulk 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;
}
/**
*
**
* Bulk of status responses for the client.
* The server is free to buffer the responses and send them by single
* ack message to lower the network pressure.
*
*
* Protobuf type {@code StatusBulk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StatusBulk)
cz.o2.proxima.proto.service.Rpc.StatusBulkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_StatusBulk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_StatusBulk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.StatusBulk.class, cz.o2.proxima.proto.service.Rpc.StatusBulk.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.StatusBulk.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (statusBuilder_ == null) {
status_ = java.util.Collections.emptyList();
} else {
status_ = null;
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_StatusBulk_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.StatusBulk getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.StatusBulk.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.StatusBulk build() {
cz.o2.proxima.proto.service.Rpc.StatusBulk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.StatusBulk buildPartial() {
cz.o2.proxima.proto.service.Rpc.StatusBulk result = new cz.o2.proxima.proto.service.Rpc.StatusBulk(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cz.o2.proxima.proto.service.Rpc.StatusBulk result) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
status_ = java.util.Collections.unmodifiableList(status_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.StatusBulk result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.o2.proxima.proto.service.Rpc.StatusBulk) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.StatusBulk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.StatusBulk other) {
if (other == cz.o2.proxima.proto.service.Rpc.StatusBulk.getDefaultInstance()) return this;
if (statusBuilder_ == null) {
if (!other.status_.isEmpty()) {
if (status_.isEmpty()) {
status_ = other.status_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatusIsMutable();
status_.addAll(other.status_);
}
onChanged();
}
} else {
if (!other.status_.isEmpty()) {
if (statusBuilder_.isEmpty()) {
statusBuilder_.dispose();
statusBuilder_ = null;
status_ = other.status_;
bitField0_ = (bitField0_ & ~0x00000001);
statusBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatusFieldBuilder() : null;
} else {
statusBuilder_.addAllMessages(other.status_);
}
}
}
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: {
cz.o2.proxima.proto.service.Rpc.Status m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.Status.parser(),
extensionRegistry);
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.add(m);
} else {
statusBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List status_ =
java.util.Collections.emptyList();
private void ensureStatusIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
status_ = new java.util.ArrayList(status_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.Status, cz.o2.proxima.proto.service.Rpc.Status.Builder, cz.o2.proxima.proto.service.Rpc.StatusOrBuilder> statusBuilder_;
/**
* repeated .Status status = 1;
*/
public java.util.List getStatusList() {
if (statusBuilder_ == null) {
return java.util.Collections.unmodifiableList(status_);
} else {
return statusBuilder_.getMessageList();
}
}
/**
* repeated .Status status = 1;
*/
public int getStatusCount() {
if (statusBuilder_ == null) {
return status_.size();
} else {
return statusBuilder_.getCount();
}
}
/**
* repeated .Status status = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Status getStatus(int index) {
if (statusBuilder_ == null) {
return status_.get(index);
} else {
return statusBuilder_.getMessage(index);
}
}
/**
* repeated .Status status = 1;
*/
public Builder setStatus(
int index, cz.o2.proxima.proto.service.Rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.set(index, value);
onChanged();
} else {
statusBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder setStatus(
int index, cz.o2.proxima.proto.service.Rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.set(index, builderForValue.build());
onChanged();
} else {
statusBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder addStatus(cz.o2.proxima.proto.service.Rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.add(value);
onChanged();
} else {
statusBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder addStatus(
int index, cz.o2.proxima.proto.service.Rpc.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatusIsMutable();
status_.add(index, value);
onChanged();
} else {
statusBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder addStatus(
cz.o2.proxima.proto.service.Rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.add(builderForValue.build());
onChanged();
} else {
statusBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder addStatus(
int index, cz.o2.proxima.proto.service.Rpc.Status.Builder builderForValue) {
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.add(index, builderForValue.build());
onChanged();
} else {
statusBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder addAllStatus(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.Status> values) {
if (statusBuilder_ == null) {
ensureStatusIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, status_);
onChanged();
} else {
statusBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
statusBuilder_.clear();
}
return this;
}
/**
* repeated .Status status = 1;
*/
public Builder removeStatus(int index) {
if (statusBuilder_ == null) {
ensureStatusIsMutable();
status_.remove(index);
onChanged();
} else {
statusBuilder_.remove(index);
}
return this;
}
/**
* repeated .Status status = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Status.Builder getStatusBuilder(
int index) {
return getStatusFieldBuilder().getBuilder(index);
}
/**
* repeated .Status status = 1;
*/
public cz.o2.proxima.proto.service.Rpc.StatusOrBuilder getStatusOrBuilder(
int index) {
if (statusBuilder_ == null) {
return status_.get(index); } else {
return statusBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Status status = 1;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.StatusOrBuilder>
getStatusOrBuilderList() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(status_);
}
}
/**
* repeated .Status status = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Status.Builder addStatusBuilder() {
return getStatusFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.Status.getDefaultInstance());
}
/**
* repeated .Status status = 1;
*/
public cz.o2.proxima.proto.service.Rpc.Status.Builder addStatusBuilder(
int index) {
return getStatusFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.Status.getDefaultInstance());
}
/**
* repeated .Status status = 1;
*/
public java.util.List
getStatusBuilderList() {
return getStatusFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.Status, cz.o2.proxima.proto.service.Rpc.Status.Builder, cz.o2.proxima.proto.service.Rpc.StatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.Status, cz.o2.proxima.proto.service.Rpc.Status.Builder, cz.o2.proxima.proto.service.Rpc.StatusOrBuilder>(
status_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
@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:StatusBulk)
}
// @@protoc_insertion_point(class_scope:StatusBulk)
private static final cz.o2.proxima.proto.service.Rpc.StatusBulk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.StatusBulk();
}
public static cz.o2.proxima.proto.service.Rpc.StatusBulk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatusBulk 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.proto.service.Rpc.StatusBulk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionCommitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:TransactionCommitRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string transactionId = 1;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
* string transactionId = 1;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
* Protobuf type {@code TransactionCommitRequest}
*/
public static final class TransactionCommitRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TransactionCommitRequest)
TransactionCommitRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionCommitRequest.newBuilder() to construct.
private TransactionCommitRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionCommitRequest() {
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionCommitRequest();
}
@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.proto.service.Rpc.internal_static_TransactionCommitRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.class, cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.Builder.class);
}
public static final int TRANSACTIONID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionId_ = "";
/**
* string transactionId = 1;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
* string transactionId = 1;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
}
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(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
}
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.proto.service.Rpc.TransactionCommitRequest)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest other = (cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest) obj;
if (!getTransactionId()
.equals(other.getTransactionId())) 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) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest 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.proto.service.Rpc.TransactionCommitRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest 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.proto.service.Rpc.TransactionCommitRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest 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.proto.service.Rpc.TransactionCommitRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest 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.proto.service.Rpc.TransactionCommitRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest 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.proto.service.Rpc.TransactionCommitRequest 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 TransactionCommitRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:TransactionCommitRequest)
cz.o2.proxima.proto.service.Rpc.TransactionCommitRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.class, cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitRequest_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest build() {
cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest buildPartial() {
cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest result = new cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.proto.service.Rpc.TransactionCommitRequest) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest other) {
if (other == cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest.getDefaultInstance()) return this;
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000001;
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: {
transactionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object transactionId_ = "";
/**
* string transactionId = 1;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string transactionId = 1;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string transactionId = 1;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string transactionId = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string transactionId = 1;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:TransactionCommitRequest)
}
// @@protoc_insertion_point(class_scope:TransactionCommitRequest)
private static final cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest();
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionCommitRequest 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.proto.service.Rpc.TransactionCommitRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransactionCommitResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:TransactionCommitResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .TransactionCommitResponse.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .TransactionCommitResponse.Status status = 1;
* @return The status.
*/
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status getStatus();
}
/**
* Protobuf type {@code TransactionCommitResponse}
*/
public static final class TransactionCommitResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TransactionCommitResponse)
TransactionCommitResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionCommitResponse.newBuilder() to construct.
private TransactionCommitResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionCommitResponse() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionCommitResponse();
}
@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.proto.service.Rpc.internal_static_TransactionCommitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.class, cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Builder.class);
}
/**
* Protobuf enum {@code TransactionCommitResponse.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* COMMITTED = 1;
*/
COMMITTED(1),
/**
* REJECTED = 2;
*/
REJECTED(2),
/**
* FAILED = 3;
*/
FAILED(3),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* COMMITTED = 1;
*/
public static final int COMMITTED_VALUE = 1;
/**
* REJECTED = 2;
*/
public static final int REJECTED_VALUE = 2;
/**
* FAILED = 3;
*/
public static final int FAILED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return COMMITTED;
case 2: return REJECTED;
case 3: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:TransactionCommitResponse.Status)
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_ = 0;
/**
* .TransactionCommitResponse.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .TransactionCommitResponse.Status status = 1;
* @return The status.
*/
@java.lang.Override public cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status getStatus() {
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status result = cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status.forNumber(status_);
return result == null ? cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status.UNKNOWN.getNumber()) {
output.writeEnum(1, status_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
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.proto.service.Rpc.TransactionCommitResponse)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse other = (cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse) obj;
if (status_ != other.status_) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse 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.proto.service.Rpc.TransactionCommitResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse 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.proto.service.Rpc.TransactionCommitResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse 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.proto.service.Rpc.TransactionCommitResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse 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.proto.service.Rpc.TransactionCommitResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse 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.proto.service.Rpc.TransactionCommitResponse 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 TransactionCommitResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:TransactionCommitResponse)
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.class, cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_TransactionCommitResponse_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse build() {
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse buildPartial() {
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse result = new cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
}
@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.proto.service.Rpc.TransactionCommitResponse) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse other) {
if (other == cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* .TransactionCommitResponse.Status status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .TransactionCommitResponse.Status status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .TransactionCommitResponse.Status status = 1;
* @return The status.
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status getStatus() {
cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status result = cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status.forNumber(status_);
return result == null ? cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status.UNRECOGNIZED : result;
}
/**
* .TransactionCommitResponse.Status status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .TransactionCommitResponse.Status status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:TransactionCommitResponse)
}
// @@protoc_insertion_point(class_scope:TransactionCommitResponse)
private static final cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse();
}
public static cz.o2.proxima.proto.service.Rpc.TransactionCommitResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionCommitResponse 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.proto.service.Rpc.TransactionCommitResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The entity.
*/
java.lang.String getEntity();
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
com.google.protobuf.ByteString
getEntityBytes();
/**
*
** Key of the entity.
*
*
* string key = 2;
* @return The key.
*/
java.lang.String getKey();
/**
*
** Key of the entity.
*
*
* string key = 2;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
*
**
* Request to read data from the system.
*
*
* Protobuf type {@code GetRequest}
*/
public static final class GetRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetRequest)
GetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetRequest.newBuilder() to construct.
private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRequest() {
entity_ = "";
key_ = "";
attribute_ = "";
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetRequest();
}
@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.proto.service.Rpc.internal_static_GetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.GetRequest.class, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder.class);
}
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object entity_ = "";
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The entity.
*/
@java.lang.Override
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
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();
entity_ = s;
return s;
}
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
*
** Key of the entity.
*
*
* string key = 2;
* @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 the entity.
*
*
* string key = 2;
* @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 = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object attribute_ = "";
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @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 TRANSACTIONID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionId_ = "";
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, attribute_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, transactionId_);
}
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(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, attribute_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, transactionId_);
}
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.proto.service.Rpc.GetRequest)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.GetRequest other = (cz.o2.proxima.proto.service.Rpc.GetRequest) obj;
if (!getEntity()
.equals(other.getEntity())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getAttribute()
.equals(other.getAttribute())) return false;
if (!getTransactionId()
.equals(other.getTransactionId())) 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) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().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) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest 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.proto.service.Rpc.GetRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest 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.proto.service.Rpc.GetRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest 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.proto.service.Rpc.GetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest 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.proto.service.Rpc.GetRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest 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.proto.service.Rpc.GetRequest 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;
}
/**
*
**
* Request to read data from the system.
*
*
* Protobuf type {@code GetRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GetRequest)
cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.GetRequest.class, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.GetRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
entity_ = "";
key_ = "";
attribute_ = "";
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetRequest_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetRequest getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.GetRequest.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetRequest build() {
cz.o2.proxima.proto.service.Rpc.GetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetRequest buildPartial() {
cz.o2.proxima.proto.service.Rpc.GetRequest result = new cz.o2.proxima.proto.service.Rpc.GetRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.GetRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.entity_ = entity_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.attribute_ = attribute_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.proto.service.Rpc.GetRequest) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.GetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.GetRequest other) {
if (other == cz.o2.proxima.proto.service.Rpc.GetRequest.getDefaultInstance()) return this;
if (!other.getEntity().isEmpty()) {
entity_ = other.entity_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000008;
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: {
entity_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
attribute_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
transactionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object entity_ = "";
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The entity.
*/
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @param value The entity to set.
* @return This builder for chaining.
*/
public Builder setEntity(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return This builder for chaining.
*/
public Builder clearEntity() {
entity_ = getDefaultInstance().getEntity();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @param value The bytes for entity to set.
* @return This builder for chaining.
*/
public Builder setEntityBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
** Key of the entity.
*
*
* string key = 2;
* @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 the entity.
*
*
* string key = 2;
* @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 the entity.
*
*
* string key = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** Key of the entity.
*
*
* string key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
** Key of the entity.
*
*
* string key = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object attribute_ = "";
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
** Name of the attribute.
*
*
* string attribute = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object transactionId_ = "";
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionId_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 4;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionId_ = value;
bitField0_ |= 0x00000008;
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:GetRequest)
}
// @@protoc_insertion_point(class_scope:GetRequest)
private static final cz.o2.proxima.proto.service.Rpc.GetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.GetRequest();
}
public static cz.o2.proxima.proto.service.Rpc.GetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetRequest 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.proto.service.Rpc.GetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* Status code. Can be
* 200 - OK
* 204 - Already committed transaction
* 400 - Bad request - if missing some required field(s) in request
* 404 - Entity or attribute not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return The status.
*/
int getStatus();
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The statusMessage.
*/
java.lang.String getStatusMessage();
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The bytes for statusMessage.
*/
com.google.protobuf.ByteString
getStatusMessageBytes();
/**
*
**
* Value of the requested attribute.
*
*
* bytes value = 3;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
**
* Response to the GetRequest.
*
*
* Protobuf type {@code GetResponse}
*/
public static final class GetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetResponse)
GetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetResponse.newBuilder() to construct.
private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetResponse() {
statusMessage_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetResponse();
}
@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.proto.service.Rpc.internal_static_GetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.GetResponse.class, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_ = 0;
/**
*
**
* Status code. Can be
* 200 - OK
* 204 - Already committed transaction
* 400 - Bad request - if missing some required field(s) in request
* 404 - Entity or attribute not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
public static final int STATUSMESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object statusMessage_ = "";
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The statusMessage.
*/
@java.lang.Override
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
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();
statusMessage_ = s;
return s;
}
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The bytes for statusMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Value of the requested attribute.
*
*
* bytes value = 3;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != 0) {
output.writeUInt32(1, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statusMessage_);
}
if (!value_.isEmpty()) {
output.writeBytes(3, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, statusMessage_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.o2.proxima.proto.service.Rpc.GetResponse)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.GetResponse other = (cz.o2.proxima.proto.service.Rpc.GetResponse) obj;
if (getStatus()
!= other.getStatus()) return false;
if (!getStatusMessage()
.equals(other.getStatusMessage())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus();
hash = (37 * hash) + STATUSMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusMessage().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse 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.proto.service.Rpc.GetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse 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.proto.service.Rpc.GetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse 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.proto.service.Rpc.GetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse 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.proto.service.Rpc.GetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse 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.proto.service.Rpc.GetResponse 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;
}
/**
*
**
* Response to the GetRequest.
*
*
* Protobuf type {@code GetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GetResponse)
cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.GetResponse.class, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.GetResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
statusMessage_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_GetResponse_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetResponse getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.GetResponse.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetResponse build() {
cz.o2.proxima.proto.service.Rpc.GetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetResponse buildPartial() {
cz.o2.proxima.proto.service.Rpc.GetResponse result = new cz.o2.proxima.proto.service.Rpc.GetResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.GetResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.statusMessage_ = statusMessage_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.value_ = value_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.o2.proxima.proto.service.Rpc.GetResponse) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.GetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.GetResponse other) {
if (other == cz.o2.proxima.proto.service.Rpc.GetResponse.getDefaultInstance()) return this;
if (other.getStatus() != 0) {
setStatus(other.getStatus());
}
if (!other.getStatusMessage().isEmpty()) {
statusMessage_ = other.statusMessage_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
statusMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
value_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ ;
/**
*
**
* Status code. Can be
* 200 - OK
* 204 - Already committed transaction
* 400 - Bad request - if missing some required field(s) in request
* 404 - Entity or attribute not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
/**
*
**
* Status code. Can be
* 200 - OK
* 204 - Already committed transaction
* 400 - Bad request - if missing some required field(s) in request
* 404 - Entity or attribute not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(int value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Status code. Can be
* 200 - OK
* 204 - Already committed transaction
* 400 - Bad request - if missing some required field(s) in request
* 404 - Entity or attribute not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object statusMessage_ = "";
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The statusMessage.
*/
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The bytes for statusMessage.
*/
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @param value The statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
statusMessage_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return This builder for chaining.
*/
public Builder clearStatusMessage() {
statusMessage_ = getDefaultInstance().getStatusMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
statusMessage_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Value of the requested attribute.
*
*
* bytes value = 3;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
**
* Value of the requested attribute.
*
*
* 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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Value of the requested attribute.
*
*
* bytes value = 3;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = getDefaultInstance().getValue();
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:GetResponse)
}
// @@protoc_insertion_point(class_scope:GetResponse)
private static final cz.o2.proxima.proto.service.Rpc.GetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.GetResponse();
}
public static cz.o2.proxima.proto.service.Rpc.GetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetResponse 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.proto.service.Rpc.GetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:ListRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The entity.
*/
java.lang.String getEntity();
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
com.google.protobuf.ByteString
getEntityBytes();
/**
*
** Key of the entity.
*
*
* string key = 2;
* @return The key.
*/
java.lang.String getKey();
/**
*
** Key of the entity.
*
*
* string key = 2;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return The wildcardPrefix.
*/
java.lang.String getWildcardPrefix();
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return The bytes for wildcardPrefix.
*/
com.google.protobuf.ByteString
getWildcardPrefixBytes();
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return The offset.
*/
java.lang.String getOffset();
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return The bytes for offset.
*/
com.google.protobuf.ByteString
getOffsetBytes();
/**
*
** Maximal number of items to return. If less or equal to zero than unlimited.
*
*
* uint32 limit = 5;
* @return The limit.
*/
int getLimit();
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
*
**
* Request to list attributes of given entity by known wildcard prefix.
*
*
* Protobuf type {@code ListRequest}
*/
public static final class ListRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ListRequest)
ListRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRequest.newBuilder() to construct.
private ListRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRequest() {
entity_ = "";
key_ = "";
wildcardPrefix_ = "";
offset_ = "";
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRequest();
}
@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.proto.service.Rpc.internal_static_ListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.ListRequest.class, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder.class);
}
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object entity_ = "";
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The entity.
*/
@java.lang.Override
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
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();
entity_ = s;
return s;
}
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
*
** Key of the entity.
*
*
* string key = 2;
* @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 the entity.
*
*
* string key = 2;
* @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 WILDCARDPREFIX_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object wildcardPrefix_ = "";
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return The wildcardPrefix.
*/
@java.lang.Override
public java.lang.String getWildcardPrefix() {
java.lang.Object ref = wildcardPrefix_;
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();
wildcardPrefix_ = s;
return s;
}
}
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return The bytes for wildcardPrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWildcardPrefixBytes() {
java.lang.Object ref = wildcardPrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wildcardPrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFSET_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object offset_ = "";
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return The offset.
*/
@java.lang.Override
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
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();
offset_ = s;
return s;
}
}
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return The bytes for offset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIMIT_FIELD_NUMBER = 5;
private int limit_ = 0;
/**
*
** Maximal number of items to return. If less or equal to zero than unlimited.
*
*
* uint32 limit = 5;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int TRANSACTIONID_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionId_ = "";
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wildcardPrefix_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, wildcardPrefix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, offset_);
}
if (limit_ != 0) {
output.writeUInt32(5, limit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, transactionId_);
}
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(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wildcardPrefix_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, wildcardPrefix_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(offset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, offset_);
}
if (limit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, limit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, transactionId_);
}
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.proto.service.Rpc.ListRequest)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.ListRequest other = (cz.o2.proxima.proto.service.Rpc.ListRequest) obj;
if (!getEntity()
.equals(other.getEntity())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getWildcardPrefix()
.equals(other.getWildcardPrefix())) return false;
if (!getOffset()
.equals(other.getOffset())) return false;
if (getLimit()
!= other.getLimit()) return false;
if (!getTransactionId()
.equals(other.getTransactionId())) 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) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + WILDCARDPREFIX_FIELD_NUMBER;
hash = (53 * hash) + getWildcardPrefix().hashCode();
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset().hashCode();
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest 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.proto.service.Rpc.ListRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest 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.proto.service.Rpc.ListRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest 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.proto.service.Rpc.ListRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest 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.proto.service.Rpc.ListRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest 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.proto.service.Rpc.ListRequest 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;
}
/**
*
**
* Request to list attributes of given entity by known wildcard prefix.
*
*
* Protobuf type {@code ListRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ListRequest)
cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.ListRequest.class, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.ListRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
entity_ = "";
key_ = "";
wildcardPrefix_ = "";
offset_ = "";
limit_ = 0;
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListRequest_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListRequest getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.ListRequest.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListRequest build() {
cz.o2.proxima.proto.service.Rpc.ListRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListRequest buildPartial() {
cz.o2.proxima.proto.service.Rpc.ListRequest result = new cz.o2.proxima.proto.service.Rpc.ListRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.ListRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.entity_ = entity_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.wildcardPrefix_ = wildcardPrefix_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.offset_ = offset_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.limit_ = limit_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.proto.service.Rpc.ListRequest) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.ListRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.ListRequest other) {
if (other == cz.o2.proxima.proto.service.Rpc.ListRequest.getDefaultInstance()) return this;
if (!other.getEntity().isEmpty()) {
entity_ = other.entity_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getWildcardPrefix().isEmpty()) {
wildcardPrefix_ = other.wildcardPrefix_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getOffset().isEmpty()) {
offset_ = other.offset_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getLimit() != 0) {
setLimit(other.getLimit());
}
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000020;
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: {
entity_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
wildcardPrefix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
offset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
limit_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
transactionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
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 entity_ = "";
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The entity.
*/
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @param value The entity to set.
* @return This builder for chaining.
*/
public Builder setEntity(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @return This builder for chaining.
*/
public Builder clearEntity() {
entity_ = getDefaultInstance().getEntity();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** Name of the entity.
*
*
* string entity = 1;
* @param value The bytes for entity to set.
* @return This builder for chaining.
*/
public Builder setEntityBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
** Key of the entity.
*
*
* string key = 2;
* @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 the entity.
*
*
* string key = 2;
* @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 the entity.
*
*
* string key = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** Key of the entity.
*
*
* string key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
** Key of the entity.
*
*
* string key = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object wildcardPrefix_ = "";
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return The wildcardPrefix.
*/
public java.lang.String getWildcardPrefix() {
java.lang.Object ref = wildcardPrefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
wildcardPrefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return The bytes for wildcardPrefix.
*/
public com.google.protobuf.ByteString
getWildcardPrefixBytes() {
java.lang.Object ref = wildcardPrefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wildcardPrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @param value The wildcardPrefix to set.
* @return This builder for chaining.
*/
public Builder setWildcardPrefix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
wildcardPrefix_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @return This builder for chaining.
*/
public Builder clearWildcardPrefix() {
wildcardPrefix_ = getDefaultInstance().getWildcardPrefix();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
** Prefix of the wildcard attribute (i.e. the name without tha last `.*')
*
*
* string wildcardPrefix = 3;
* @param value The bytes for wildcardPrefix to set.
* @return This builder for chaining.
*/
public Builder setWildcardPrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
wildcardPrefix_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object offset_ = "";
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return The offset.
*/
public java.lang.String getOffset() {
java.lang.Object ref = offset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
offset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return The bytes for offset.
*/
public com.google.protobuf.ByteString
getOffsetBytes() {
java.lang.Object ref = offset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
offset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
offset_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @return This builder for chaining.
*/
public Builder clearOffset() {
offset_ = getDefaultInstance().getOffset();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
** Offset. If present, return attribute that follows the given one.
*
*
* string offset = 4;
* @param value The bytes for offset to set.
* @return This builder for chaining.
*/
public Builder setOffsetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
offset_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int limit_ ;
/**
*
** Maximal number of items to return. If less or equal to zero than unlimited.
*
*
* uint32 limit = 5;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
*
** Maximal number of items to return. If less or equal to zero than unlimited.
*
*
* uint32 limit = 5;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
limit_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
** Maximal number of items to return. If less or equal to zero than unlimited.
*
*
* uint32 limit = 5;
* @return This builder for chaining.
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000010);
limit_ = 0;
onChanged();
return this;
}
private java.lang.Object transactionId_ = "";
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionId_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
**
* ID of transaction that is part of this request (if any).
* If empty, the request is not part of any ongoing transaction.
*
*
* string transactionId = 6;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionId_ = value;
bitField0_ |= 0x00000020;
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:ListRequest)
}
// @@protoc_insertion_point(class_scope:ListRequest)
private static final cz.o2.proxima.proto.service.Rpc.ListRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.ListRequest();
}
public static cz.o2.proxima.proto.service.Rpc.ListRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRequest 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.proto.service.Rpc.ListRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ListResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* Status code. Can be
* 200 - OK
* 400 - Bad request - if missing some required field(s) in the request
* 404 - The entity or the attribute prefix is not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return The status.
*/
int getStatus();
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The statusMessage.
*/
java.lang.String getStatusMessage();
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The bytes for statusMessage.
*/
com.google.protobuf.ByteString
getStatusMessageBytes();
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
java.util.List
getValueList();
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue getValue(int index);
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
int getValueCount();
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder>
getValueOrBuilderList();
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder getValueOrBuilder(
int index);
}
/**
*
**
* Response to the ListRequest.
*
*
* Protobuf type {@code ListResponse}
*/
public static final class ListResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ListResponse)
ListResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListResponse.newBuilder() to construct.
private ListResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListResponse() {
statusMessage_ = "";
value_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListResponse();
}
@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.proto.service.Rpc.internal_static_ListResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.ListResponse.class, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder.class);
}
public interface AttrValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:ListResponse.AttrValue)
com.google.protobuf.MessageOrBuilder {
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
/**
*
** The value of the attribute.
*
*
* bytes value = 2;
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
** The attribute-value returned from the storage.
*
*
* Protobuf type {@code ListResponse.AttrValue}
*/
public static final class AttrValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ListResponse.AttrValue)
AttrValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttrValue.newBuilder() to construct.
private AttrValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttrValue() {
attribute_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttrValue();
}
@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.proto.service.Rpc.internal_static_ListResponse_AttrValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_AttrValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.class, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder.class);
}
public static final int ATTRIBUTE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object attribute_ = "";
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @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;
}
}
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @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 = 2;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
** The value of the attribute.
*
*
* bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attribute_);
}
if (!value_.isEmpty()) {
output.writeBytes(2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attribute_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue other = (cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue) obj;
if (!getAttribute()
.equals(other.getAttribute())) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue 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.proto.service.Rpc.ListResponse.AttrValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue 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.proto.service.Rpc.ListResponse.AttrValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue 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.proto.service.Rpc.ListResponse.AttrValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue 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.proto.service.Rpc.ListResponse.AttrValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue 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.proto.service.Rpc.ListResponse.AttrValue 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;
}
/**
*
** The attribute-value returned from the storage.
*
*
* Protobuf type {@code ListResponse.AttrValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ListResponse.AttrValue)
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_AttrValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_AttrValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.class, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
attribute_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_AttrValue_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue build() {
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue buildPartial() {
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue result = new cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.attribute_ = attribute_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue other) {
if (other == cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.getDefaultInstance()) return this;
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
attribute_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object attribute_ = "";
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @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;
}
}
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @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;
}
}
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** The fully qualified attribute.
*
*
* string attribute = 1;
* @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_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
** The value of the attribute.
*
*
* bytes value = 2;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
** The value of the attribute.
*
*
* bytes value = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** The value of the attribute.
*
*
* bytes value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
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:ListResponse.AttrValue)
}
// @@protoc_insertion_point(class_scope:ListResponse.AttrValue)
private static final cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue();
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttrValue 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.proto.service.Rpc.ListResponse.AttrValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_ = 0;
/**
*
**
* Status code. Can be
* 200 - OK
* 400 - Bad request - if missing some required field(s) in the request
* 404 - The entity or the attribute prefix is not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
public static final int STATUSMESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object statusMessage_ = "";
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The statusMessage.
*/
@java.lang.Override
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
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();
statusMessage_ = s;
return s;
}
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The bytes for statusMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List value_;
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
@java.lang.Override
public java.util.List getValueList() {
return value_;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder>
getValueOrBuilderList() {
return value_;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
@java.lang.Override
public int getValueCount() {
return value_.size();
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue getValue(int index) {
return value_.get(index);
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder getValueOrBuilder(
int index) {
return value_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != 0) {
output.writeUInt32(1, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statusMessage_);
}
for (int i = 0; i < value_.size(); i++) {
output.writeMessage(3, value_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, statusMessage_);
}
for (int i = 0; i < value_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, value_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.o2.proxima.proto.service.Rpc.ListResponse)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.ListResponse other = (cz.o2.proxima.proto.service.Rpc.ListResponse) obj;
if (getStatus()
!= other.getStatus()) return false;
if (!getStatusMessage()
.equals(other.getStatusMessage())) return false;
if (!getValueList()
.equals(other.getValueList())) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus();
hash = (37 * hash) + STATUSMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusMessage().hashCode();
if (getValueCount() > 0) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValueList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse 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.proto.service.Rpc.ListResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse 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.proto.service.Rpc.ListResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse 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.proto.service.Rpc.ListResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse 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.proto.service.Rpc.ListResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse 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.proto.service.Rpc.ListResponse 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;
}
/**
*
**
* Response to the ListRequest.
*
*
* Protobuf type {@code ListResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ListResponse)
cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.ListResponse.class, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.ListResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
statusMessage_ = "";
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
} else {
value_ = null;
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_ListResponse_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.ListResponse.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse build() {
cz.o2.proxima.proto.service.Rpc.ListResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse buildPartial() {
cz.o2.proxima.proto.service.Rpc.ListResponse result = new cz.o2.proxima.proto.service.Rpc.ListResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cz.o2.proxima.proto.service.Rpc.ListResponse result) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
value_ = java.util.Collections.unmodifiableList(value_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.ListResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.statusMessage_ = statusMessage_;
}
}
@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.proto.service.Rpc.ListResponse) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.ListResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.ListResponse other) {
if (other == cz.o2.proxima.proto.service.Rpc.ListResponse.getDefaultInstance()) return this;
if (other.getStatus() != 0) {
setStatus(other.getStatus());
}
if (!other.getStatusMessage().isEmpty()) {
statusMessage_ = other.statusMessage_;
bitField0_ |= 0x00000002;
onChanged();
}
if (valueBuilder_ == null) {
if (!other.value_.isEmpty()) {
if (value_.isEmpty()) {
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureValueIsMutable();
value_.addAll(other.value_);
}
onChanged();
}
} else {
if (!other.value_.isEmpty()) {
if (valueBuilder_.isEmpty()) {
valueBuilder_.dispose();
valueBuilder_ = null;
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000004);
valueBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValueFieldBuilder() : null;
} else {
valueBuilder_.addAllMessages(other.value_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
statusMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.parser(),
extensionRegistry);
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(m);
} else {
valueBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ ;
/**
*
**
* Status code. Can be
* 200 - OK
* 400 - Bad request - if missing some required field(s) in the request
* 404 - The entity or the attribute prefix is not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
/**
*
**
* Status code. Can be
* 200 - OK
* 400 - Bad request - if missing some required field(s) in the request
* 404 - The entity or the attribute prefix is not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(int value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Status code. Can be
* 200 - OK
* 400 - Bad request - if missing some required field(s) in the request
* 404 - The entity or the attribute prefix is not found
* 500 - Internal server error
*
*
* uint32 status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.lang.Object statusMessage_ = "";
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The statusMessage.
*/
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return The bytes for statusMessage.
*/
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @param value The statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
statusMessage_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @return This builder for chaining.
*/
public Builder clearStatusMessage() {
statusMessage_ = getDefaultInstance().getStatusMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The status message. Might be omitted if status is 200.
*
*
* string statusMessage = 2;
* @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
statusMessage_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.util.List value_ =
java.util.Collections.emptyList();
private void ensureValueIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
value_ = new java.util.ArrayList(value_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder> valueBuilder_;
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public java.util.List getValueList() {
if (valueBuilder_ == null) {
return java.util.Collections.unmodifiableList(value_);
} else {
return valueBuilder_.getMessageList();
}
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public int getValueCount() {
if (valueBuilder_ == null) {
return value_.size();
} else {
return valueBuilder_.getCount();
}
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue getValue(int index) {
if (valueBuilder_ == null) {
return value_.get(index);
} else {
return valueBuilder_.getMessage(index);
}
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder setValue(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.set(index, value);
onChanged();
} else {
valueBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder setValue(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.set(index, builderForValue.build());
onChanged();
} else {
valueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder addValue(cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(value);
onChanged();
} else {
valueBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder addValue(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(index, value);
onChanged();
} else {
valueBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder addValue(
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(builderForValue.build());
onChanged();
} else {
valueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder addValue(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(index, builderForValue.build());
onChanged();
} else {
valueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder addAllValue(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue> values) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, value_);
onChanged();
} else {
valueBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
valueBuilder_.clear();
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public Builder removeValue(int index) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.remove(index);
onChanged();
} else {
valueBuilder_.remove(index);
}
return this;
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder getValueBuilder(
int index) {
return getValueFieldBuilder().getBuilder(index);
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder getValueOrBuilder(
int index) {
if (valueBuilder_ == null) {
return value_.get(index); } else {
return valueBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder>
getValueOrBuilderList() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(value_);
}
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder addValueBuilder() {
return getValueFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.getDefaultInstance());
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder addValueBuilder(
int index) {
return getValueFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.getDefaultInstance());
}
/**
*
**
* All scanned values.
*
*
* repeated .ListResponse.AttrValue value = 3;
*/
public java.util.List
getValueBuilderList() {
return getValueFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValue.Builder, cz.o2.proxima.proto.service.Rpc.ListResponse.AttrValueOrBuilder>(
value_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ListResponse)
}
// @@protoc_insertion_point(class_scope:ListResponse)
private static final cz.o2.proxima.proto.service.Rpc.ListResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.ListResponse();
}
public static cz.o2.proxima.proto.service.Rpc.ListResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListResponse 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.proto.service.Rpc.ListResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MultifetchRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:MultifetchRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
java.util.List
getGetRequestList();
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
cz.o2.proxima.proto.service.Rpc.GetRequest getGetRequest(int index);
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
int getGetRequestCount();
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder>
getGetRequestOrBuilderList();
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder getGetRequestOrBuilder(
int index);
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
java.util.List
getListRequestList();
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
cz.o2.proxima.proto.service.Rpc.ListRequest getListRequest(int index);
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
int getListRequestCount();
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder>
getListRequestOrBuilderList();
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder getListRequestOrBuilder(
int index);
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
*
**
* A multiget/multilist request.
*
*
* Protobuf type {@code MultifetchRequest}
*/
public static final class MultifetchRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MultifetchRequest)
MultifetchRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use MultifetchRequest.newBuilder() to construct.
private MultifetchRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MultifetchRequest() {
getRequest_ = java.util.Collections.emptyList();
listRequest_ = java.util.Collections.emptyList();
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MultifetchRequest();
}
@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.proto.service.Rpc.internal_static_MultifetchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.MultifetchRequest.class, cz.o2.proxima.proto.service.Rpc.MultifetchRequest.Builder.class);
}
public static final int GETREQUEST_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List getRequest_;
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
@java.lang.Override
public java.util.List getGetRequestList() {
return getRequest_;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder>
getGetRequestOrBuilderList() {
return getRequest_;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
@java.lang.Override
public int getGetRequestCount() {
return getRequest_.size();
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetRequest getGetRequest(int index) {
return getRequest_.get(index);
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder getGetRequestOrBuilder(
int index) {
return getRequest_.get(index);
}
public static final int LISTREQUEST_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List listRequest_;
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
@java.lang.Override
public java.util.List getListRequestList() {
return listRequest_;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder>
getListRequestOrBuilderList() {
return listRequest_;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
@java.lang.Override
public int getListRequestCount() {
return listRequest_.size();
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListRequest getListRequest(int index) {
return listRequest_.get(index);
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder getListRequestOrBuilder(
int index) {
return listRequest_.get(index);
}
public static final int TRANSACTIONID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionId_ = "";
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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 {
for (int i = 0; i < getRequest_.size(); i++) {
output.writeMessage(1, getRequest_.get(i));
}
for (int i = 0; i < listRequest_.size(); i++) {
output.writeMessage(2, listRequest_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < getRequest_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRequest_.get(i));
}
for (int i = 0; i < listRequest_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, listRequest_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_);
}
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.proto.service.Rpc.MultifetchRequest)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.MultifetchRequest other = (cz.o2.proxima.proto.service.Rpc.MultifetchRequest) obj;
if (!getGetRequestList()
.equals(other.getGetRequestList())) return false;
if (!getListRequestList()
.equals(other.getListRequestList())) return false;
if (!getTransactionId()
.equals(other.getTransactionId())) 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 (getGetRequestCount() > 0) {
hash = (37 * hash) + GETREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getGetRequestList().hashCode();
}
if (getListRequestCount() > 0) {
hash = (37 * hash) + LISTREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getListRequestList().hashCode();
}
hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest 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.proto.service.Rpc.MultifetchRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest 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.proto.service.Rpc.MultifetchRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest 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.proto.service.Rpc.MultifetchRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest 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.proto.service.Rpc.MultifetchRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest 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.proto.service.Rpc.MultifetchRequest 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;
}
/**
*
**
* A multiget/multilist request.
*
*
* Protobuf type {@code MultifetchRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:MultifetchRequest)
cz.o2.proxima.proto.service.Rpc.MultifetchRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.MultifetchRequest.class, cz.o2.proxima.proto.service.Rpc.MultifetchRequest.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.MultifetchRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (getRequestBuilder_ == null) {
getRequest_ = java.util.Collections.emptyList();
} else {
getRequest_ = null;
getRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (listRequestBuilder_ == null) {
listRequest_ = java.util.Collections.emptyList();
} else {
listRequest_ = null;
listRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchRequest_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.MultifetchRequest getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.MultifetchRequest.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.MultifetchRequest build() {
cz.o2.proxima.proto.service.Rpc.MultifetchRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.MultifetchRequest buildPartial() {
cz.o2.proxima.proto.service.Rpc.MultifetchRequest result = new cz.o2.proxima.proto.service.Rpc.MultifetchRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cz.o2.proxima.proto.service.Rpc.MultifetchRequest result) {
if (getRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
getRequest_ = java.util.Collections.unmodifiableList(getRequest_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.getRequest_ = getRequest_;
} else {
result.getRequest_ = getRequestBuilder_.build();
}
if (listRequestBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
listRequest_ = java.util.Collections.unmodifiableList(listRequest_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.listRequest_ = listRequest_;
} else {
result.listRequest_ = listRequestBuilder_.build();
}
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.MultifetchRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.proto.service.Rpc.MultifetchRequest) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.MultifetchRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.MultifetchRequest other) {
if (other == cz.o2.proxima.proto.service.Rpc.MultifetchRequest.getDefaultInstance()) return this;
if (getRequestBuilder_ == null) {
if (!other.getRequest_.isEmpty()) {
if (getRequest_.isEmpty()) {
getRequest_ = other.getRequest_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGetRequestIsMutable();
getRequest_.addAll(other.getRequest_);
}
onChanged();
}
} else {
if (!other.getRequest_.isEmpty()) {
if (getRequestBuilder_.isEmpty()) {
getRequestBuilder_.dispose();
getRequestBuilder_ = null;
getRequest_ = other.getRequest_;
bitField0_ = (bitField0_ & ~0x00000001);
getRequestBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGetRequestFieldBuilder() : null;
} else {
getRequestBuilder_.addAllMessages(other.getRequest_);
}
}
}
if (listRequestBuilder_ == null) {
if (!other.listRequest_.isEmpty()) {
if (listRequest_.isEmpty()) {
listRequest_ = other.listRequest_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureListRequestIsMutable();
listRequest_.addAll(other.listRequest_);
}
onChanged();
}
} else {
if (!other.listRequest_.isEmpty()) {
if (listRequestBuilder_.isEmpty()) {
listRequestBuilder_.dispose();
listRequestBuilder_ = null;
listRequest_ = other.listRequest_;
bitField0_ = (bitField0_ & ~0x00000002);
listRequestBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getListRequestFieldBuilder() : null;
} else {
listRequestBuilder_.addAllMessages(other.listRequest_);
}
}
}
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000004;
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: {
cz.o2.proxima.proto.service.Rpc.GetRequest m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.GetRequest.parser(),
extensionRegistry);
if (getRequestBuilder_ == null) {
ensureGetRequestIsMutable();
getRequest_.add(m);
} else {
getRequestBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
cz.o2.proxima.proto.service.Rpc.ListRequest m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.ListRequest.parser(),
extensionRegistry);
if (listRequestBuilder_ == null) {
ensureListRequestIsMutable();
listRequest_.add(m);
} else {
listRequestBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
transactionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List getRequest_ =
java.util.Collections.emptyList();
private void ensureGetRequestIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
getRequest_ = new java.util.ArrayList(getRequest_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.GetRequest, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder, cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder> getRequestBuilder_;
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public java.util.List getGetRequestList() {
if (getRequestBuilder_ == null) {
return java.util.Collections.unmodifiableList(getRequest_);
} else {
return getRequestBuilder_.getMessageList();
}
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public int getGetRequestCount() {
if (getRequestBuilder_ == null) {
return getRequest_.size();
} else {
return getRequestBuilder_.getCount();
}
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetRequest getGetRequest(int index) {
if (getRequestBuilder_ == null) {
return getRequest_.get(index);
} else {
return getRequestBuilder_.getMessage(index);
}
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder setGetRequest(
int index, cz.o2.proxima.proto.service.Rpc.GetRequest value) {
if (getRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGetRequestIsMutable();
getRequest_.set(index, value);
onChanged();
} else {
getRequestBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder setGetRequest(
int index, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder builderForValue) {
if (getRequestBuilder_ == null) {
ensureGetRequestIsMutable();
getRequest_.set(index, builderForValue.build());
onChanged();
} else {
getRequestBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder addGetRequest(cz.o2.proxima.proto.service.Rpc.GetRequest value) {
if (getRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGetRequestIsMutable();
getRequest_.add(value);
onChanged();
} else {
getRequestBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder addGetRequest(
int index, cz.o2.proxima.proto.service.Rpc.GetRequest value) {
if (getRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGetRequestIsMutable();
getRequest_.add(index, value);
onChanged();
} else {
getRequestBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder addGetRequest(
cz.o2.proxima.proto.service.Rpc.GetRequest.Builder builderForValue) {
if (getRequestBuilder_ == null) {
ensureGetRequestIsMutable();
getRequest_.add(builderForValue.build());
onChanged();
} else {
getRequestBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder addGetRequest(
int index, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder builderForValue) {
if (getRequestBuilder_ == null) {
ensureGetRequestIsMutable();
getRequest_.add(index, builderForValue.build());
onChanged();
} else {
getRequestBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder addAllGetRequest(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.GetRequest> values) {
if (getRequestBuilder_ == null) {
ensureGetRequestIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, getRequest_);
onChanged();
} else {
getRequestBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder clearGetRequest() {
if (getRequestBuilder_ == null) {
getRequest_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
getRequestBuilder_.clear();
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public Builder removeGetRequest(int index) {
if (getRequestBuilder_ == null) {
ensureGetRequestIsMutable();
getRequest_.remove(index);
onChanged();
} else {
getRequestBuilder_.remove(index);
}
return this;
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetRequest.Builder getGetRequestBuilder(
int index) {
return getGetRequestFieldBuilder().getBuilder(index);
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder getGetRequestOrBuilder(
int index) {
if (getRequestBuilder_ == null) {
return getRequest_.get(index); } else {
return getRequestBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder>
getGetRequestOrBuilderList() {
if (getRequestBuilder_ != null) {
return getRequestBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(getRequest_);
}
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetRequest.Builder addGetRequestBuilder() {
return getGetRequestFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.GetRequest.getDefaultInstance());
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetRequest.Builder addGetRequestBuilder(
int index) {
return getGetRequestFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.GetRequest.getDefaultInstance());
}
/**
*
**
* List of get requests to be performed.
*
*
* repeated .GetRequest getRequest = 1;
*/
public java.util.List
getGetRequestBuilderList() {
return getGetRequestFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.GetRequest, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder, cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder>
getGetRequestFieldBuilder() {
if (getRequestBuilder_ == null) {
getRequestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.GetRequest, cz.o2.proxima.proto.service.Rpc.GetRequest.Builder, cz.o2.proxima.proto.service.Rpc.GetRequestOrBuilder>(
getRequest_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
getRequest_ = null;
}
return getRequestBuilder_;
}
private java.util.List listRequest_ =
java.util.Collections.emptyList();
private void ensureListRequestIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
listRequest_ = new java.util.ArrayList(listRequest_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListRequest, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder, cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder> listRequestBuilder_;
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public java.util.List getListRequestList() {
if (listRequestBuilder_ == null) {
return java.util.Collections.unmodifiableList(listRequest_);
} else {
return listRequestBuilder_.getMessageList();
}
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public int getListRequestCount() {
if (listRequestBuilder_ == null) {
return listRequest_.size();
} else {
return listRequestBuilder_.getCount();
}
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListRequest getListRequest(int index) {
if (listRequestBuilder_ == null) {
return listRequest_.get(index);
} else {
return listRequestBuilder_.getMessage(index);
}
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder setListRequest(
int index, cz.o2.proxima.proto.service.Rpc.ListRequest value) {
if (listRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListRequestIsMutable();
listRequest_.set(index, value);
onChanged();
} else {
listRequestBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder setListRequest(
int index, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder builderForValue) {
if (listRequestBuilder_ == null) {
ensureListRequestIsMutable();
listRequest_.set(index, builderForValue.build());
onChanged();
} else {
listRequestBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder addListRequest(cz.o2.proxima.proto.service.Rpc.ListRequest value) {
if (listRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListRequestIsMutable();
listRequest_.add(value);
onChanged();
} else {
listRequestBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder addListRequest(
int index, cz.o2.proxima.proto.service.Rpc.ListRequest value) {
if (listRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListRequestIsMutable();
listRequest_.add(index, value);
onChanged();
} else {
listRequestBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder addListRequest(
cz.o2.proxima.proto.service.Rpc.ListRequest.Builder builderForValue) {
if (listRequestBuilder_ == null) {
ensureListRequestIsMutable();
listRequest_.add(builderForValue.build());
onChanged();
} else {
listRequestBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder addListRequest(
int index, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder builderForValue) {
if (listRequestBuilder_ == null) {
ensureListRequestIsMutable();
listRequest_.add(index, builderForValue.build());
onChanged();
} else {
listRequestBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder addAllListRequest(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.ListRequest> values) {
if (listRequestBuilder_ == null) {
ensureListRequestIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, listRequest_);
onChanged();
} else {
listRequestBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder clearListRequest() {
if (listRequestBuilder_ == null) {
listRequest_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
listRequestBuilder_.clear();
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public Builder removeListRequest(int index) {
if (listRequestBuilder_ == null) {
ensureListRequestIsMutable();
listRequest_.remove(index);
onChanged();
} else {
listRequestBuilder_.remove(index);
}
return this;
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListRequest.Builder getListRequestBuilder(
int index) {
return getListRequestFieldBuilder().getBuilder(index);
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder getListRequestOrBuilder(
int index) {
if (listRequestBuilder_ == null) {
return listRequest_.get(index); } else {
return listRequestBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder>
getListRequestOrBuilderList() {
if (listRequestBuilder_ != null) {
return listRequestBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(listRequest_);
}
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListRequest.Builder addListRequestBuilder() {
return getListRequestFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.ListRequest.getDefaultInstance());
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListRequest.Builder addListRequestBuilder(
int index) {
return getListRequestFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.ListRequest.getDefaultInstance());
}
/**
*
**
* List of list requests to be performed.
*
*
* repeated .ListRequest listRequest = 2;
*/
public java.util.List
getListRequestBuilderList() {
return getListRequestFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListRequest, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder, cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder>
getListRequestFieldBuilder() {
if (listRequestBuilder_ == null) {
listRequestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListRequest, cz.o2.proxima.proto.service.Rpc.ListRequest.Builder, cz.o2.proxima.proto.service.Rpc.ListRequestOrBuilder>(
listRequest_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
listRequest_ = null;
}
return listRequestBuilder_;
}
private java.lang.Object transactionId_ = "";
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* ID of transaction of the requests. All requests MUST have empty transaction ID and
* share this global on (if any).
*
*
* string transactionId = 3;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionId_ = value;
bitField0_ |= 0x00000004;
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:MultifetchRequest)
}
// @@protoc_insertion_point(class_scope:MultifetchRequest)
private static final cz.o2.proxima.proto.service.Rpc.MultifetchRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.MultifetchRequest();
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MultifetchRequest 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.proto.service.Rpc.MultifetchRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MultifetchResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:MultifetchResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
java.util.List
getGetResponseList();
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
cz.o2.proxima.proto.service.Rpc.GetResponse getGetResponse(int index);
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
int getGetResponseCount();
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder>
getGetResponseOrBuilderList();
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder getGetResponseOrBuilder(
int index);
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
java.util.List
getListResponseList();
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
cz.o2.proxima.proto.service.Rpc.ListResponse getListResponse(int index);
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
int getListResponseCount();
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder>
getListResponseOrBuilderList();
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder getListResponseOrBuilder(
int index);
}
/**
* Protobuf type {@code MultifetchResponse}
*/
public static final class MultifetchResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MultifetchResponse)
MultifetchResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MultifetchResponse.newBuilder() to construct.
private MultifetchResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MultifetchResponse() {
getResponse_ = java.util.Collections.emptyList();
listResponse_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MultifetchResponse();
}
@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.proto.service.Rpc.internal_static_MultifetchResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.MultifetchResponse.class, cz.o2.proxima.proto.service.Rpc.MultifetchResponse.Builder.class);
}
public static final int GETRESPONSE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List getResponse_;
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
@java.lang.Override
public java.util.List getGetResponseList() {
return getResponse_;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder>
getGetResponseOrBuilderList() {
return getResponse_;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
@java.lang.Override
public int getGetResponseCount() {
return getResponse_.size();
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetResponse getGetResponse(int index) {
return getResponse_.get(index);
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder getGetResponseOrBuilder(
int index) {
return getResponse_.get(index);
}
public static final int LISTRESPONSE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List listResponse_;
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
@java.lang.Override
public java.util.List getListResponseList() {
return listResponse_;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder>
getListResponseOrBuilderList() {
return listResponse_;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
@java.lang.Override
public int getListResponseCount() {
return listResponse_.size();
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponse getListResponse(int index) {
return listResponse_.get(index);
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder getListResponseOrBuilder(
int index) {
return listResponse_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < getResponse_.size(); i++) {
output.writeMessage(1, getResponse_.get(i));
}
for (int i = 0; i < listResponse_.size(); i++) {
output.writeMessage(2, listResponse_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < getResponse_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResponse_.get(i));
}
for (int i = 0; i < listResponse_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, listResponse_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.o2.proxima.proto.service.Rpc.MultifetchResponse)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.MultifetchResponse other = (cz.o2.proxima.proto.service.Rpc.MultifetchResponse) obj;
if (!getGetResponseList()
.equals(other.getGetResponseList())) return false;
if (!getListResponseList()
.equals(other.getListResponseList())) 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 (getGetResponseCount() > 0) {
hash = (37 * hash) + GETRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getGetResponseList().hashCode();
}
if (getListResponseCount() > 0) {
hash = (37 * hash) + LISTRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getListResponseList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse 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.proto.service.Rpc.MultifetchResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse 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.proto.service.Rpc.MultifetchResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse 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.proto.service.Rpc.MultifetchResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse 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.proto.service.Rpc.MultifetchResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse 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.proto.service.Rpc.MultifetchResponse 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 MultifetchResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:MultifetchResponse)
cz.o2.proxima.proto.service.Rpc.MultifetchResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.MultifetchResponse.class, cz.o2.proxima.proto.service.Rpc.MultifetchResponse.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.MultifetchResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (getResponseBuilder_ == null) {
getResponse_ = java.util.Collections.emptyList();
} else {
getResponse_ = null;
getResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (listResponseBuilder_ == null) {
listResponse_ = java.util.Collections.emptyList();
} else {
listResponse_ = null;
listResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_MultifetchResponse_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.MultifetchResponse getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.MultifetchResponse.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.MultifetchResponse build() {
cz.o2.proxima.proto.service.Rpc.MultifetchResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.MultifetchResponse buildPartial() {
cz.o2.proxima.proto.service.Rpc.MultifetchResponse result = new cz.o2.proxima.proto.service.Rpc.MultifetchResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cz.o2.proxima.proto.service.Rpc.MultifetchResponse result) {
if (getResponseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
getResponse_ = java.util.Collections.unmodifiableList(getResponse_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.getResponse_ = getResponse_;
} else {
result.getResponse_ = getResponseBuilder_.build();
}
if (listResponseBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
listResponse_ = java.util.Collections.unmodifiableList(listResponse_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.listResponse_ = listResponse_;
} else {
result.listResponse_ = listResponseBuilder_.build();
}
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.MultifetchResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.o2.proxima.proto.service.Rpc.MultifetchResponse) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.MultifetchResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.MultifetchResponse other) {
if (other == cz.o2.proxima.proto.service.Rpc.MultifetchResponse.getDefaultInstance()) return this;
if (getResponseBuilder_ == null) {
if (!other.getResponse_.isEmpty()) {
if (getResponse_.isEmpty()) {
getResponse_ = other.getResponse_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGetResponseIsMutable();
getResponse_.addAll(other.getResponse_);
}
onChanged();
}
} else {
if (!other.getResponse_.isEmpty()) {
if (getResponseBuilder_.isEmpty()) {
getResponseBuilder_.dispose();
getResponseBuilder_ = null;
getResponse_ = other.getResponse_;
bitField0_ = (bitField0_ & ~0x00000001);
getResponseBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGetResponseFieldBuilder() : null;
} else {
getResponseBuilder_.addAllMessages(other.getResponse_);
}
}
}
if (listResponseBuilder_ == null) {
if (!other.listResponse_.isEmpty()) {
if (listResponse_.isEmpty()) {
listResponse_ = other.listResponse_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureListResponseIsMutable();
listResponse_.addAll(other.listResponse_);
}
onChanged();
}
} else {
if (!other.listResponse_.isEmpty()) {
if (listResponseBuilder_.isEmpty()) {
listResponseBuilder_.dispose();
listResponseBuilder_ = null;
listResponse_ = other.listResponse_;
bitField0_ = (bitField0_ & ~0x00000002);
listResponseBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getListResponseFieldBuilder() : null;
} else {
listResponseBuilder_.addAllMessages(other.listResponse_);
}
}
}
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: {
cz.o2.proxima.proto.service.Rpc.GetResponse m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.GetResponse.parser(),
extensionRegistry);
if (getResponseBuilder_ == null) {
ensureGetResponseIsMutable();
getResponse_.add(m);
} else {
getResponseBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
cz.o2.proxima.proto.service.Rpc.ListResponse m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.ListResponse.parser(),
extensionRegistry);
if (listResponseBuilder_ == null) {
ensureListResponseIsMutable();
listResponse_.add(m);
} else {
listResponseBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List getResponse_ =
java.util.Collections.emptyList();
private void ensureGetResponseIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
getResponse_ = new java.util.ArrayList(getResponse_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.GetResponse, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder, cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder> getResponseBuilder_;
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public java.util.List getGetResponseList() {
if (getResponseBuilder_ == null) {
return java.util.Collections.unmodifiableList(getResponse_);
} else {
return getResponseBuilder_.getMessageList();
}
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public int getGetResponseCount() {
if (getResponseBuilder_ == null) {
return getResponse_.size();
} else {
return getResponseBuilder_.getCount();
}
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetResponse getGetResponse(int index) {
if (getResponseBuilder_ == null) {
return getResponse_.get(index);
} else {
return getResponseBuilder_.getMessage(index);
}
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder setGetResponse(
int index, cz.o2.proxima.proto.service.Rpc.GetResponse value) {
if (getResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGetResponseIsMutable();
getResponse_.set(index, value);
onChanged();
} else {
getResponseBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder setGetResponse(
int index, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder builderForValue) {
if (getResponseBuilder_ == null) {
ensureGetResponseIsMutable();
getResponse_.set(index, builderForValue.build());
onChanged();
} else {
getResponseBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder addGetResponse(cz.o2.proxima.proto.service.Rpc.GetResponse value) {
if (getResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGetResponseIsMutable();
getResponse_.add(value);
onChanged();
} else {
getResponseBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder addGetResponse(
int index, cz.o2.proxima.proto.service.Rpc.GetResponse value) {
if (getResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGetResponseIsMutable();
getResponse_.add(index, value);
onChanged();
} else {
getResponseBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder addGetResponse(
cz.o2.proxima.proto.service.Rpc.GetResponse.Builder builderForValue) {
if (getResponseBuilder_ == null) {
ensureGetResponseIsMutable();
getResponse_.add(builderForValue.build());
onChanged();
} else {
getResponseBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder addGetResponse(
int index, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder builderForValue) {
if (getResponseBuilder_ == null) {
ensureGetResponseIsMutable();
getResponse_.add(index, builderForValue.build());
onChanged();
} else {
getResponseBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder addAllGetResponse(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.GetResponse> values) {
if (getResponseBuilder_ == null) {
ensureGetResponseIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, getResponse_);
onChanged();
} else {
getResponseBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder clearGetResponse() {
if (getResponseBuilder_ == null) {
getResponse_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
getResponseBuilder_.clear();
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public Builder removeGetResponse(int index) {
if (getResponseBuilder_ == null) {
ensureGetResponseIsMutable();
getResponse_.remove(index);
onChanged();
} else {
getResponseBuilder_.remove(index);
}
return this;
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetResponse.Builder getGetResponseBuilder(
int index) {
return getGetResponseFieldBuilder().getBuilder(index);
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder getGetResponseOrBuilder(
int index) {
if (getResponseBuilder_ == null) {
return getResponse_.get(index); } else {
return getResponseBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder>
getGetResponseOrBuilderList() {
if (getResponseBuilder_ != null) {
return getResponseBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(getResponse_);
}
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetResponse.Builder addGetResponseBuilder() {
return getGetResponseFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.GetResponse.getDefaultInstance());
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public cz.o2.proxima.proto.service.Rpc.GetResponse.Builder addGetResponseBuilder(
int index) {
return getGetResponseFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.GetResponse.getDefaultInstance());
}
/**
*
**
* Response to all get requests sent in MultifetchRequest.
* The order of responses is preserved.
*
*
* repeated .GetResponse getResponse = 1;
*/
public java.util.List
getGetResponseBuilderList() {
return getGetResponseFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.GetResponse, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder, cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder>
getGetResponseFieldBuilder() {
if (getResponseBuilder_ == null) {
getResponseBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.GetResponse, cz.o2.proxima.proto.service.Rpc.GetResponse.Builder, cz.o2.proxima.proto.service.Rpc.GetResponseOrBuilder>(
getResponse_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
getResponse_ = null;
}
return getResponseBuilder_;
}
private java.util.List listResponse_ =
java.util.Collections.emptyList();
private void ensureListResponseIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
listResponse_ = new java.util.ArrayList(listResponse_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListResponse, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder, cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder> listResponseBuilder_;
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public java.util.List getListResponseList() {
if (listResponseBuilder_ == null) {
return java.util.Collections.unmodifiableList(listResponse_);
} else {
return listResponseBuilder_.getMessageList();
}
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public int getListResponseCount() {
if (listResponseBuilder_ == null) {
return listResponse_.size();
} else {
return listResponseBuilder_.getCount();
}
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse getListResponse(int index) {
if (listResponseBuilder_ == null) {
return listResponse_.get(index);
} else {
return listResponseBuilder_.getMessage(index);
}
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder setListResponse(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse value) {
if (listResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListResponseIsMutable();
listResponse_.set(index, value);
onChanged();
} else {
listResponseBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder setListResponse(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder builderForValue) {
if (listResponseBuilder_ == null) {
ensureListResponseIsMutable();
listResponse_.set(index, builderForValue.build());
onChanged();
} else {
listResponseBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder addListResponse(cz.o2.proxima.proto.service.Rpc.ListResponse value) {
if (listResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListResponseIsMutable();
listResponse_.add(value);
onChanged();
} else {
listResponseBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder addListResponse(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse value) {
if (listResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureListResponseIsMutable();
listResponse_.add(index, value);
onChanged();
} else {
listResponseBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder addListResponse(
cz.o2.proxima.proto.service.Rpc.ListResponse.Builder builderForValue) {
if (listResponseBuilder_ == null) {
ensureListResponseIsMutable();
listResponse_.add(builderForValue.build());
onChanged();
} else {
listResponseBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder addListResponse(
int index, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder builderForValue) {
if (listResponseBuilder_ == null) {
ensureListResponseIsMutable();
listResponse_.add(index, builderForValue.build());
onChanged();
} else {
listResponseBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder addAllListResponse(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.ListResponse> values) {
if (listResponseBuilder_ == null) {
ensureListResponseIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, listResponse_);
onChanged();
} else {
listResponseBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder clearListResponse() {
if (listResponseBuilder_ == null) {
listResponse_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
listResponseBuilder_.clear();
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public Builder removeListResponse(int index) {
if (listResponseBuilder_ == null) {
ensureListResponseIsMutable();
listResponse_.remove(index);
onChanged();
} else {
listResponseBuilder_.remove(index);
}
return this;
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.Builder getListResponseBuilder(
int index) {
return getListResponseFieldBuilder().getBuilder(index);
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder getListResponseOrBuilder(
int index) {
if (listResponseBuilder_ == null) {
return listResponse_.get(index); } else {
return listResponseBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder>
getListResponseOrBuilderList() {
if (listResponseBuilder_ != null) {
return listResponseBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(listResponse_);
}
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.Builder addListResponseBuilder() {
return getListResponseFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.ListResponse.getDefaultInstance());
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public cz.o2.proxima.proto.service.Rpc.ListResponse.Builder addListResponseBuilder(
int index) {
return getListResponseFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.ListResponse.getDefaultInstance());
}
/**
*
**
* Response to all list requests sent in MultifetchRequest
* The order of responses is preserved.
*
*
* repeated .ListResponse listResponse = 2;
*/
public java.util.List
getListResponseBuilderList() {
return getListResponseFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListResponse, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder, cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder>
getListResponseFieldBuilder() {
if (listResponseBuilder_ == null) {
listResponseBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.ListResponse, cz.o2.proxima.proto.service.Rpc.ListResponse.Builder, cz.o2.proxima.proto.service.Rpc.ListResponseOrBuilder>(
listResponse_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
listResponse_ = null;
}
return listResponseBuilder_;
}
@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:MultifetchResponse)
}
// @@protoc_insertion_point(class_scope:MultifetchResponse)
private static final cz.o2.proxima.proto.service.Rpc.MultifetchResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.MultifetchResponse();
}
public static cz.o2.proxima.proto.service.Rpc.MultifetchResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MultifetchResponse 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.proto.service.Rpc.MultifetchResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeyAttributeOrBuilder extends
// @@protoc_insertion_point(interface_extends:KeyAttribute)
com.google.protobuf.MessageOrBuilder {
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return The entity.
*/
java.lang.String getEntity();
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
com.google.protobuf.ByteString
getEntityBytes();
/**
*
** Key of entity.
*
*
* string key = 2;
* @return The key.
*/
java.lang.String getKey();
/**
*
** Key of entity.
*
*
* string key = 2;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
** The attribute.
*
*
* string attribute = 3;
* @return The attribute.
*/
java.lang.String getAttribute();
/**
*
** The attribute.
*
*
* string attribute = 3;
* @return The bytes for attribute.
*/
com.google.protobuf.ByteString
getAttributeBytes();
}
/**
*
**
* A message describing entity-key-attribute without actual data.
* Transactions use this information to properly route requests to transaction managers
* that are able to ensure the required isolation level.
*
*
* Protobuf type {@code KeyAttribute}
*/
public static final class KeyAttribute extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:KeyAttribute)
KeyAttributeOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeyAttribute.newBuilder() to construct.
private KeyAttribute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeyAttribute() {
entity_ = "";
key_ = "";
attribute_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeyAttribute();
}
@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.proto.service.Rpc.internal_static_KeyAttribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_KeyAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.KeyAttribute.class, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder.class);
}
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object entity_ = "";
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return The entity.
*/
@java.lang.Override
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
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();
entity_ = s;
return s;
}
}
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
*
** Key of entity.
*
*
* string key = 2;
* @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 = 2;
* @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 = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object attribute_ = "";
/**
*
** The attribute.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** The attribute.
*
*
* string attribute = 3;
* @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;
}
}
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(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, attribute_);
}
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(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attribute_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, attribute_);
}
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.proto.service.Rpc.KeyAttribute)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.KeyAttribute other = (cz.o2.proxima.proto.service.Rpc.KeyAttribute) obj;
if (!getEntity()
.equals(other.getEntity())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getAttribute()
.equals(other.getAttribute())) 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) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute 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.proto.service.Rpc.KeyAttribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute 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.proto.service.Rpc.KeyAttribute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute 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.proto.service.Rpc.KeyAttribute parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute 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.proto.service.Rpc.KeyAttribute parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute 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.proto.service.Rpc.KeyAttribute 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;
}
/**
*
**
* A message describing entity-key-attribute without actual data.
* Transactions use this information to properly route requests to transaction managers
* that are able to ensure the required isolation level.
*
*
* Protobuf type {@code KeyAttribute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:KeyAttribute)
cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_KeyAttribute_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_KeyAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.KeyAttribute.class, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.KeyAttribute.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
entity_ = "";
key_ = "";
attribute_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_KeyAttribute_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.KeyAttribute getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.KeyAttribute.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.KeyAttribute build() {
cz.o2.proxima.proto.service.Rpc.KeyAttribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.KeyAttribute buildPartial() {
cz.o2.proxima.proto.service.Rpc.KeyAttribute result = new cz.o2.proxima.proto.service.Rpc.KeyAttribute(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.KeyAttribute result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.entity_ = entity_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.attribute_ = attribute_;
}
}
@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.proto.service.Rpc.KeyAttribute) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.KeyAttribute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.KeyAttribute other) {
if (other == cz.o2.proxima.proto.service.Rpc.KeyAttribute.getDefaultInstance()) return this;
if (!other.getEntity().isEmpty()) {
entity_ = other.entity_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getAttribute().isEmpty()) {
attribute_ = other.attribute_;
bitField0_ |= 0x00000004;
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: {
entity_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
key_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
attribute_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object entity_ = "";
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return The entity.
*/
public java.lang.String getEntity() {
java.lang.Object ref = entity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entity_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return The bytes for entity.
*/
public com.google.protobuf.ByteString
getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** Name of entity.
*
*
* string entity = 1;
* @param value The entity to set.
* @return This builder for chaining.
*/
public Builder setEntity(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** Name of entity.
*
*
* string entity = 1;
* @return This builder for chaining.
*/
public Builder clearEntity() {
entity_ = getDefaultInstance().getEntity();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** Name of entity.
*
*
* string entity = 1;
* @param value The bytes for entity to set.
* @return This builder for chaining.
*/
public Builder setEntityBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
** Key of entity.
*
*
* string key = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** Key of entity.
*
*
* string key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
** Key of entity.
*
*
* string key = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object attribute_ = "";
/**
*
** The attribute.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** The attribute.
*
*
* string attribute = 3;
* @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;
}
}
/**
*
** The attribute.
*
*
* string attribute = 3;
* @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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
** The attribute.
*
*
* string attribute = 3;
* @return This builder for chaining.
*/
public Builder clearAttribute() {
attribute_ = getDefaultInstance().getAttribute();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
** The attribute.
*
*
* string attribute = 3;
* @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_ |= 0x00000004;
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:KeyAttribute)
}
// @@protoc_insertion_point(class_scope:KeyAttribute)
private static final cz.o2.proxima.proto.service.Rpc.KeyAttribute DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.KeyAttribute();
}
public static cz.o2.proxima.proto.service.Rpc.KeyAttribute getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeyAttribute 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.proto.service.Rpc.KeyAttribute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BeginTransactionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:BeginTransactionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
java.util.List
getAttributesInvolvedList();
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
cz.o2.proxima.proto.service.Rpc.KeyAttribute getAttributesInvolved(int index);
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
int getAttributesInvolvedCount();
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
java.util.List extends cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder>
getAttributesInvolvedOrBuilderList();
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder getAttributesInvolvedOrBuilder(
int index);
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return The transcationId.
*/
java.lang.String getTranscationId();
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return The bytes for transcationId.
*/
com.google.protobuf.ByteString
getTranscationIdBytes();
}
/**
* Protobuf type {@code BeginTransactionRequest}
*/
public static final class BeginTransactionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BeginTransactionRequest)
BeginTransactionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BeginTransactionRequest.newBuilder() to construct.
private BeginTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BeginTransactionRequest() {
attributesInvolved_ = java.util.Collections.emptyList();
transcationId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BeginTransactionRequest();
}
@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.proto.service.Rpc.internal_static_BeginTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.class, cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.Builder.class);
}
public static final int ATTRIBUTESINVOLVED_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List attributesInvolved_;
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
@java.lang.Override
public java.util.List getAttributesInvolvedList() {
return attributesInvolved_;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
@java.lang.Override
public java.util.List extends cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder>
getAttributesInvolvedOrBuilderList() {
return attributesInvolved_;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
@java.lang.Override
public int getAttributesInvolvedCount() {
return attributesInvolved_.size();
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.KeyAttribute getAttributesInvolved(int index) {
return attributesInvolved_.get(index);
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder getAttributesInvolvedOrBuilder(
int index) {
return attributesInvolved_.get(index);
}
public static final int TRANSCATIONID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object transcationId_ = "";
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return The transcationId.
*/
@java.lang.Override
public java.lang.String getTranscationId() {
java.lang.Object ref = transcationId_;
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();
transcationId_ = s;
return s;
}
}
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return The bytes for transcationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTranscationIdBytes() {
java.lang.Object ref = transcationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transcationId_ = 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 {
for (int i = 0; i < attributesInvolved_.size(); i++) {
output.writeMessage(1, attributesInvolved_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transcationId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < attributesInvolved_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, attributesInvolved_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transcationId_);
}
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.proto.service.Rpc.BeginTransactionRequest)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest other = (cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest) obj;
if (!getAttributesInvolvedList()
.equals(other.getAttributesInvolvedList())) return false;
if (!getTranscationId()
.equals(other.getTranscationId())) 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 (getAttributesInvolvedCount() > 0) {
hash = (37 * hash) + ATTRIBUTESINVOLVED_FIELD_NUMBER;
hash = (53 * hash) + getAttributesInvolvedList().hashCode();
}
hash = (37 * hash) + TRANSCATIONID_FIELD_NUMBER;
hash = (53 * hash) + getTranscationId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest 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.proto.service.Rpc.BeginTransactionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest 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.proto.service.Rpc.BeginTransactionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest 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.proto.service.Rpc.BeginTransactionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest 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.proto.service.Rpc.BeginTransactionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest 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.proto.service.Rpc.BeginTransactionRequest 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 BeginTransactionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:BeginTransactionRequest)
cz.o2.proxima.proto.service.Rpc.BeginTransactionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.class, cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (attributesInvolvedBuilder_ == null) {
attributesInvolved_ = java.util.Collections.emptyList();
} else {
attributesInvolved_ = null;
attributesInvolvedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
transcationId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionRequest_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest build() {
cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest buildPartial() {
cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest result = new cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest result) {
if (attributesInvolvedBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
attributesInvolved_ = java.util.Collections.unmodifiableList(attributesInvolved_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.attributesInvolved_ = attributesInvolved_;
} else {
result.attributesInvolved_ = attributesInvolvedBuilder_.build();
}
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.transcationId_ = transcationId_;
}
}
@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.proto.service.Rpc.BeginTransactionRequest) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest other) {
if (other == cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest.getDefaultInstance()) return this;
if (attributesInvolvedBuilder_ == null) {
if (!other.attributesInvolved_.isEmpty()) {
if (attributesInvolved_.isEmpty()) {
attributesInvolved_ = other.attributesInvolved_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAttributesInvolvedIsMutable();
attributesInvolved_.addAll(other.attributesInvolved_);
}
onChanged();
}
} else {
if (!other.attributesInvolved_.isEmpty()) {
if (attributesInvolvedBuilder_.isEmpty()) {
attributesInvolvedBuilder_.dispose();
attributesInvolvedBuilder_ = null;
attributesInvolved_ = other.attributesInvolved_;
bitField0_ = (bitField0_ & ~0x00000001);
attributesInvolvedBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesInvolvedFieldBuilder() : null;
} else {
attributesInvolvedBuilder_.addAllMessages(other.attributesInvolved_);
}
}
}
if (!other.getTranscationId().isEmpty()) {
transcationId_ = other.transcationId_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
cz.o2.proxima.proto.service.Rpc.KeyAttribute m =
input.readMessage(
cz.o2.proxima.proto.service.Rpc.KeyAttribute.parser(),
extensionRegistry);
if (attributesInvolvedBuilder_ == null) {
ensureAttributesInvolvedIsMutable();
attributesInvolved_.add(m);
} else {
attributesInvolvedBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
transcationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List attributesInvolved_ =
java.util.Collections.emptyList();
private void ensureAttributesInvolvedIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
attributesInvolved_ = new java.util.ArrayList(attributesInvolved_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.KeyAttribute, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder, cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder> attributesInvolvedBuilder_;
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public java.util.List getAttributesInvolvedList() {
if (attributesInvolvedBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributesInvolved_);
} else {
return attributesInvolvedBuilder_.getMessageList();
}
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public int getAttributesInvolvedCount() {
if (attributesInvolvedBuilder_ == null) {
return attributesInvolved_.size();
} else {
return attributesInvolvedBuilder_.getCount();
}
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public cz.o2.proxima.proto.service.Rpc.KeyAttribute getAttributesInvolved(int index) {
if (attributesInvolvedBuilder_ == null) {
return attributesInvolved_.get(index);
} else {
return attributesInvolvedBuilder_.getMessage(index);
}
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder setAttributesInvolved(
int index, cz.o2.proxima.proto.service.Rpc.KeyAttribute value) {
if (attributesInvolvedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesInvolvedIsMutable();
attributesInvolved_.set(index, value);
onChanged();
} else {
attributesInvolvedBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder setAttributesInvolved(
int index, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder builderForValue) {
if (attributesInvolvedBuilder_ == null) {
ensureAttributesInvolvedIsMutable();
attributesInvolved_.set(index, builderForValue.build());
onChanged();
} else {
attributesInvolvedBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder addAttributesInvolved(cz.o2.proxima.proto.service.Rpc.KeyAttribute value) {
if (attributesInvolvedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesInvolvedIsMutable();
attributesInvolved_.add(value);
onChanged();
} else {
attributesInvolvedBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder addAttributesInvolved(
int index, cz.o2.proxima.proto.service.Rpc.KeyAttribute value) {
if (attributesInvolvedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesInvolvedIsMutable();
attributesInvolved_.add(index, value);
onChanged();
} else {
attributesInvolvedBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder addAttributesInvolved(
cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder builderForValue) {
if (attributesInvolvedBuilder_ == null) {
ensureAttributesInvolvedIsMutable();
attributesInvolved_.add(builderForValue.build());
onChanged();
} else {
attributesInvolvedBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder addAttributesInvolved(
int index, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder builderForValue) {
if (attributesInvolvedBuilder_ == null) {
ensureAttributesInvolvedIsMutable();
attributesInvolved_.add(index, builderForValue.build());
onChanged();
} else {
attributesInvolvedBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder addAllAttributesInvolved(
java.lang.Iterable extends cz.o2.proxima.proto.service.Rpc.KeyAttribute> values) {
if (attributesInvolvedBuilder_ == null) {
ensureAttributesInvolvedIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributesInvolved_);
onChanged();
} else {
attributesInvolvedBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder clearAttributesInvolved() {
if (attributesInvolvedBuilder_ == null) {
attributesInvolved_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
attributesInvolvedBuilder_.clear();
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public Builder removeAttributesInvolved(int index) {
if (attributesInvolvedBuilder_ == null) {
ensureAttributesInvolvedIsMutable();
attributesInvolved_.remove(index);
onChanged();
} else {
attributesInvolvedBuilder_.remove(index);
}
return this;
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder getAttributesInvolvedBuilder(
int index) {
return getAttributesInvolvedFieldBuilder().getBuilder(index);
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder getAttributesInvolvedOrBuilder(
int index) {
if (attributesInvolvedBuilder_ == null) {
return attributesInvolved_.get(index); } else {
return attributesInvolvedBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public java.util.List extends cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder>
getAttributesInvolvedOrBuilderList() {
if (attributesInvolvedBuilder_ != null) {
return attributesInvolvedBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributesInvolved_);
}
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder addAttributesInvolvedBuilder() {
return getAttributesInvolvedFieldBuilder().addBuilder(
cz.o2.proxima.proto.service.Rpc.KeyAttribute.getDefaultInstance());
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder addAttributesInvolvedBuilder(
int index) {
return getAttributesInvolvedFieldBuilder().addBuilder(
index, cz.o2.proxima.proto.service.Rpc.KeyAttribute.getDefaultInstance());
}
/**
*
**
* A list of entity-key-attributes that will be involved during the transaction.
* The list will be automatically updated as new requests with the same transaction ID
* arrive, but at least the outputs need to be known in advance.
*
* An empty list will create a GLOBAL transaction, with resulting scalability concerns.
*
*
* repeated .KeyAttribute attributesInvolved = 1;
*/
public java.util.List
getAttributesInvolvedBuilderList() {
return getAttributesInvolvedFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.KeyAttribute, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder, cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder>
getAttributesInvolvedFieldBuilder() {
if (attributesInvolvedBuilder_ == null) {
attributesInvolvedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.o2.proxima.proto.service.Rpc.KeyAttribute, cz.o2.proxima.proto.service.Rpc.KeyAttribute.Builder, cz.o2.proxima.proto.service.Rpc.KeyAttributeOrBuilder>(
attributesInvolved_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
attributesInvolved_ = null;
}
return attributesInvolvedBuilder_;
}
private java.lang.Object transcationId_ = "";
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return The transcationId.
*/
public java.lang.String getTranscationId() {
java.lang.Object ref = transcationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transcationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return The bytes for transcationId.
*/
public com.google.protobuf.ByteString
getTranscationIdBytes() {
java.lang.Object ref = transcationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transcationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @param value The transcationId to set.
* @return This builder for chaining.
*/
public Builder setTranscationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transcationId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @return This builder for chaining.
*/
public Builder clearTranscationId() {
transcationId_ = getDefaultInstance().getTranscationId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
** An optional transaction ID. When omitted a new transaction ID will be generated.
*
*
* string transcationId = 2;
* @param value The bytes for transcationId to set.
* @return This builder for chaining.
*/
public Builder setTranscationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transcationId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:BeginTransactionRequest)
}
// @@protoc_insertion_point(class_scope:BeginTransactionRequest)
private static final cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest();
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BeginTransactionRequest 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.proto.service.Rpc.BeginTransactionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BeginTransactionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:BeginTransactionResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return The transactionId.
*/
java.lang.String getTransactionId();
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return The bytes for transactionId.
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
}
/**
* Protobuf type {@code BeginTransactionResponse}
*/
public static final class BeginTransactionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:BeginTransactionResponse)
BeginTransactionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use BeginTransactionResponse.newBuilder() to construct.
private BeginTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BeginTransactionResponse() {
transactionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BeginTransactionResponse();
}
@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.proto.service.Rpc.internal_static_BeginTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.class, cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.Builder.class);
}
public static final int TRANSACTIONID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object transactionId_ = "";
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return The transactionId.
*/
@java.lang.Override
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
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();
transactionId_ = s;
return s;
}
}
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return The bytes for transactionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = 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(transactionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transactionId_);
}
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(transactionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transactionId_);
}
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.proto.service.Rpc.BeginTransactionResponse)) {
return super.equals(obj);
}
cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse other = (cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse) obj;
if (!getTransactionId()
.equals(other.getTransactionId())) 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) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse 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.proto.service.Rpc.BeginTransactionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse 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.proto.service.Rpc.BeginTransactionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse 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.proto.service.Rpc.BeginTransactionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse 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.proto.service.Rpc.BeginTransactionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse 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.proto.service.Rpc.BeginTransactionResponse 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 BeginTransactionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:BeginTransactionResponse)
cz.o2.proxima.proto.service.Rpc.BeginTransactionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.class, cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.Builder.class);
}
// Construct using cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
transactionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.o2.proxima.proto.service.Rpc.internal_static_BeginTransactionResponse_descriptor;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse getDefaultInstanceForType() {
return cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.getDefaultInstance();
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse build() {
cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse buildPartial() {
cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse result = new cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.transactionId_ = transactionId_;
}
}
@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.proto.service.Rpc.BeginTransactionResponse) {
return mergeFrom((cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse other) {
if (other == cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse.getDefaultInstance()) return this;
if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
bitField0_ |= 0x00000001;
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: {
transactionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object transactionId_ = "";
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return The transactionId.
*/
public java.lang.String getTransactionId() {
java.lang.Object ref = transactionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transactionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return The bytes for transactionId.
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transactionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @param value The transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
transactionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @return This builder for chaining.
*/
public Builder clearTransactionId() {
transactionId_ = getDefaultInstance().getTransactionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** ID associated to the transcation.
*
*
* string transactionId = 1;
* @param value The bytes for transactionId to set.
* @return This builder for chaining.
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
transactionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:BeginTransactionResponse)
}
// @@protoc_insertion_point(class_scope:BeginTransactionResponse)
private static final cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse();
}
public static cz.o2.proxima.proto.service.Rpc.BeginTransactionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BeginTransactionResponse 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.proto.service.Rpc.BeginTransactionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ingest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ingest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Status_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Status_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_IngestBulk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_IngestBulk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_StatusBulk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_StatusBulk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TransactionCommitRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TransactionCommitRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TransactionCommitResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TransactionCommitResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ListRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ListRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ListResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ListResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ListResponse_AttrValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ListResponse_AttrValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_MultifetchRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MultifetchRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_MultifetchResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MultifetchResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_KeyAttribute_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_KeyAttribute_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BeginTransactionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BeginTransactionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_BeginTransactionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_BeginTransactionResponse_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\trpc.proto\"\213\001\n\006Ingest\022\014\n\004uuid\030\001 \001(\t\022\016\n\006" +
"entity\030\002 \001(\t\022\021\n\tattribute\030\003 \001(\t\022\013\n\003key\030\004" +
" \001(\t\022\r\n\005value\030\005 \001(\014\022\r\n\005stamp\030\007 \001(\004\022\016\n\006de" +
"lete\030\006 \001(\010\022\025\n\rtransactionId\030\010 \001(\t\"=\n\006Sta" +
"tus\022\014\n\004uuid\030\001 \001(\t\022\016\n\006status\030\002 \001(\r\022\025\n\rsta" +
"tusMessage\030\003 \001(\t\"%\n\nIngestBulk\022\027\n\006ingest" +
"\030\001 \003(\0132\007.Ingest\"%\n\nStatusBulk\022\027\n\006status\030" +
"\001 \003(\0132\007.Status\"1\n\030TransactionCommitReque" +
"st\022\025\n\rtransactionId\030\001 \001(\t\"\216\001\n\031Transactio" +
"nCommitResponse\0221\n\006status\030\001 \001(\0162!.Transa" +
"ctionCommitResponse.Status\">\n\006Status\022\013\n\007" +
"UNKNOWN\020\000\022\r\n\tCOMMITTED\020\001\022\014\n\010REJECTED\020\002\022\n" +
"\n\006FAILED\020\003\"S\n\nGetRequest\022\016\n\006entity\030\001 \001(\t" +
"\022\013\n\003key\030\002 \001(\t\022\021\n\tattribute\030\003 \001(\t\022\025\n\rtran" +
"sactionId\030\004 \001(\t\"C\n\013GetResponse\022\016\n\006status" +
"\030\001 \001(\r\022\025\n\rstatusMessage\030\002 \001(\t\022\r\n\005value\030\003" +
" \001(\014\"x\n\013ListRequest\022\016\n\006entity\030\001 \001(\t\022\013\n\003k" +
"ey\030\002 \001(\t\022\026\n\016wildcardPrefix\030\003 \001(\t\022\016\n\006offs" +
"et\030\004 \001(\t\022\r\n\005limit\030\005 \001(\r\022\025\n\rtransactionId" +
"\030\006 \001(\t\"\214\001\n\014ListResponse\022\016\n\006status\030\001 \001(\r\022" +
"\025\n\rstatusMessage\030\002 \001(\t\022&\n\005value\030\003 \003(\0132\027." +
"ListResponse.AttrValue\032-\n\tAttrValue\022\021\n\ta" +
"ttribute\030\001 \001(\t\022\r\n\005value\030\002 \001(\014\"n\n\021Multife" +
"tchRequest\022\037\n\ngetRequest\030\001 \003(\0132\013.GetRequ" +
"est\022!\n\013listRequest\030\002 \003(\0132\014.ListRequest\022\025" +
"\n\rtransactionId\030\003 \001(\t\"\\\n\022MultifetchRespo" +
"nse\022!\n\013getResponse\030\001 \003(\0132\014.GetResponse\022#" +
"\n\014listResponse\030\002 \003(\0132\r.ListResponse\">\n\014K" +
"eyAttribute\022\016\n\006entity\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" +
"\022\021\n\tattribute\030\003 \001(\t\"[\n\027BeginTransactionR" +
"equest\022)\n\022attributesInvolved\030\001 \003(\0132\r.Key" +
"Attribute\022\025\n\rtranscationId\030\002 \001(\t\"1\n\030Begi" +
"nTransactionResponse\022\025\n\rtransactionId\030\001 " +
"\001(\t2\276\001\n\rIngestService\022*\n\ningestBulk\022\013.In" +
"gestBulk\032\013.StatusBulk(\0010\001\022$\n\014ingestSingl" +
"e\022\007.Ingest\032\007.Status(\0010\001\022\032\n\006ingest\022\007.Inge" +
"st\032\007.Status\022?\n\006commit\022\031.TransactionCommi" +
"tRequest\032\032.TransactionCommitResponse2\327\001\n" +
"\017RetrieveService\022 \n\003get\022\013.GetRequest\032\014.G" +
"etResponse\022-\n\016listAttributes\022\014.ListReque" +
"st\032\r.ListResponse\0225\n\nmultifetch\022\022.Multif" +
"etchRequest\032\023.MultifetchResponse\022<\n\005begi" +
"n\022\030.BeginTransactionRequest\032\031.BeginTrans" +
"actionResponseB%\n\033cz.o2.proxima.proto.se" +
"rviceZ\006ingestb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_Ingest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Ingest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ingest_descriptor,
new java.lang.String[] { "Uuid", "Entity", "Attribute", "Key", "Value", "Stamp", "Delete", "TransactionId", });
internal_static_Status_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Status_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Status_descriptor,
new java.lang.String[] { "Uuid", "Status", "StatusMessage", });
internal_static_IngestBulk_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_IngestBulk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_IngestBulk_descriptor,
new java.lang.String[] { "Ingest", });
internal_static_StatusBulk_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_StatusBulk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_StatusBulk_descriptor,
new java.lang.String[] { "Status", });
internal_static_TransactionCommitRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_TransactionCommitRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TransactionCommitRequest_descriptor,
new java.lang.String[] { "TransactionId", });
internal_static_TransactionCommitResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_TransactionCommitResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TransactionCommitResponse_descriptor,
new java.lang.String[] { "Status", });
internal_static_GetRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_GetRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetRequest_descriptor,
new java.lang.String[] { "Entity", "Key", "Attribute", "TransactionId", });
internal_static_GetResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_GetResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetResponse_descriptor,
new java.lang.String[] { "Status", "StatusMessage", "Value", });
internal_static_ListRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_ListRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ListRequest_descriptor,
new java.lang.String[] { "Entity", "Key", "WildcardPrefix", "Offset", "Limit", "TransactionId", });
internal_static_ListResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_ListResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ListResponse_descriptor,
new java.lang.String[] { "Status", "StatusMessage", "Value", });
internal_static_ListResponse_AttrValue_descriptor =
internal_static_ListResponse_descriptor.getNestedTypes().get(0);
internal_static_ListResponse_AttrValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ListResponse_AttrValue_descriptor,
new java.lang.String[] { "Attribute", "Value", });
internal_static_MultifetchRequest_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_MultifetchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MultifetchRequest_descriptor,
new java.lang.String[] { "GetRequest", "ListRequest", "TransactionId", });
internal_static_MultifetchResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_MultifetchResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MultifetchResponse_descriptor,
new java.lang.String[] { "GetResponse", "ListResponse", });
internal_static_KeyAttribute_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_KeyAttribute_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_KeyAttribute_descriptor,
new java.lang.String[] { "Entity", "Key", "Attribute", });
internal_static_BeginTransactionRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_BeginTransactionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BeginTransactionRequest_descriptor,
new java.lang.String[] { "AttributesInvolved", "TranscationId", });
internal_static_BeginTransactionResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_BeginTransactionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_BeginTransactionResponse_descriptor,
new java.lang.String[] { "TransactionId", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy