package org.handwerkszeug.riak.transport.protobuf.internal;
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: riakclient.proto
public final class RawProtoBufRiakclient {
private RawProtoBufRiakclient() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface RpbErrorRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes errmsg = 1;
boolean hasErrmsg();
com.google.protobuf.ByteString getErrmsg();
// required uint32 errcode = 2;
boolean hasErrcode();
int getErrcode();
}
public static final class RpbErrorResp extends
com.google.protobuf.GeneratedMessage implements
RpbErrorRespOrBuilder {
// Use RpbErrorResp.newBuilder() to construct.
private RpbErrorResp(Builder builder) {
super(builder);
}
private RpbErrorResp(boolean noInit) {
}
private static final RpbErrorResp defaultInstance;
public static RpbErrorResp getDefaultInstance() {
return defaultInstance;
}
@Override
public RpbErrorResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbErrorResp_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbErrorResp_fieldAccessorTable;
}
private int bitField0_;
// required bytes errmsg = 1;
public static final int ERRMSG_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString errmsg_;
@Override
public boolean hasErrmsg() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getErrmsg() {
return this.errmsg_;
}
// required uint32 errcode = 2;
public static final int ERRCODE_FIELD_NUMBER = 2;
private int errcode_;
@Override
public boolean hasErrcode() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
@Override
public int getErrcode() {
return this.errcode_;
}
private void initFields() {
this.errmsg_ = com.google.protobuf.ByteString.EMPTY;
this.errcode_ = 0;
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasErrmsg()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasErrcode()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.errmsg_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, this.errcode_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.errmsg_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, this.errcode_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbErrorResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbErrorResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
@Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbErrorResp prototype) {
return newBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbErrorRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbErrorResp_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbErrorResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbErrorResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
@Override
public Builder clear() {
super.clear();
this.errmsg_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.errcode_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
@Override
public Builder clone() {
return create().mergeFrom(buildPartial());
}
@Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbErrorResp.getDescriptor();
}
@Override
public RawProtoBufRiakclient.RpbErrorResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbErrorResp.getDefaultInstance();
}
@Override
public RawProtoBufRiakclient.RpbErrorResp build() {
RawProtoBufRiakclient.RpbErrorResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbErrorResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbErrorResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
@Override
public RawProtoBufRiakclient.RpbErrorResp buildPartial() {
RawProtoBufRiakclient.RpbErrorResp result = new RawProtoBufRiakclient.RpbErrorResp(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.errmsg_ = this.errmsg_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.errcode_ = this.errcode_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbErrorResp) {
return mergeFrom((RawProtoBufRiakclient.RpbErrorResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbErrorResp other) {
if (other == RawProtoBufRiakclient.RpbErrorResp.getDefaultInstance()) {
return this;
}
if (other.hasErrmsg()) {
setErrmsg(other.getErrmsg());
}
if (other.hasErrcode()) {
setErrcode(other.getErrcode());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public final boolean isInitialized() {
if (!hasErrmsg()) {
return false;
}
if (!hasErrcode()) {
return false;
}
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.errmsg_ = input.readBytes();
break;
}
case 16: {
this.bitField0_ |= 0x00000002;
this.errcode_ = input.readUInt32();
break;
}
}
}
}
private int bitField0_;
// required bytes errmsg = 1;
private com.google.protobuf.ByteString errmsg_ = com.google.protobuf.ByteString.EMPTY;
@Override
public boolean hasErrmsg() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getErrmsg() {
return this.errmsg_;
}
public Builder setErrmsg(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.errmsg_ = value;
onChanged();
return this;
}
public Builder clearErrmsg() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.errmsg_ = getDefaultInstance().getErrmsg();
onChanged();
return this;
}
// required uint32 errcode = 2;
private int errcode_;
@Override
public boolean hasErrcode() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
@Override
public int getErrcode() {
return this.errcode_;
}
public Builder setErrcode(int value) {
this.bitField0_ |= 0x00000002;
this.errcode_ = value;
onChanged();
return this;
}
public Builder clearErrcode() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.errcode_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbErrorResp)
}
static {
defaultInstance = new RpbErrorResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbErrorResp)
}
public interface RpbGetClientIdRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes client_id = 1;
boolean hasClientId();
com.google.protobuf.ByteString getClientId();
}
public static final class RpbGetClientIdResp extends
com.google.protobuf.GeneratedMessage implements
RpbGetClientIdRespOrBuilder {
// Use RpbGetClientIdResp.newBuilder() to construct.
private RpbGetClientIdResp(Builder builder) {
super(builder);
}
private RpbGetClientIdResp(boolean noInit) {
}
private static final RpbGetClientIdResp defaultInstance;
public static RpbGetClientIdResp getDefaultInstance() {
return defaultInstance;
}
@Override
public RpbGetClientIdResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetClientIdResp_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetClientIdResp_fieldAccessorTable;
}
private int bitField0_;
// required bytes client_id = 1;
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString clientId_;
@Override
public boolean hasClientId() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getClientId() {
return this.clientId_;
}
private void initFields() {
this.clientId_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasClientId()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.clientId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.clientId_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetClientIdResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
@Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbGetClientIdResp prototype) {
return newBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbGetClientIdRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetClientIdResp_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetClientIdResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbGetClientIdResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
@Override
public Builder clear() {
super.clear();
this.clientId_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
@Override
public Builder clone() {
return create().mergeFrom(buildPartial());
}
@Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbGetClientIdResp.getDescriptor();
}
@Override
public RawProtoBufRiakclient.RpbGetClientIdResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbGetClientIdResp.getDefaultInstance();
}
@Override
public RawProtoBufRiakclient.RpbGetClientIdResp build() {
RawProtoBufRiakclient.RpbGetClientIdResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbGetClientIdResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbGetClientIdResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
@Override
public RawProtoBufRiakclient.RpbGetClientIdResp buildPartial() {
RawProtoBufRiakclient.RpbGetClientIdResp result = new RawProtoBufRiakclient.RpbGetClientIdResp(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.clientId_ = this.clientId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbGetClientIdResp) {
return mergeFrom((RawProtoBufRiakclient.RpbGetClientIdResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbGetClientIdResp other) {
if (other == RawProtoBufRiakclient.RpbGetClientIdResp.getDefaultInstance()) {
return this;
}
if (other.hasClientId()) {
setClientId(other.getClientId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public final boolean isInitialized() {
if (!hasClientId()) {
return false;
}
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.clientId_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required bytes client_id = 1;
private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY;
@Override
public boolean hasClientId() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getClientId() {
return this.clientId_;
}
public Builder setClientId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.clientId_ = value;
onChanged();
return this;
}
public Builder clearClientId() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbGetClientIdResp)
}
static {
defaultInstance = new RpbGetClientIdResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbGetClientIdResp)
}
public interface RpbSetClientIdReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes client_id = 1;
boolean hasClientId();
com.google.protobuf.ByteString getClientId();
}
public static final class RpbSetClientIdReq extends
com.google.protobuf.GeneratedMessage implements
RpbSetClientIdReqOrBuilder {
// Use RpbSetClientIdReq.newBuilder() to construct.
private RpbSetClientIdReq(Builder builder) {
super(builder);
}
private RpbSetClientIdReq(boolean noInit) {
}
private static final RpbSetClientIdReq defaultInstance;
public static RpbSetClientIdReq getDefaultInstance() {
return defaultInstance;
}
@Override
public RpbSetClientIdReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbSetClientIdReq_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbSetClientIdReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes client_id = 1;
public static final int CLIENT_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString clientId_;
@Override
public boolean hasClientId() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getClientId() {
return this.clientId_;
}
private void initFields() {
this.clientId_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasClientId()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.clientId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.clientId_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetClientIdReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
@Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbSetClientIdReq prototype) {
return newBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbSetClientIdReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbSetClientIdReq_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbSetClientIdReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbSetClientIdReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
@Override
public Builder clear() {
super.clear();
this.clientId_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
@Override
public Builder clone() {
return create().mergeFrom(buildPartial());
}
@Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbSetClientIdReq.getDescriptor();
}
@Override
public RawProtoBufRiakclient.RpbSetClientIdReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbSetClientIdReq.getDefaultInstance();
}
@Override
public RawProtoBufRiakclient.RpbSetClientIdReq build() {
RawProtoBufRiakclient.RpbSetClientIdReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbSetClientIdReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbSetClientIdReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
@Override
public RawProtoBufRiakclient.RpbSetClientIdReq buildPartial() {
RawProtoBufRiakclient.RpbSetClientIdReq result = new RawProtoBufRiakclient.RpbSetClientIdReq(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.clientId_ = this.clientId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbSetClientIdReq) {
return mergeFrom((RawProtoBufRiakclient.RpbSetClientIdReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbSetClientIdReq other) {
if (other == RawProtoBufRiakclient.RpbSetClientIdReq.getDefaultInstance()) {
return this;
}
if (other.hasClientId()) {
setClientId(other.getClientId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public final boolean isInitialized() {
if (!hasClientId()) {
return false;
}
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.clientId_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required bytes client_id = 1;
private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY;
@Override
public boolean hasClientId() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getClientId() {
return this.clientId_;
}
public Builder setClientId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.clientId_ = value;
onChanged();
return this;
}
public Builder clearClientId() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.clientId_ = getDefaultInstance().getClientId();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbSetClientIdReq)
}
static {
defaultInstance = new RpbSetClientIdReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbSetClientIdReq)
}
public interface RpbGetServerInfoRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// optional bytes node = 1;
boolean hasNode();
com.google.protobuf.ByteString getNode();
// optional bytes server_version = 2;
boolean hasServerVersion();
com.google.protobuf.ByteString getServerVersion();
}
public static final class RpbGetServerInfoResp extends
com.google.protobuf.GeneratedMessage implements
RpbGetServerInfoRespOrBuilder {
// Use RpbGetServerInfoResp.newBuilder() to construct.
private RpbGetServerInfoResp(Builder builder) {
super(builder);
}
private RpbGetServerInfoResp(boolean noInit) {
}
private static final RpbGetServerInfoResp defaultInstance;
public static RpbGetServerInfoResp getDefaultInstance() {
return defaultInstance;
}
@Override
public RpbGetServerInfoResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetServerInfoResp_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetServerInfoResp_fieldAccessorTable;
}
private int bitField0_;
// optional bytes node = 1;
public static final int NODE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString node_;
@Override
public boolean hasNode() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getNode() {
return this.node_;
}
// optional bytes server_version = 2;
public static final int SERVER_VERSION_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString serverVersion_;
@Override
public boolean hasServerVersion() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
@Override
public com.google.protobuf.ByteString getServerVersion() {
return this.serverVersion_;
}
private void initFields() {
this.node_ = com.google.protobuf.ByteString.EMPTY;
this.serverVersion_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
this.memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.node_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.serverVersion_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.node_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.serverVersion_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetServerInfoResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
@Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(
RawProtoBufRiakclient.RpbGetServerInfoResp prototype) {
return newBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbGetServerInfoRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetServerInfoResp_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetServerInfoResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbGetServerInfoResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
@Override
public Builder clear() {
super.clear();
this.node_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.serverVersion_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
@Override
public Builder clone() {
return create().mergeFrom(buildPartial());
}
@Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbGetServerInfoResp.getDescriptor();
}
@Override
public RawProtoBufRiakclient.RpbGetServerInfoResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbGetServerInfoResp.getDefaultInstance();
}
@Override
public RawProtoBufRiakclient.RpbGetServerInfoResp build() {
RawProtoBufRiakclient.RpbGetServerInfoResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbGetServerInfoResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbGetServerInfoResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
@Override
public RawProtoBufRiakclient.RpbGetServerInfoResp buildPartial() {
RawProtoBufRiakclient.RpbGetServerInfoResp result = new RawProtoBufRiakclient.RpbGetServerInfoResp(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.node_ = this.node_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.serverVersion_ = this.serverVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbGetServerInfoResp) {
return mergeFrom((RawProtoBufRiakclient.RpbGetServerInfoResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbGetServerInfoResp other) {
if (other == RawProtoBufRiakclient.RpbGetServerInfoResp
.getDefaultInstance()) {
return this;
}
if (other.hasNode()) {
setNode(other.getNode());
}
if (other.hasServerVersion()) {
setServerVersion(other.getServerVersion());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public final boolean isInitialized() {
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.node_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.serverVersion_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// optional bytes node = 1;
private com.google.protobuf.ByteString node_ = com.google.protobuf.ByteString.EMPTY;
@Override
public boolean hasNode() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getNode() {
return this.node_;
}
public Builder setNode(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.node_ = value;
onChanged();
return this;
}
public Builder clearNode() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.node_ = getDefaultInstance().getNode();
onChanged();
return this;
}
// optional bytes server_version = 2;
private com.google.protobuf.ByteString serverVersion_ = com.google.protobuf.ByteString.EMPTY;
@Override
public boolean hasServerVersion() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
@Override
public com.google.protobuf.ByteString getServerVersion() {
return this.serverVersion_;
}
public Builder setServerVersion(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.serverVersion_ = value;
onChanged();
return this;
}
public Builder clearServerVersion() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.serverVersion_ = getDefaultInstance().getServerVersion();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbGetServerInfoResp)
}
static {
defaultInstance = new RpbGetServerInfoResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbGetServerInfoResp)
}
public interface RpbGetReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
// required bytes key = 2;
boolean hasKey();
com.google.protobuf.ByteString getKey();
// optional uint32 r = 3;
boolean hasR();
int getR();
// optional uint32 pr = 4;
boolean hasPr();
int getPr();
// optional bool basic_quorum = 5;
boolean hasBasicQuorum();
boolean getBasicQuorum();
// optional bool notfound_ok = 6;
boolean hasNotfoundOk();
boolean getNotfoundOk();
}
public static final class RpbGetReq extends
com.google.protobuf.GeneratedMessage implements RpbGetReqOrBuilder {
// Use RpbGetReq.newBuilder() to construct.
private RpbGetReq(Builder builder) {
super(builder);
}
private RpbGetReq(boolean noInit) {
}
private static final RpbGetReq defaultInstance;
public static RpbGetReq getDefaultInstance() {
return defaultInstance;
}
@Override
public RpbGetReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetReq_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
@Override
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
@Override
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
// required bytes key = 2;
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
@Override
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
@Override
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
// optional uint32 r = 3;
public static final int R_FIELD_NUMBER = 3;
private int r_;
@Override
public boolean hasR() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
@Override
public int getR() {
return this.r_;
}
// optional uint32 pr = 4;
public static final int PR_FIELD_NUMBER = 4;
private int pr_;
@Override
public boolean hasPr() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
@Override
public int getPr() {
return this.pr_;
}
// optional bool basic_quorum = 5;
public static final int BASIC_QUORUM_FIELD_NUMBER = 5;
private boolean basicQuorum_;
@Override
public boolean hasBasicQuorum() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
@Override
public boolean getBasicQuorum() {
return this.basicQuorum_;
}
// optional bool notfound_ok = 6;
public static final int NOTFOUND_OK_FIELD_NUMBER = 6;
private boolean notfoundOk_;
@Override
public boolean hasNotfoundOk() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
@Override
public boolean getNotfoundOk() {
return this.notfoundOk_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.r_ = 0;
this.pr_ = 0;
this.basicQuorum_ = false;
this.notfoundOk_ = false;
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasBucket()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasKey()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, this.r_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, this.pr_);
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBool(5, this.basicQuorum_);
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, this.notfoundOk_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, this.r_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, this.pr_);
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(
5, this.basicQuorum_);
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(
6, this.notfoundOk_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
@Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbGetReq prototype) {
return newBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbGetReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetReq_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbGetReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
@Override
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.r_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.pr_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000008);
this.basicQuorum_ = false;
this.bitField0_ = (this.bitField0_ & ~0x00000010);
this.notfoundOk_ = false;
this.bitField0_ = (this.bitField0_ & ~0x00000020);
return this;
}
@Override
public Builder clone() {
return create().mergeFrom(buildPartial());
}
@Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbGetReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbGetReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbGetReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbGetReq build() {
RawProtoBufRiakclient.RpbGetReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbGetReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbGetReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbGetReq buildPartial() {
RawProtoBufRiakclient.RpbGetReq result = new RawProtoBufRiakclient.RpbGetReq(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = this.key_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.r_ = this.r_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.pr_ = this.pr_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.basicQuorum_ = this.basicQuorum_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.notfoundOk_ = this.notfoundOk_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbGetReq) {
return mergeFrom((RawProtoBufRiakclient.RpbGetReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbGetReq other) {
if (other == RawProtoBufRiakclient.RpbGetReq.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasR()) {
setR(other.getR());
}
if (other.hasPr()) {
setPr(other.getPr());
}
if (other.hasBasicQuorum()) {
setBasicQuorum(other.getBasicQuorum());
}
if (other.hasNotfoundOk()) {
setNotfoundOk(other.getNotfoundOk());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBucket()) {
return false;
}
if (!hasKey()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.key_ = input.readBytes();
break;
}
case 24: {
this.bitField0_ |= 0x00000004;
this.r_ = input.readUInt32();
break;
}
case 32: {
this.bitField0_ |= 0x00000008;
this.pr_ = input.readUInt32();
break;
}
case 40: {
this.bitField0_ |= 0x00000010;
this.basicQuorum_ = input.readBool();
break;
}
case 48: {
this.bitField0_ |= 0x00000020;
this.notfoundOk_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// required bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// required bytes key = 2;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.key_ = value;
onChanged();
return this;
}
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
// optional uint32 r = 3;
private int r_;
public boolean hasR() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public int getR() {
return this.r_;
}
public Builder setR(int value) {
this.bitField0_ |= 0x00000004;
this.r_ = value;
onChanged();
return this;
}
public Builder clearR() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.r_ = 0;
onChanged();
return this;
}
// optional uint32 pr = 4;
private int pr_;
public boolean hasPr() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
public int getPr() {
return this.pr_;
}
public Builder setPr(int value) {
this.bitField0_ |= 0x00000008;
this.pr_ = value;
onChanged();
return this;
}
public Builder clearPr() {
this.bitField0_ = (this.bitField0_ & ~0x00000008);
this.pr_ = 0;
onChanged();
return this;
}
// optional bool basic_quorum = 5;
private boolean basicQuorum_;
public boolean hasBasicQuorum() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
public boolean getBasicQuorum() {
return this.basicQuorum_;
}
public Builder setBasicQuorum(boolean value) {
this.bitField0_ |= 0x00000010;
this.basicQuorum_ = value;
onChanged();
return this;
}
public Builder clearBasicQuorum() {
this.bitField0_ = (this.bitField0_ & ~0x00000010);
this.basicQuorum_ = false;
onChanged();
return this;
}
// optional bool notfound_ok = 6;
private boolean notfoundOk_;
public boolean hasNotfoundOk() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
public boolean getNotfoundOk() {
return this.notfoundOk_;
}
public Builder setNotfoundOk(boolean value) {
this.bitField0_ |= 0x00000020;
this.notfoundOk_ = value;
onChanged();
return this;
}
public Builder clearNotfoundOk() {
this.bitField0_ = (this.bitField0_ & ~0x00000020);
this.notfoundOk_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbGetReq)
}
static {
defaultInstance = new RpbGetReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbGetReq)
}
public interface RpbGetRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// repeated .RpbContent content = 1;
java.util.List<RawProtoBufRiakclient.RpbContent> getContentList();
RawProtoBufRiakclient.RpbContent getContent(int index);
int getContentCount();
java.util.List<? extends RawProtoBufRiakclient.RpbContentOrBuilder> getContentOrBuilderList();
RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder(int index);
// optional bytes vclock = 2;
boolean hasVclock();
com.google.protobuf.ByteString getVclock();
}
public static final class RpbGetResp extends
com.google.protobuf.GeneratedMessage implements RpbGetRespOrBuilder {
// Use RpbGetResp.newBuilder() to construct.
private RpbGetResp(Builder builder) {
super(builder);
}
private RpbGetResp(boolean noInit) {
}
private static final RpbGetResp defaultInstance;
public static RpbGetResp getDefaultInstance() {
return defaultInstance;
}
public RpbGetResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetResp_fieldAccessorTable;
}
private int bitField0_;
// repeated .RpbContent content = 1;
public static final int CONTENT_FIELD_NUMBER = 1;
private java.util.List<RawProtoBufRiakclient.RpbContent> content_;
public java.util.List<RawProtoBufRiakclient.RpbContent> getContentList() {
return this.content_;
}
public java.util.List<? extends RawProtoBufRiakclient.RpbContentOrBuilder> getContentOrBuilderList() {
return this.content_;
}
public int getContentCount() {
return this.content_.size();
}
public RawProtoBufRiakclient.RpbContent getContent(int index) {
return this.content_.get(index);
}
public RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder(int index) {
return this.content_.get(index);
}
// optional bytes vclock = 2;
public static final int VCLOCK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString vclock_;
public boolean hasVclock() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getVclock() {
return this.vclock_;
}
private void initFields() {
this.content_ = java.util.Collections.emptyList();
this.vclock_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
for (int i = 0; i < getContentCount(); i++) {
if (!getContent(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < this.content_.size(); i++) {
output.writeMessage(1, this.content_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, this.vclock_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
for (int i = 0; i < this.content_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, this.content_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.vclock_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbGetResp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbGetRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbGetResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (this.contentBuilder_ == null) {
this.content_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
this.contentBuilder_.clear();
}
this.vclock_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbGetResp.getDescriptor();
}
public RawProtoBufRiakclient.RpbGetResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbGetResp.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbGetResp build() {
RawProtoBufRiakclient.RpbGetResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbGetResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbGetResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbGetResp buildPartial() {
RawProtoBufRiakclient.RpbGetResp result = new RawProtoBufRiakclient.RpbGetResp(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (this.contentBuilder_ == null) {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.content_ = java.util.Collections
.unmodifiableList(this.content_);
this.bitField0_ = (this.bitField0_ & ~0x00000001);
}
result.content_ = this.content_;
} else {
result.content_ = this.contentBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.vclock_ = this.vclock_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbGetResp) {
return mergeFrom((RawProtoBufRiakclient.RpbGetResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbGetResp other) {
if (other == RawProtoBufRiakclient.RpbGetResp.getDefaultInstance()) {
return this;
}
if (this.contentBuilder_ == null) {
if (!other.content_.isEmpty()) {
if (this.content_.isEmpty()) {
this.content_ = other.content_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
ensureContentIsMutable();
this.content_.addAll(other.content_);
}
onChanged();
}
} else {
if (!other.content_.isEmpty()) {
if (this.contentBuilder_.isEmpty()) {
this.contentBuilder_.dispose();
this.contentBuilder_ = null;
this.content_ = other.content_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.contentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContentFieldBuilder()
: null;
} else {
this.contentBuilder_.addAllMessages(other.content_);
}
}
}
if (other.hasVclock()) {
setVclock(other.getVclock());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getContentCount(); i++) {
if (!getContent(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
RawProtoBufRiakclient.RpbContent.Builder subBuilder = RawProtoBufRiakclient.RpbContent
.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addContent(subBuilder.buildPartial());
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.vclock_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// repeated .RpbContent content = 1;
private java.util.List<RawProtoBufRiakclient.RpbContent> content_ = java.util.Collections
.emptyList();
private void ensureContentIsMutable() {
if (!((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.content_ = new java.util.ArrayList<RawProtoBufRiakclient.RpbContent>(
this.content_);
this.bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder> contentBuilder_;
public java.util.List<RawProtoBufRiakclient.RpbContent> getContentList() {
if (this.contentBuilder_ == null) {
return java.util.Collections
.unmodifiableList(this.content_);
} else {
return this.contentBuilder_.getMessageList();
}
}
public int getContentCount() {
if (this.contentBuilder_ == null) {
return this.content_.size();
} else {
return this.contentBuilder_.getCount();
}
}
public RawProtoBufRiakclient.RpbContent getContent(int index) {
if (this.contentBuilder_ == null) {
return this.content_.get(index);
} else {
return this.contentBuilder_.getMessage(index);
}
}
public Builder setContent(int index, RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContentIsMutable();
this.content_.set(index, value);
onChanged();
} else {
this.contentBuilder_.setMessage(index, value);
}
return this;
}
public Builder setContent(int index,
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.set(index, builderForValue.build());
onChanged();
} else {
this.contentBuilder_.setMessage(index,
builderForValue.build());
}
return this;
}
public Builder addContent(RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContentIsMutable();
this.content_.add(value);
onChanged();
} else {
this.contentBuilder_.addMessage(value);
}
return this;
}
public Builder addContent(int index, RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContentIsMutable();
this.content_.add(index, value);
onChanged();
} else {
this.contentBuilder_.addMessage(index, value);
}
return this;
}
public Builder addContent(
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.add(builderForValue.build());
onChanged();
} else {
this.contentBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addContent(int index,
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.add(index, builderForValue.build());
onChanged();
} else {
this.contentBuilder_.addMessage(index,
builderForValue.build());
}
return this;
}
public Builder addAllContent(
java.lang.Iterable<? extends RawProtoBufRiakclient.RpbContent> values) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
super.addAll(values, this.content_);
onChanged();
} else {
this.contentBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearContent() {
if (this.contentBuilder_ == null) {
this.content_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
onChanged();
} else {
this.contentBuilder_.clear();
}
return this;
}
public Builder removeContent(int index) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.remove(index);
onChanged();
} else {
this.contentBuilder_.remove(index);
}
return this;
}
public RawProtoBufRiakclient.RpbContent.Builder getContentBuilder(int index) {
return getContentFieldBuilder().getBuilder(index);
}
public RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder(int index) {
if (this.contentBuilder_ == null) {
return this.content_.get(index);
} else {
return this.contentBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends RawProtoBufRiakclient.RpbContentOrBuilder> getContentOrBuilderList() {
if (this.contentBuilder_ != null) {
return this.contentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections
.unmodifiableList(this.content_);
}
}
public RawProtoBufRiakclient.RpbContent.Builder addContentBuilder() {
return getContentFieldBuilder().addBuilder(
RawProtoBufRiakclient.RpbContent.getDefaultInstance());
}
public RawProtoBufRiakclient.RpbContent.Builder addContentBuilder(int index) {
return getContentFieldBuilder().addBuilder(index,
RawProtoBufRiakclient.RpbContent.getDefaultInstance());
}
public java.util.List<RawProtoBufRiakclient.RpbContent.Builder> getContentBuilderList() {
return getContentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder> getContentFieldBuilder() {
if (this.contentBuilder_ == null) {
this.contentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder>(
this.content_,
((this.bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(), isClean());
this.content_ = null;
}
return this.contentBuilder_;
}
// optional bytes vclock = 2;
private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasVclock() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getVclock() {
return this.vclock_;
}
public Builder setVclock(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.vclock_ = value;
onChanged();
return this;
}
public Builder clearVclock() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.vclock_ = getDefaultInstance().getVclock();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbGetResp)
}
static {
defaultInstance = new RpbGetResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbGetResp)
}
public interface RpbPutReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
// optional bytes key = 2;
boolean hasKey();
com.google.protobuf.ByteString getKey();
// optional bytes vclock = 3;
boolean hasVclock();
com.google.protobuf.ByteString getVclock();
// required .RpbContent content = 4;
boolean hasContent();
RawProtoBufRiakclient.RpbContent getContent();
RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder();
// optional uint32 w = 5;
boolean hasW();
int getW();
// optional uint32 dw = 6;
boolean hasDw();
int getDw();
// optional bool return_body = 7;
boolean hasReturnBody();
boolean getReturnBody();
// optional uint32 pw = 8;
boolean hasPw();
int getPw();
}
public static final class RpbPutReq extends
com.google.protobuf.GeneratedMessage implements RpbPutReqOrBuilder {
// Use RpbPutReq.newBuilder() to construct.
private RpbPutReq(Builder builder) {
super(builder);
}
private RpbPutReq(boolean noInit) {
}
private static final RpbPutReq defaultInstance;
public static RpbPutReq getDefaultInstance() {
return defaultInstance;
}
public RpbPutReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbPutReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbPutReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
// optional bytes key = 2;
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
// optional bytes vclock = 3;
public static final int VCLOCK_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString vclock_;
public boolean hasVclock() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getVclock() {
return this.vclock_;
}
// required .RpbContent content = 4;
public static final int CONTENT_FIELD_NUMBER = 4;
private RawProtoBufRiakclient.RpbContent content_;
public boolean hasContent() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
public RawProtoBufRiakclient.RpbContent getContent() {
return this.content_;
}
public RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder() {
return this.content_;
}
// optional uint32 w = 5;
public static final int W_FIELD_NUMBER = 5;
private int w_;
public boolean hasW() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
public int getW() {
return this.w_;
}
// optional uint32 dw = 6;
public static final int DW_FIELD_NUMBER = 6;
private int dw_;
public boolean hasDw() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
public int getDw() {
return this.dw_;
}
// optional bool return_body = 7;
public static final int RETURN_BODY_FIELD_NUMBER = 7;
private boolean returnBody_;
public boolean hasReturnBody() {
return ((this.bitField0_ & 0x00000040) == 0x00000040);
}
public boolean getReturnBody() {
return this.returnBody_;
}
// optional uint32 pw = 8;
public static final int PW_FIELD_NUMBER = 8;
private int pw_;
public boolean hasPw() {
return ((this.bitField0_ & 0x00000080) == 0x00000080);
}
public int getPw() {
return this.pw_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.vclock_ = com.google.protobuf.ByteString.EMPTY;
this.content_ = RawProtoBufRiakclient.RpbContent.getDefaultInstance();
this.w_ = 0;
this.dw_ = 0;
this.returnBody_ = false;
this.pw_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasBucket()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasContent()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!getContent().isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, this.vclock_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, this.content_);
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, this.w_);
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(6, this.dw_);
}
if (((this.bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, this.returnBody_);
}
if (((this.bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(8, this.pw_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
3, this.vclock_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, this.content_);
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, this.w_);
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, this.dw_);
}
if (((this.bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(
7, this.returnBody_);
}
if (((this.bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, this.pw_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbPutReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbPutReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbPutReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbPutReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbPutReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbPutReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.vclock_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
if (this.contentBuilder_ == null) {
this.content_ = RawProtoBufRiakclient.RpbContent.getDefaultInstance();
} else {
this.contentBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000008);
this.w_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000010);
this.dw_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000020);
this.returnBody_ = false;
this.bitField0_ = (this.bitField0_ & ~0x00000040);
this.pw_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbPutReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbPutReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbPutReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbPutReq build() {
RawProtoBufRiakclient.RpbPutReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbPutReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbPutReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbPutReq buildPartial() {
RawProtoBufRiakclient.RpbPutReq result = new RawProtoBufRiakclient.RpbPutReq(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = this.key_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.vclock_ = this.vclock_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (this.contentBuilder_ == null) {
result.content_ = this.content_;
} else {
result.content_ = this.contentBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.w_ = this.w_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.dw_ = this.dw_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.returnBody_ = this.returnBody_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.pw_ = this.pw_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbPutReq) {
return mergeFrom((RawProtoBufRiakclient.RpbPutReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbPutReq other) {
if (other == RawProtoBufRiakclient.RpbPutReq.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasVclock()) {
setVclock(other.getVclock());
}
if (other.hasContent()) {
mergeContent(other.getContent());
}
if (other.hasW()) {
setW(other.getW());
}
if (other.hasDw()) {
setDw(other.getDw());
}
if (other.hasReturnBody()) {
setReturnBody(other.getReturnBody());
}
if (other.hasPw()) {
setPw(other.getPw());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBucket()) {
return false;
}
if (!hasContent()) {
return false;
}
if (!getContent().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.key_ = input.readBytes();
break;
}
case 26: {
this.bitField0_ |= 0x00000004;
this.vclock_ = input.readBytes();
break;
}
case 34: {
RawProtoBufRiakclient.RpbContent.Builder subBuilder = RawProtoBufRiakclient.RpbContent
.newBuilder();
if (hasContent()) {
subBuilder.mergeFrom(getContent());
}
input.readMessage(subBuilder, extensionRegistry);
setContent(subBuilder.buildPartial());
break;
}
case 40: {
this.bitField0_ |= 0x00000010;
this.w_ = input.readUInt32();
break;
}
case 48: {
this.bitField0_ |= 0x00000020;
this.dw_ = input.readUInt32();
break;
}
case 56: {
this.bitField0_ |= 0x00000040;
this.returnBody_ = input.readBool();
break;
}
case 64: {
this.bitField0_ |= 0x00000080;
this.pw_ = input.readUInt32();
break;
}
}
}
}
private int bitField0_;
// required bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// optional bytes key = 2;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.key_ = value;
onChanged();
return this;
}
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
// optional bytes vclock = 3;
private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasVclock() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getVclock() {
return this.vclock_;
}
public Builder setVclock(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.vclock_ = value;
onChanged();
return this;
}
public Builder clearVclock() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.vclock_ = getDefaultInstance().getVclock();
onChanged();
return this;
}
// required .RpbContent content = 4;
private RawProtoBufRiakclient.RpbContent content_ = RawProtoBufRiakclient.RpbContent
.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder> contentBuilder_;
public boolean hasContent() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
public RawProtoBufRiakclient.RpbContent getContent() {
if (this.contentBuilder_ == null) {
return this.content_;
} else {
return this.contentBuilder_.getMessage();
}
}
public Builder setContent(RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.content_ = value;
onChanged();
} else {
this.contentBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000008;
return this;
}
public Builder setContent(
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
this.content_ = builderForValue.build();
onChanged();
} else {
this.contentBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000008;
return this;
}
public Builder mergeContent(RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (((this.bitField0_ & 0x00000008) == 0x00000008)
&& (this.content_ != RawProtoBufRiakclient.RpbContent
.getDefaultInstance())) {
this.content_ = RawProtoBufRiakclient.RpbContent
.newBuilder(this.content_).mergeFrom(value)
.buildPartial();
} else {
this.content_ = value;
}
onChanged();
} else {
this.contentBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000008;
return this;
}
public Builder clearContent() {
if (this.contentBuilder_ == null) {
this.content_ = RawProtoBufRiakclient.RpbContent.getDefaultInstance();
onChanged();
} else {
this.contentBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000008);
return this;
}
public RawProtoBufRiakclient.RpbContent.Builder getContentBuilder() {
this.bitField0_ |= 0x00000008;
onChanged();
return getContentFieldBuilder().getBuilder();
}
public RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder() {
if (this.contentBuilder_ != null) {
return this.contentBuilder_.getMessageOrBuilder();
} else {
return this.content_;
}
}
private com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder> getContentFieldBuilder() {
if (this.contentBuilder_ == null) {
this.contentBuilder_ = new com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder>(
this.content_, getParentForChildren(), isClean());
this.content_ = null;
}
return this.contentBuilder_;
}
// optional uint32 w = 5;
private int w_;
public boolean hasW() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
public int getW() {
return this.w_;
}
public Builder setW(int value) {
this.bitField0_ |= 0x00000010;
this.w_ = value;
onChanged();
return this;
}
public Builder clearW() {
this.bitField0_ = (this.bitField0_ & ~0x00000010);
this.w_ = 0;
onChanged();
return this;
}
// optional uint32 dw = 6;
private int dw_;
public boolean hasDw() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
public int getDw() {
return this.dw_;
}
public Builder setDw(int value) {
this.bitField0_ |= 0x00000020;
this.dw_ = value;
onChanged();
return this;
}
public Builder clearDw() {
this.bitField0_ = (this.bitField0_ & ~0x00000020);
this.dw_ = 0;
onChanged();
return this;
}
// optional bool return_body = 7;
private boolean returnBody_;
public boolean hasReturnBody() {
return ((this.bitField0_ & 0x00000040) == 0x00000040);
}
public boolean getReturnBody() {
return this.returnBody_;
}
public Builder setReturnBody(boolean value) {
this.bitField0_ |= 0x00000040;
this.returnBody_ = value;
onChanged();
return this;
}
public Builder clearReturnBody() {
this.bitField0_ = (this.bitField0_ & ~0x00000040);
this.returnBody_ = false;
onChanged();
return this;
}
// optional uint32 pw = 8;
private int pw_;
public boolean hasPw() {
return ((this.bitField0_ & 0x00000080) == 0x00000080);
}
public int getPw() {
return this.pw_;
}
public Builder setPw(int value) {
this.bitField0_ |= 0x00000080;
this.pw_ = value;
onChanged();
return this;
}
public Builder clearPw() {
this.bitField0_ = (this.bitField0_ & ~0x00000080);
this.pw_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbPutReq)
}
static {
defaultInstance = new RpbPutReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbPutReq)
}
public interface RpbPutRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// repeated .RpbContent content = 1;
java.util.List<RawProtoBufRiakclient.RpbContent> getContentList();
RawProtoBufRiakclient.RpbContent getContent(int index);
int getContentCount();
java.util.List<? extends RawProtoBufRiakclient.RpbContentOrBuilder> getContentOrBuilderList();
RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder(int index);
// optional bytes vclock = 2;
boolean hasVclock();
com.google.protobuf.ByteString getVclock();
// optional bytes key = 3;
boolean hasKey();
com.google.protobuf.ByteString getKey();
}
public static final class RpbPutResp extends
com.google.protobuf.GeneratedMessage implements RpbPutRespOrBuilder {
// Use RpbPutResp.newBuilder() to construct.
private RpbPutResp(Builder builder) {
super(builder);
}
private RpbPutResp(boolean noInit) {
}
private static final RpbPutResp defaultInstance;
public static RpbPutResp getDefaultInstance() {
return defaultInstance;
}
public RpbPutResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbPutResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbPutResp_fieldAccessorTable;
}
private int bitField0_;
// repeated .RpbContent content = 1;
public static final int CONTENT_FIELD_NUMBER = 1;
private java.util.List<RawProtoBufRiakclient.RpbContent> content_;
public java.util.List<RawProtoBufRiakclient.RpbContent> getContentList() {
return this.content_;
}
public java.util.List<? extends RawProtoBufRiakclient.RpbContentOrBuilder> getContentOrBuilderList() {
return this.content_;
}
public int getContentCount() {
return this.content_.size();
}
public RawProtoBufRiakclient.RpbContent getContent(int index) {
return this.content_.get(index);
}
public RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder(int index) {
return this.content_.get(index);
}
// optional bytes vclock = 2;
public static final int VCLOCK_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString vclock_;
public boolean hasVclock() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getVclock() {
return this.vclock_;
}
// optional bytes key = 3;
public static final int KEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString key_;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
private void initFields() {
this.content_ = java.util.Collections.emptyList();
this.vclock_ = com.google.protobuf.ByteString.EMPTY;
this.key_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
for (int i = 0; i < getContentCount(); i++) {
if (!getContent(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < this.content_.size(); i++) {
output.writeMessage(1, this.content_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, this.vclock_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(3, this.key_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
for (int i = 0; i < this.content_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, this.content_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.vclock_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
3, this.key_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbPutResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbPutResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbPutResp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbPutRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbPutResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbPutResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbPutResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (this.contentBuilder_ == null) {
this.content_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
this.contentBuilder_.clear();
}
this.vclock_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbPutResp.getDescriptor();
}
public RawProtoBufRiakclient.RpbPutResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbPutResp.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbPutResp build() {
RawProtoBufRiakclient.RpbPutResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbPutResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbPutResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbPutResp buildPartial() {
RawProtoBufRiakclient.RpbPutResp result = new RawProtoBufRiakclient.RpbPutResp(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (this.contentBuilder_ == null) {
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.content_ = java.util.Collections
.unmodifiableList(this.content_);
this.bitField0_ = (this.bitField0_ & ~0x00000001);
}
result.content_ = this.content_;
} else {
result.content_ = this.contentBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.vclock_ = this.vclock_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = this.key_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbPutResp) {
return mergeFrom((RawProtoBufRiakclient.RpbPutResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbPutResp other) {
if (other == RawProtoBufRiakclient.RpbPutResp.getDefaultInstance()) {
return this;
}
if (this.contentBuilder_ == null) {
if (!other.content_.isEmpty()) {
if (this.content_.isEmpty()) {
this.content_ = other.content_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
ensureContentIsMutable();
this.content_.addAll(other.content_);
}
onChanged();
}
} else {
if (!other.content_.isEmpty()) {
if (this.contentBuilder_.isEmpty()) {
this.contentBuilder_.dispose();
this.contentBuilder_ = null;
this.content_ = other.content_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.contentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContentFieldBuilder()
: null;
} else {
this.contentBuilder_.addAllMessages(other.content_);
}
}
}
if (other.hasVclock()) {
setVclock(other.getVclock());
}
if (other.hasKey()) {
setKey(other.getKey());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getContentCount(); i++) {
if (!getContent(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
RawProtoBufRiakclient.RpbContent.Builder subBuilder = RawProtoBufRiakclient.RpbContent
.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addContent(subBuilder.buildPartial());
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.vclock_ = input.readBytes();
break;
}
case 26: {
this.bitField0_ |= 0x00000004;
this.key_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// repeated .RpbContent content = 1;
private java.util.List<RawProtoBufRiakclient.RpbContent> content_ = java.util.Collections
.emptyList();
private void ensureContentIsMutable() {
if (!((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.content_ = new java.util.ArrayList<RawProtoBufRiakclient.RpbContent>(
this.content_);
this.bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder> contentBuilder_;
public java.util.List<RawProtoBufRiakclient.RpbContent> getContentList() {
if (this.contentBuilder_ == null) {
return java.util.Collections
.unmodifiableList(this.content_);
} else {
return this.contentBuilder_.getMessageList();
}
}
public int getContentCount() {
if (this.contentBuilder_ == null) {
return this.content_.size();
} else {
return this.contentBuilder_.getCount();
}
}
public RawProtoBufRiakclient.RpbContent getContent(int index) {
if (this.contentBuilder_ == null) {
return this.content_.get(index);
} else {
return this.contentBuilder_.getMessage(index);
}
}
public Builder setContent(int index, RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContentIsMutable();
this.content_.set(index, value);
onChanged();
} else {
this.contentBuilder_.setMessage(index, value);
}
return this;
}
public Builder setContent(int index,
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.set(index, builderForValue.build());
onChanged();
} else {
this.contentBuilder_.setMessage(index,
builderForValue.build());
}
return this;
}
public Builder addContent(RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContentIsMutable();
this.content_.add(value);
onChanged();
} else {
this.contentBuilder_.addMessage(value);
}
return this;
}
public Builder addContent(int index, RawProtoBufRiakclient.RpbContent value) {
if (this.contentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContentIsMutable();
this.content_.add(index, value);
onChanged();
} else {
this.contentBuilder_.addMessage(index, value);
}
return this;
}
public Builder addContent(
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.add(builderForValue.build());
onChanged();
} else {
this.contentBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addContent(int index,
RawProtoBufRiakclient.RpbContent.Builder builderForValue) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.add(index, builderForValue.build());
onChanged();
} else {
this.contentBuilder_.addMessage(index,
builderForValue.build());
}
return this;
}
public Builder addAllContent(
java.lang.Iterable<? extends RawProtoBufRiakclient.RpbContent> values) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
super.addAll(values, this.content_);
onChanged();
} else {
this.contentBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearContent() {
if (this.contentBuilder_ == null) {
this.content_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000001);
onChanged();
} else {
this.contentBuilder_.clear();
}
return this;
}
public Builder removeContent(int index) {
if (this.contentBuilder_ == null) {
ensureContentIsMutable();
this.content_.remove(index);
onChanged();
} else {
this.contentBuilder_.remove(index);
}
return this;
}
public RawProtoBufRiakclient.RpbContent.Builder getContentBuilder(int index) {
return getContentFieldBuilder().getBuilder(index);
}
public RawProtoBufRiakclient.RpbContentOrBuilder getContentOrBuilder(int index) {
if (this.contentBuilder_ == null) {
return this.content_.get(index);
} else {
return this.contentBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends RawProtoBufRiakclient.RpbContentOrBuilder> getContentOrBuilderList() {
if (this.contentBuilder_ != null) {
return this.contentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections
.unmodifiableList(this.content_);
}
}
public RawProtoBufRiakclient.RpbContent.Builder addContentBuilder() {
return getContentFieldBuilder().addBuilder(
RawProtoBufRiakclient.RpbContent.getDefaultInstance());
}
public RawProtoBufRiakclient.RpbContent.Builder addContentBuilder(int index) {
return getContentFieldBuilder().addBuilder(index,
RawProtoBufRiakclient.RpbContent.getDefaultInstance());
}
public java.util.List<RawProtoBufRiakclient.RpbContent.Builder> getContentBuilderList() {
return getContentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder> getContentFieldBuilder() {
if (this.contentBuilder_ == null) {
this.contentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbContent, RawProtoBufRiakclient.RpbContent.Builder, RawProtoBufRiakclient.RpbContentOrBuilder>(
this.content_,
((this.bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(), isClean());
this.content_ = null;
}
return this.contentBuilder_;
}
// optional bytes vclock = 2;
private com.google.protobuf.ByteString vclock_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasVclock() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getVclock() {
return this.vclock_;
}
public Builder setVclock(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.vclock_ = value;
onChanged();
return this;
}
public Builder clearVclock() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.vclock_ = getDefaultInstance().getVclock();
onChanged();
return this;
}
// optional bytes key = 3;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.key_ = value;
onChanged();
return this;
}
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbPutResp)
}
static {
defaultInstance = new RpbPutResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbPutResp)
}
public interface RpbDelReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
// required bytes key = 2;
boolean hasKey();
com.google.protobuf.ByteString getKey();
// optional uint32 rw = 3;
boolean hasRw();
int getRw();
}
public static final class RpbDelReq extends
com.google.protobuf.GeneratedMessage implements RpbDelReqOrBuilder {
// Use RpbDelReq.newBuilder() to construct.
private RpbDelReq(Builder builder) {
super(builder);
}
private RpbDelReq(boolean noInit) {
}
private static final RpbDelReq defaultInstance;
public static RpbDelReq getDefaultInstance() {
return defaultInstance;
}
public RpbDelReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbDelReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbDelReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
// required bytes key = 2;
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
// optional uint32 rw = 3;
public static final int RW_FIELD_NUMBER = 3;
private int rw_;
public boolean hasRw() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public int getRw() {
return this.rw_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.rw_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasBucket()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasKey()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, this.rw_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, this.rw_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbDelReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbDelReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbDelReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbDelReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbDelReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbDelReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbDelReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.rw_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbDelReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbDelReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbDelReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbDelReq build() {
RawProtoBufRiakclient.RpbDelReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbDelReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbDelReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbDelReq buildPartial() {
RawProtoBufRiakclient.RpbDelReq result = new RawProtoBufRiakclient.RpbDelReq(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = this.key_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.rw_ = this.rw_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbDelReq) {
return mergeFrom((RawProtoBufRiakclient.RpbDelReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbDelReq other) {
if (other == RawProtoBufRiakclient.RpbDelReq.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasRw()) {
setRw(other.getRw());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBucket()) {
return false;
}
if (!hasKey()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.key_ = input.readBytes();
break;
}
case 24: {
this.bitField0_ |= 0x00000004;
this.rw_ = input.readUInt32();
break;
}
}
}
}
private int bitField0_;
// required bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// required bytes key = 2;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.key_ = value;
onChanged();
return this;
}
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
// optional uint32 rw = 3;
private int rw_;
public boolean hasRw() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public int getRw() {
return this.rw_;
}
public Builder setRw(int value) {
this.bitField0_ |= 0x00000004;
this.rw_ = value;
onChanged();
return this;
}
public Builder clearRw() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.rw_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbDelReq)
}
static {
defaultInstance = new RpbDelReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbDelReq)
}
public interface RpbListBucketsRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// repeated bytes buckets = 1;
java.util.List<com.google.protobuf.ByteString> getBucketsList();
int getBucketsCount();
com.google.protobuf.ByteString getBuckets(int index);
}
public static final class RpbListBucketsResp extends
com.google.protobuf.GeneratedMessage implements
RpbListBucketsRespOrBuilder {
// Use RpbListBucketsResp.newBuilder() to construct.
private RpbListBucketsResp(Builder builder) {
super(builder);
}
private RpbListBucketsResp(boolean noInit) {
}
private static final RpbListBucketsResp defaultInstance;
public static RpbListBucketsResp getDefaultInstance() {
return defaultInstance;
}
public RpbListBucketsResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbListBucketsResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbListBucketsResp_fieldAccessorTable;
}
// repeated bytes buckets = 1;
public static final int BUCKETS_FIELD_NUMBER = 1;
private java.util.List<com.google.protobuf.ByteString> buckets_;
public java.util.List<com.google.protobuf.ByteString> getBucketsList() {
return this.buckets_;
}
public int getBucketsCount() {
return this.buckets_.size();
}
public com.google.protobuf.ByteString getBuckets(int index) {
return this.buckets_.get(index);
}
private void initFields() {
this.buckets_ = java.util.Collections.emptyList();
;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < this.buckets_.size(); i++) {
output.writeBytes(1, this.buckets_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
{
int dataSize = 0;
for (int i = 0; i < this.buckets_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(this.buckets_.get(i));
}
size += dataSize;
size += 1 * getBucketsList().size();
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbListBucketsResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbListBucketsResp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbListBucketsRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbListBucketsResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbListBucketsResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbListBucketsResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.buckets_ = java.util.Collections.emptyList();
;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbListBucketsResp.getDescriptor();
}
public RawProtoBufRiakclient.RpbListBucketsResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbListBucketsResp.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbListBucketsResp build() {
RawProtoBufRiakclient.RpbListBucketsResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbListBucketsResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbListBucketsResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbListBucketsResp buildPartial() {
RawProtoBufRiakclient.RpbListBucketsResp result = new RawProtoBufRiakclient.RpbListBucketsResp(
this);
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.buckets_ = java.util.Collections
.unmodifiableList(this.buckets_);
this.bitField0_ = (this.bitField0_ & ~0x00000001);
}
result.buckets_ = this.buckets_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbListBucketsResp) {
return mergeFrom((RawProtoBufRiakclient.RpbListBucketsResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbListBucketsResp other) {
if (other == RawProtoBufRiakclient.RpbListBucketsResp.getDefaultInstance()) {
return this;
}
if (!other.buckets_.isEmpty()) {
if (this.buckets_.isEmpty()) {
this.buckets_ = other.buckets_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
ensureBucketsIsMutable();
this.buckets_.addAll(other.buckets_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
ensureBucketsIsMutable();
this.buckets_.add(input.readBytes());
break;
}
}
}
}
private int bitField0_;
// repeated bytes buckets = 1;
private java.util.List<com.google.protobuf.ByteString> buckets_ = java.util.Collections
.emptyList();;
private void ensureBucketsIsMutable() {
if (!((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.buckets_ = new java.util.ArrayList<com.google.protobuf.ByteString>(
this.buckets_);
this.bitField0_ |= 0x00000001;
}
}
public java.util.List<com.google.protobuf.ByteString> getBucketsList() {
return java.util.Collections.unmodifiableList(this.buckets_);
}
public int getBucketsCount() {
return this.buckets_.size();
}
public com.google.protobuf.ByteString getBuckets(int index) {
return this.buckets_.get(index);
}
public Builder setBuckets(int index,
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBucketsIsMutable();
this.buckets_.set(index, value);
onChanged();
return this;
}
public Builder addBuckets(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBucketsIsMutable();
this.buckets_.add(value);
onChanged();
return this;
}
public Builder addAllBuckets(
java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
ensureBucketsIsMutable();
super.addAll(values, this.buckets_);
onChanged();
return this;
}
public Builder clearBuckets() {
this.buckets_ = java.util.Collections.emptyList();
;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbListBucketsResp)
}
static {
defaultInstance = new RpbListBucketsResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbListBucketsResp)
}
public interface RpbListKeysReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
}
public static final class RpbListKeysReq extends
com.google.protobuf.GeneratedMessage implements
RpbListKeysReqOrBuilder {
// Use RpbListKeysReq.newBuilder() to construct.
private RpbListKeysReq(Builder builder) {
super(builder);
}
private RpbListKeysReq(boolean noInit) {
}
private static final RpbListKeysReq defaultInstance;
public static RpbListKeysReq getDefaultInstance() {
return defaultInstance;
}
public RpbListKeysReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbListKeysReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbListKeysReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasBucket()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbListKeysReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbListKeysReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbListKeysReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbListKeysReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbListKeysReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbListKeysReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbListKeysReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbListKeysReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbListKeysReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbListKeysReq build() {
RawProtoBufRiakclient.RpbListKeysReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbListKeysReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbListKeysReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbListKeysReq buildPartial() {
RawProtoBufRiakclient.RpbListKeysReq result = new RawProtoBufRiakclient.RpbListKeysReq(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbListKeysReq) {
return mergeFrom((RawProtoBufRiakclient.RpbListKeysReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbListKeysReq other) {
if (other == RawProtoBufRiakclient.RpbListKeysReq.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBucket()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbListKeysReq)
}
static {
defaultInstance = new RpbListKeysReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbListKeysReq)
}
public interface RpbListKeysRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// repeated bytes keys = 1;
java.util.List<com.google.protobuf.ByteString> getKeysList();
int getKeysCount();
com.google.protobuf.ByteString getKeys(int index);
// optional bool done = 2;
boolean hasDone();
boolean getDone();
}
public static final class RpbListKeysResp extends
com.google.protobuf.GeneratedMessage implements
RpbListKeysRespOrBuilder {
// Use RpbListKeysResp.newBuilder() to construct.
private RpbListKeysResp(Builder builder) {
super(builder);
}
private RpbListKeysResp(boolean noInit) {
}
private static final RpbListKeysResp defaultInstance;
public static RpbListKeysResp getDefaultInstance() {
return defaultInstance;
}
public RpbListKeysResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbListKeysResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbListKeysResp_fieldAccessorTable;
}
private int bitField0_;
// repeated bytes keys = 1;
public static final int KEYS_FIELD_NUMBER = 1;
private java.util.List<com.google.protobuf.ByteString> keys_;
public java.util.List<com.google.protobuf.ByteString> getKeysList() {
return this.keys_;
}
public int getKeysCount() {
return this.keys_.size();
}
public com.google.protobuf.ByteString getKeys(int index) {
return this.keys_.get(index);
}
// optional bool done = 2;
public static final int DONE_FIELD_NUMBER = 2;
private boolean done_;
public boolean hasDone() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public boolean getDone() {
return this.done_;
}
private void initFields() {
this.keys_ = java.util.Collections.emptyList();
;
this.done_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < this.keys_.size(); i++) {
output.writeBytes(1, this.keys_.get(i));
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(2, this.done_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
{
int dataSize = 0;
for (int i = 0; i < this.keys_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(this.keys_.get(i));
}
size += dataSize;
size += 1 * getKeysList().size();
}
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(
2, this.done_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbListKeysResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbListKeysResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbListKeysResp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbListKeysRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbListKeysResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbListKeysResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbListKeysResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.keys_ = java.util.Collections.emptyList();
;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.done_ = false;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbListKeysResp.getDescriptor();
}
public RawProtoBufRiakclient.RpbListKeysResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbListKeysResp.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbListKeysResp build() {
RawProtoBufRiakclient.RpbListKeysResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbListKeysResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbListKeysResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbListKeysResp buildPartial() {
RawProtoBufRiakclient.RpbListKeysResp result = new RawProtoBufRiakclient.RpbListKeysResp(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.keys_ = java.util.Collections
.unmodifiableList(this.keys_);
this.bitField0_ = (this.bitField0_ & ~0x00000001);
}
result.keys_ = this.keys_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.done_ = this.done_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbListKeysResp) {
return mergeFrom((RawProtoBufRiakclient.RpbListKeysResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbListKeysResp other) {
if (other == RawProtoBufRiakclient.RpbListKeysResp.getDefaultInstance()) {
return this;
}
if (!other.keys_.isEmpty()) {
if (this.keys_.isEmpty()) {
this.keys_ = other.keys_;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
} else {
ensureKeysIsMutable();
this.keys_.addAll(other.keys_);
}
onChanged();
}
if (other.hasDone()) {
setDone(other.getDone());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
ensureKeysIsMutable();
this.keys_.add(input.readBytes());
break;
}
case 16: {
this.bitField0_ |= 0x00000002;
this.done_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// repeated bytes keys = 1;
private java.util.List<com.google.protobuf.ByteString> keys_ = java.util.Collections
.emptyList();;
private void ensureKeysIsMutable() {
if (!((this.bitField0_ & 0x00000001) == 0x00000001)) {
this.keys_ = new java.util.ArrayList<com.google.protobuf.ByteString>(
this.keys_);
this.bitField0_ |= 0x00000001;
}
}
public java.util.List<com.google.protobuf.ByteString> getKeysList() {
return java.util.Collections.unmodifiableList(this.keys_);
}
public int getKeysCount() {
return this.keys_.size();
}
public com.google.protobuf.ByteString getKeys(int index) {
return this.keys_.get(index);
}
public Builder setKeys(int index,
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
this.keys_.set(index, value);
onChanged();
return this;
}
public Builder addKeys(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
this.keys_.add(value);
onChanged();
return this;
}
public Builder addAllKeys(
java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
ensureKeysIsMutable();
super.addAll(values, this.keys_);
onChanged();
return this;
}
public Builder clearKeys() {
this.keys_ = java.util.Collections.emptyList();
;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional bool done = 2;
private boolean done_;
public boolean hasDone() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getDone() {
return this.done_;
}
public Builder setDone(boolean value) {
this.bitField0_ |= 0x00000002;
this.done_ = value;
onChanged();
return this;
}
public Builder clearDone() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.done_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbListKeysResp)
}
static {
defaultInstance = new RpbListKeysResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbListKeysResp)
}
public interface RpbGetBucketReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
}
public static final class RpbGetBucketReq extends
com.google.protobuf.GeneratedMessage implements
RpbGetBucketReqOrBuilder {
// Use RpbGetBucketReq.newBuilder() to construct.
private RpbGetBucketReq(Builder builder) {
super(builder);
}
private RpbGetBucketReq(boolean noInit) {
}
private static final RpbGetBucketReq defaultInstance;
public static RpbGetBucketReq getDefaultInstance() {
return defaultInstance;
}
public RpbGetBucketReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasBucket()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbGetBucketReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbGetBucketReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbGetBucketReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbGetBucketReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbGetBucketReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbGetBucketReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbGetBucketReq build() {
RawProtoBufRiakclient.RpbGetBucketReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbGetBucketReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbGetBucketReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbGetBucketReq buildPartial() {
RawProtoBufRiakclient.RpbGetBucketReq result = new RawProtoBufRiakclient.RpbGetBucketReq(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbGetBucketReq) {
return mergeFrom((RawProtoBufRiakclient.RpbGetBucketReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbGetBucketReq other) {
if (other == RawProtoBufRiakclient.RpbGetBucketReq.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBucket()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbGetBucketReq)
}
static {
defaultInstance = new RpbGetBucketReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbGetBucketReq)
}
public interface RpbGetBucketRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required .RpbBucketProps props = 1;
boolean hasProps();
RawProtoBufRiakclient.RpbBucketProps getProps();
RawProtoBufRiakclient.RpbBucketPropsOrBuilder getPropsOrBuilder();
}
public static final class RpbGetBucketResp extends
com.google.protobuf.GeneratedMessage implements
RpbGetBucketRespOrBuilder {
// Use RpbGetBucketResp.newBuilder() to construct.
private RpbGetBucketResp(Builder builder) {
super(builder);
}
private RpbGetBucketResp(boolean noInit) {
}
private static final RpbGetBucketResp defaultInstance;
public static RpbGetBucketResp getDefaultInstance() {
return defaultInstance;
}
public RpbGetBucketResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketResp_fieldAccessorTable;
}
private int bitField0_;
// required .RpbBucketProps props = 1;
public static final int PROPS_FIELD_NUMBER = 1;
private RawProtoBufRiakclient.RpbBucketProps props_;
public boolean hasProps() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public RawProtoBufRiakclient.RpbBucketProps getProps() {
return this.props_;
}
public RawProtoBufRiakclient.RpbBucketPropsOrBuilder getPropsOrBuilder() {
return this.props_;
}
private void initFields() {
this.props_ = RawProtoBufRiakclient.RpbBucketProps.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasProps()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, this.props_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, this.props_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbGetBucketResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbGetBucketResp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbGetBucketRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbGetBucketResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbGetBucketResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPropsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (this.propsBuilder_ == null) {
this.props_ = RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance();
} else {
this.propsBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbGetBucketResp.getDescriptor();
}
public RawProtoBufRiakclient.RpbGetBucketResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbGetBucketResp.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbGetBucketResp build() {
RawProtoBufRiakclient.RpbGetBucketResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbGetBucketResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbGetBucketResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbGetBucketResp buildPartial() {
RawProtoBufRiakclient.RpbGetBucketResp result = new RawProtoBufRiakclient.RpbGetBucketResp(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (this.propsBuilder_ == null) {
result.props_ = this.props_;
} else {
result.props_ = this.propsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbGetBucketResp) {
return mergeFrom((RawProtoBufRiakclient.RpbGetBucketResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbGetBucketResp other) {
if (other == RawProtoBufRiakclient.RpbGetBucketResp.getDefaultInstance()) {
return this;
}
if (other.hasProps()) {
mergeProps(other.getProps());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasProps()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
RawProtoBufRiakclient.RpbBucketProps.Builder subBuilder = RawProtoBufRiakclient.RpbBucketProps
.newBuilder();
if (hasProps()) {
subBuilder.mergeFrom(getProps());
}
input.readMessage(subBuilder, extensionRegistry);
setProps(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// required .RpbBucketProps props = 1;
private RawProtoBufRiakclient.RpbBucketProps props_ = RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbBucketProps, RawProtoBufRiakclient.RpbBucketProps.Builder, RawProtoBufRiakclient.RpbBucketPropsOrBuilder> propsBuilder_;
public boolean hasProps() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public RawProtoBufRiakclient.RpbBucketProps getProps() {
if (this.propsBuilder_ == null) {
return this.props_;
} else {
return this.propsBuilder_.getMessage();
}
}
public Builder setProps(RawProtoBufRiakclient.RpbBucketProps value) {
if (this.propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.props_ = value;
onChanged();
} else {
this.propsBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000001;
return this;
}
public Builder setProps(
RawProtoBufRiakclient.RpbBucketProps.Builder builderForValue) {
if (this.propsBuilder_ == null) {
this.props_ = builderForValue.build();
onChanged();
} else {
this.propsBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000001;
return this;
}
public Builder mergeProps(RawProtoBufRiakclient.RpbBucketProps value) {
if (this.propsBuilder_ == null) {
if (((this.bitField0_ & 0x00000001) == 0x00000001)
&& (this.props_ != RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance())) {
this.props_ = RawProtoBufRiakclient.RpbBucketProps
.newBuilder(this.props_).mergeFrom(value)
.buildPartial();
} else {
this.props_ = value;
}
onChanged();
} else {
this.propsBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000001;
return this;
}
public Builder clearProps() {
if (this.propsBuilder_ == null) {
this.props_ = RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance();
onChanged();
} else {
this.propsBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000001);
return this;
}
public RawProtoBufRiakclient.RpbBucketProps.Builder getPropsBuilder() {
this.bitField0_ |= 0x00000001;
onChanged();
return getPropsFieldBuilder().getBuilder();
}
public RawProtoBufRiakclient.RpbBucketPropsOrBuilder getPropsOrBuilder() {
if (this.propsBuilder_ != null) {
return this.propsBuilder_.getMessageOrBuilder();
} else {
return this.props_;
}
}
private com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbBucketProps, RawProtoBufRiakclient.RpbBucketProps.Builder, RawProtoBufRiakclient.RpbBucketPropsOrBuilder> getPropsFieldBuilder() {
if (this.propsBuilder_ == null) {
this.propsBuilder_ = new com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbBucketProps, RawProtoBufRiakclient.RpbBucketProps.Builder, RawProtoBufRiakclient.RpbBucketPropsOrBuilder>(
this.props_, getParentForChildren(), isClean());
this.props_ = null;
}
return this.propsBuilder_;
}
// @@protoc_insertion_point(builder_scope:RpbGetBucketResp)
}
static {
defaultInstance = new RpbGetBucketResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbGetBucketResp)
}
public interface RpbSetBucketReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
// required .RpbBucketProps props = 2;
boolean hasProps();
RawProtoBufRiakclient.RpbBucketProps getProps();
RawProtoBufRiakclient.RpbBucketPropsOrBuilder getPropsOrBuilder();
}
public static final class RpbSetBucketReq extends
com.google.protobuf.GeneratedMessage implements
RpbSetBucketReqOrBuilder {
// Use RpbSetBucketReq.newBuilder() to construct.
private RpbSetBucketReq(Builder builder) {
super(builder);
}
private RpbSetBucketReq(boolean noInit) {
}
private static final RpbSetBucketReq defaultInstance;
public static RpbSetBucketReq getDefaultInstance() {
return defaultInstance;
}
public RpbSetBucketReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbSetBucketReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbSetBucketReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
// required .RpbBucketProps props = 2;
public static final int PROPS_FIELD_NUMBER = 2;
private RawProtoBufRiakclient.RpbBucketProps props_;
public boolean hasProps() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public RawProtoBufRiakclient.RpbBucketProps getProps() {
return this.props_;
}
public RawProtoBufRiakclient.RpbBucketPropsOrBuilder getPropsOrBuilder() {
return this.props_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.props_ = RawProtoBufRiakclient.RpbBucketProps.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasBucket()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasProps()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, this.props_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, this.props_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbSetBucketReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbSetBucketReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbSetBucketReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbSetBucketReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbSetBucketReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbSetBucketReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getPropsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
if (this.propsBuilder_ == null) {
this.props_ = RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance();
} else {
this.propsBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbSetBucketReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbSetBucketReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbSetBucketReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbSetBucketReq build() {
RawProtoBufRiakclient.RpbSetBucketReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbSetBucketReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbSetBucketReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbSetBucketReq buildPartial() {
RawProtoBufRiakclient.RpbSetBucketReq result = new RawProtoBufRiakclient.RpbSetBucketReq(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (this.propsBuilder_ == null) {
result.props_ = this.props_;
} else {
result.props_ = this.propsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbSetBucketReq) {
return mergeFrom((RawProtoBufRiakclient.RpbSetBucketReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbSetBucketReq other) {
if (other == RawProtoBufRiakclient.RpbSetBucketReq.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
if (other.hasProps()) {
mergeProps(other.getProps());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBucket()) {
return false;
}
if (!hasProps()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
case 18: {
RawProtoBufRiakclient.RpbBucketProps.Builder subBuilder = RawProtoBufRiakclient.RpbBucketProps
.newBuilder();
if (hasProps()) {
subBuilder.mergeFrom(getProps());
}
input.readMessage(subBuilder, extensionRegistry);
setProps(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// required bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// required .RpbBucketProps props = 2;
private RawProtoBufRiakclient.RpbBucketProps props_ = RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbBucketProps, RawProtoBufRiakclient.RpbBucketProps.Builder, RawProtoBufRiakclient.RpbBucketPropsOrBuilder> propsBuilder_;
public boolean hasProps() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public RawProtoBufRiakclient.RpbBucketProps getProps() {
if (this.propsBuilder_ == null) {
return this.props_;
} else {
return this.propsBuilder_.getMessage();
}
}
public Builder setProps(RawProtoBufRiakclient.RpbBucketProps value) {
if (this.propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
this.props_ = value;
onChanged();
} else {
this.propsBuilder_.setMessage(value);
}
this.bitField0_ |= 0x00000002;
return this;
}
public Builder setProps(
RawProtoBufRiakclient.RpbBucketProps.Builder builderForValue) {
if (this.propsBuilder_ == null) {
this.props_ = builderForValue.build();
onChanged();
} else {
this.propsBuilder_.setMessage(builderForValue.build());
}
this.bitField0_ |= 0x00000002;
return this;
}
public Builder mergeProps(RawProtoBufRiakclient.RpbBucketProps value) {
if (this.propsBuilder_ == null) {
if (((this.bitField0_ & 0x00000002) == 0x00000002)
&& (this.props_ != RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance())) {
this.props_ = RawProtoBufRiakclient.RpbBucketProps
.newBuilder(this.props_).mergeFrom(value)
.buildPartial();
} else {
this.props_ = value;
}
onChanged();
} else {
this.propsBuilder_.mergeFrom(value);
}
this.bitField0_ |= 0x00000002;
return this;
}
public Builder clearProps() {
if (this.propsBuilder_ == null) {
this.props_ = RawProtoBufRiakclient.RpbBucketProps
.getDefaultInstance();
onChanged();
} else {
this.propsBuilder_.clear();
}
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public RawProtoBufRiakclient.RpbBucketProps.Builder getPropsBuilder() {
this.bitField0_ |= 0x00000002;
onChanged();
return getPropsFieldBuilder().getBuilder();
}
public RawProtoBufRiakclient.RpbBucketPropsOrBuilder getPropsOrBuilder() {
if (this.propsBuilder_ != null) {
return this.propsBuilder_.getMessageOrBuilder();
} else {
return this.props_;
}
}
private com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbBucketProps, RawProtoBufRiakclient.RpbBucketProps.Builder, RawProtoBufRiakclient.RpbBucketPropsOrBuilder> getPropsFieldBuilder() {
if (this.propsBuilder_ == null) {
this.propsBuilder_ = new com.google.protobuf.SingleFieldBuilder<RawProtoBufRiakclient.RpbBucketProps, RawProtoBufRiakclient.RpbBucketProps.Builder, RawProtoBufRiakclient.RpbBucketPropsOrBuilder>(
this.props_, getParentForChildren(), isClean());
this.props_ = null;
}
return this.propsBuilder_;
}
// @@protoc_insertion_point(builder_scope:RpbSetBucketReq)
}
static {
defaultInstance = new RpbSetBucketReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbSetBucketReq)
}
public interface RpbMapRedReqOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes request = 1;
boolean hasRequest();
com.google.protobuf.ByteString getRequest();
// required bytes content_type = 2;
boolean hasContentType();
com.google.protobuf.ByteString getContentType();
}
public static final class RpbMapRedReq extends
com.google.protobuf.GeneratedMessage implements
RpbMapRedReqOrBuilder {
// Use RpbMapRedReq.newBuilder() to construct.
private RpbMapRedReq(Builder builder) {
super(builder);
}
private RpbMapRedReq(boolean noInit) {
}
private static final RpbMapRedReq defaultInstance;
public static RpbMapRedReq getDefaultInstance() {
return defaultInstance;
}
public RpbMapRedReq getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbMapRedReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbMapRedReq_fieldAccessorTable;
}
private int bitField0_;
// required bytes request = 1;
public static final int REQUEST_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString request_;
public boolean hasRequest() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getRequest() {
return this.request_;
}
// required bytes content_type = 2;
public static final int CONTENT_TYPE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contentType_;
public boolean hasContentType() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getContentType() {
return this.contentType_;
}
private void initFields() {
this.request_ = com.google.protobuf.ByteString.EMPTY;
this.contentType_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasRequest()) {
this.memoizedIsInitialized = 0;
return false;
}
if (!hasContentType()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.request_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.contentType_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.request_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.contentType_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbMapRedReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbMapRedReq prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbMapRedReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbMapRedReq_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbMapRedReq_fieldAccessorTable;
}
// Construct using Riakclient.RpbMapRedReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.request_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.contentType_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbMapRedReq.getDescriptor();
}
public RawProtoBufRiakclient.RpbMapRedReq getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbMapRedReq.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbMapRedReq build() {
RawProtoBufRiakclient.RpbMapRedReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbMapRedReq buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbMapRedReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbMapRedReq buildPartial() {
RawProtoBufRiakclient.RpbMapRedReq result = new RawProtoBufRiakclient.RpbMapRedReq(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.request_ = this.request_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.contentType_ = this.contentType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbMapRedReq) {
return mergeFrom((RawProtoBufRiakclient.RpbMapRedReq) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbMapRedReq other) {
if (other == RawProtoBufRiakclient.RpbMapRedReq.getDefaultInstance()) {
return this;
}
if (other.hasRequest()) {
setRequest(other.getRequest());
}
if (other.hasContentType()) {
setContentType(other.getContentType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasRequest()) {
return false;
}
if (!hasContentType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.request_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.contentType_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required bytes request = 1;
private com.google.protobuf.ByteString request_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasRequest() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getRequest() {
return this.request_;
}
public Builder setRequest(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.request_ = value;
onChanged();
return this;
}
public Builder clearRequest() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.request_ = getDefaultInstance().getRequest();
onChanged();
return this;
}
// required bytes content_type = 2;
private com.google.protobuf.ByteString contentType_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasContentType() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getContentType() {
return this.contentType_;
}
public Builder setContentType(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.contentType_ = value;
onChanged();
return this;
}
public Builder clearContentType() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.contentType_ = getDefaultInstance().getContentType();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbMapRedReq)
}
static {
defaultInstance = new RpbMapRedReq(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbMapRedReq)
}
public interface RpbMapRedRespOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// optional uint32 phase = 1;
boolean hasPhase();
int getPhase();
// optional bytes response = 2;
boolean hasResponse();
com.google.protobuf.ByteString getResponse();
// optional bool done = 3;
boolean hasDone();
boolean getDone();
}
public static final class RpbMapRedResp extends
com.google.protobuf.GeneratedMessage implements
RpbMapRedRespOrBuilder {
// Use RpbMapRedResp.newBuilder() to construct.
private RpbMapRedResp(Builder builder) {
super(builder);
}
private RpbMapRedResp(boolean noInit) {
}
private static final RpbMapRedResp defaultInstance;
public static RpbMapRedResp getDefaultInstance() {
return defaultInstance;
}
public RpbMapRedResp getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbMapRedResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbMapRedResp_fieldAccessorTable;
}
private int bitField0_;
// optional uint32 phase = 1;
public static final int PHASE_FIELD_NUMBER = 1;
private int phase_;
public boolean hasPhase() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public int getPhase() {
return this.phase_;
}
// optional bytes response = 2;
public static final int RESPONSE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString response_;
public boolean hasResponse() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getResponse() {
return this.response_;
}
// optional bool done = 3;
public static final int DONE_FIELD_NUMBER = 3;
private boolean done_;
public boolean hasDone() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public boolean getDone() {
return this.done_;
}
private void initFields() {
this.phase_ = 0;
this.response_ = com.google.protobuf.ByteString.EMPTY;
this.done_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, this.phase_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.response_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, this.done_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, this.phase_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.response_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(
3, this.done_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbMapRedResp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbMapRedResp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbMapRedResp prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbMapRedRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbMapRedResp_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbMapRedResp_fieldAccessorTable;
}
// Construct using Riakclient.RpbMapRedResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.phase_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.response_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.done_ = false;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbMapRedResp.getDescriptor();
}
public RawProtoBufRiakclient.RpbMapRedResp getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbMapRedResp.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbMapRedResp build() {
RawProtoBufRiakclient.RpbMapRedResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbMapRedResp buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbMapRedResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbMapRedResp buildPartial() {
RawProtoBufRiakclient.RpbMapRedResp result = new RawProtoBufRiakclient.RpbMapRedResp(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.phase_ = this.phase_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.response_ = this.response_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.done_ = this.done_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbMapRedResp) {
return mergeFrom((RawProtoBufRiakclient.RpbMapRedResp) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbMapRedResp other) {
if (other == RawProtoBufRiakclient.RpbMapRedResp.getDefaultInstance()) {
return this;
}
if (other.hasPhase()) {
setPhase(other.getPhase());
}
if (other.hasResponse()) {
setResponse(other.getResponse());
}
if (other.hasDone()) {
setDone(other.getDone());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 8: {
this.bitField0_ |= 0x00000001;
this.phase_ = input.readUInt32();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.response_ = input.readBytes();
break;
}
case 24: {
this.bitField0_ |= 0x00000004;
this.done_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// optional uint32 phase = 1;
private int phase_;
public boolean hasPhase() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public int getPhase() {
return this.phase_;
}
public Builder setPhase(int value) {
this.bitField0_ |= 0x00000001;
this.phase_ = value;
onChanged();
return this;
}
public Builder clearPhase() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.phase_ = 0;
onChanged();
return this;
}
// optional bytes response = 2;
private com.google.protobuf.ByteString response_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasResponse() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getResponse() {
return this.response_;
}
public Builder setResponse(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.response_ = value;
onChanged();
return this;
}
public Builder clearResponse() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.response_ = getDefaultInstance().getResponse();
onChanged();
return this;
}
// optional bool done = 3;
private boolean done_;
public boolean hasDone() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public boolean getDone() {
return this.done_;
}
public Builder setDone(boolean value) {
this.bitField0_ |= 0x00000004;
this.done_ = value;
onChanged();
return this;
}
public Builder clearDone() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.done_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbMapRedResp)
}
static {
defaultInstance = new RpbMapRedResp(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbMapRedResp)
}
public interface RpbContentOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes value = 1;
boolean hasValue();
com.google.protobuf.ByteString getValue();
// optional bytes content_type = 2;
boolean hasContentType();
com.google.protobuf.ByteString getContentType();
// optional bytes charset = 3;
boolean hasCharset();
com.google.protobuf.ByteString getCharset();
// optional bytes content_encoding = 4;
boolean hasContentEncoding();
com.google.protobuf.ByteString getContentEncoding();
// optional bytes vtag = 5;
boolean hasVtag();
com.google.protobuf.ByteString getVtag();
// repeated .RpbLink links = 6;
java.util.List<RawProtoBufRiakclient.RpbLink> getLinksList();
RawProtoBufRiakclient.RpbLink getLinks(int index);
int getLinksCount();
java.util.List<? extends RawProtoBufRiakclient.RpbLinkOrBuilder> getLinksOrBuilderList();
RawProtoBufRiakclient.RpbLinkOrBuilder getLinksOrBuilder(int index);
// optional uint32 last_mod = 7;
boolean hasLastMod();
int getLastMod();
// optional uint32 last_mod_usecs = 8;
boolean hasLastModUsecs();
int getLastModUsecs();
// repeated .RpbPair usermeta = 9;
java.util.List<RawProtoBufRiakclient.RpbPair> getUsermetaList();
RawProtoBufRiakclient.RpbPair getUsermeta(int index);
int getUsermetaCount();
java.util.List<? extends RawProtoBufRiakclient.RpbPairOrBuilder> getUsermetaOrBuilderList();
RawProtoBufRiakclient.RpbPairOrBuilder getUsermetaOrBuilder(int index);
}
public static final class RpbContent extends
com.google.protobuf.GeneratedMessage implements RpbContentOrBuilder {
// Use RpbContent.newBuilder() to construct.
private RpbContent(Builder builder) {
super(builder);
}
private RpbContent(boolean noInit) {
}
private static final RpbContent defaultInstance;
public static RpbContent getDefaultInstance() {
return defaultInstance;
}
public RpbContent getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbContent_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbContent_fieldAccessorTable;
}
private int bitField0_;
// required bytes value = 1;
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString value_;
public boolean hasValue() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getValue() {
return this.value_;
}
// optional bytes content_type = 2;
public static final int CONTENT_TYPE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString contentType_;
public boolean hasContentType() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getContentType() {
return this.contentType_;
}
// optional bytes charset = 3;
public static final int CHARSET_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString charset_;
public boolean hasCharset() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getCharset() {
return this.charset_;
}
// optional bytes content_encoding = 4;
public static final int CONTENT_ENCODING_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString contentEncoding_;
public boolean hasContentEncoding() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getContentEncoding() {
return this.contentEncoding_;
}
// optional bytes vtag = 5;
public static final int VTAG_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString vtag_;
public boolean hasVtag() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
public com.google.protobuf.ByteString getVtag() {
return this.vtag_;
}
// repeated .RpbLink links = 6;
public static final int LINKS_FIELD_NUMBER = 6;
private java.util.List<RawProtoBufRiakclient.RpbLink> links_;
public java.util.List<RawProtoBufRiakclient.RpbLink> getLinksList() {
return this.links_;
}
public java.util.List<? extends RawProtoBufRiakclient.RpbLinkOrBuilder> getLinksOrBuilderList() {
return this.links_;
}
public int getLinksCount() {
return this.links_.size();
}
public RawProtoBufRiakclient.RpbLink getLinks(int index) {
return this.links_.get(index);
}
public RawProtoBufRiakclient.RpbLinkOrBuilder getLinksOrBuilder(int index) {
return this.links_.get(index);
}
// optional uint32 last_mod = 7;
public static final int LAST_MOD_FIELD_NUMBER = 7;
private int lastMod_;
public boolean hasLastMod() {
return ((this.bitField0_ & 0x00000020) == 0x00000020);
}
public int getLastMod() {
return this.lastMod_;
}
// optional uint32 last_mod_usecs = 8;
public static final int LAST_MOD_USECS_FIELD_NUMBER = 8;
private int lastModUsecs_;
public boolean hasLastModUsecs() {
return ((this.bitField0_ & 0x00000040) == 0x00000040);
}
public int getLastModUsecs() {
return this.lastModUsecs_;
}
// repeated .RpbPair usermeta = 9;
public static final int USERMETA_FIELD_NUMBER = 9;
private java.util.List<RawProtoBufRiakclient.RpbPair> usermeta_;
public java.util.List<RawProtoBufRiakclient.RpbPair> getUsermetaList() {
return this.usermeta_;
}
public java.util.List<? extends RawProtoBufRiakclient.RpbPairOrBuilder> getUsermetaOrBuilderList() {
return this.usermeta_;
}
public int getUsermetaCount() {
return this.usermeta_.size();
}
public RawProtoBufRiakclient.RpbPair getUsermeta(int index) {
return this.usermeta_.get(index);
}
public RawProtoBufRiakclient.RpbPairOrBuilder getUsermetaOrBuilder(int index) {
return this.usermeta_.get(index);
}
private void initFields() {
this.value_ = com.google.protobuf.ByteString.EMPTY;
this.contentType_ = com.google.protobuf.ByteString.EMPTY;
this.charset_ = com.google.protobuf.ByteString.EMPTY;
this.contentEncoding_ = com.google.protobuf.ByteString.EMPTY;
this.vtag_ = com.google.protobuf.ByteString.EMPTY;
this.links_ = java.util.Collections.emptyList();
this.lastMod_ = 0;
this.lastModUsecs_ = 0;
this.usermeta_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasValue()) {
this.memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getUsermetaCount(); i++) {
if (!getUsermeta(i).isInitialized()) {
this.memoizedIsInitialized = 0;
return false;
}
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.value_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.contentType_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, this.charset_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, this.contentEncoding_);
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, this.vtag_);
}
for (int i = 0; i < this.links_.size(); i++) {
output.writeMessage(6, this.links_.get(i));
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(7, this.lastMod_);
}
if (((this.bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(8, this.lastModUsecs_);
}
for (int i = 0; i < this.usermeta_.size(); i++) {
output.writeMessage(9, this.usermeta_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.value_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.contentType_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
3, this.charset_);
}
if (((this.bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
4, this.contentEncoding_);
}
if (((this.bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
5, this.vtag_);
}
for (int i = 0; i < this.links_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, this.links_.get(i));
}
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, this.lastMod_);
}
if (((this.bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, this.lastModUsecs_);
}
for (int i = 0; i < this.usermeta_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, this.usermeta_.get(i));
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbContent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbContent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbContent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbContent prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbContentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbContent_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbContent_fieldAccessorTable;
}
// Construct using Riakclient.RpbContent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getLinksFieldBuilder();
getUsermetaFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.value_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.contentType_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.charset_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.contentEncoding_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000008);
this.vtag_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000010);
if (this.linksBuilder_ == null) {
this.links_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000020);
} else {
this.linksBuilder_.clear();
}
this.lastMod_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000040);
this.lastModUsecs_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000080);
if (this.usermetaBuilder_ == null) {
this.usermeta_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000100);
} else {
this.usermetaBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbContent.getDescriptor();
}
public RawProtoBufRiakclient.RpbContent getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbContent.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbContent build() {
RawProtoBufRiakclient.RpbContent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbContent buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbContent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbContent buildPartial() {
RawProtoBufRiakclient.RpbContent result = new RawProtoBufRiakclient.RpbContent(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = this.value_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.contentType_ = this.contentType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.charset_ = this.charset_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.contentEncoding_ = this.contentEncoding_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.vtag_ = this.vtag_;
if (this.linksBuilder_ == null) {
if (((this.bitField0_ & 0x00000020) == 0x00000020)) {
this.links_ = java.util.Collections
.unmodifiableList(this.links_);
this.bitField0_ = (this.bitField0_ & ~0x00000020);
}
result.links_ = this.links_;
} else {
result.links_ = this.linksBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
result.lastMod_ = this.lastMod_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000040;
}
result.lastModUsecs_ = this.lastModUsecs_;
if (this.usermetaBuilder_ == null) {
if (((this.bitField0_ & 0x00000100) == 0x00000100)) {
this.usermeta_ = java.util.Collections
.unmodifiableList(this.usermeta_);
this.bitField0_ = (this.bitField0_ & ~0x00000100);
}
result.usermeta_ = this.usermeta_;
} else {
result.usermeta_ = this.usermetaBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbContent) {
return mergeFrom((RawProtoBufRiakclient.RpbContent) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbContent other) {
if (other == RawProtoBufRiakclient.RpbContent.getDefaultInstance()) {
return this;
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasContentType()) {
setContentType(other.getContentType());
}
if (other.hasCharset()) {
setCharset(other.getCharset());
}
if (other.hasContentEncoding()) {
setContentEncoding(other.getContentEncoding());
}
if (other.hasVtag()) {
setVtag(other.getVtag());
}
if (this.linksBuilder_ == null) {
if (!other.links_.isEmpty()) {
if (this.links_.isEmpty()) {
this.links_ = other.links_;
this.bitField0_ = (this.bitField0_ & ~0x00000020);
} else {
ensureLinksIsMutable();
this.links_.addAll(other.links_);
}
onChanged();
}
} else {
if (!other.links_.isEmpty()) {
if (this.linksBuilder_.isEmpty()) {
this.linksBuilder_.dispose();
this.linksBuilder_ = null;
this.links_ = other.links_;
this.bitField0_ = (this.bitField0_ & ~0x00000020);
this.linksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLinksFieldBuilder()
: null;
} else {
this.linksBuilder_.addAllMessages(other.links_);
}
}
}
if (other.hasLastMod()) {
setLastMod(other.getLastMod());
}
if (other.hasLastModUsecs()) {
setLastModUsecs(other.getLastModUsecs());
}
if (this.usermetaBuilder_ == null) {
if (!other.usermeta_.isEmpty()) {
if (this.usermeta_.isEmpty()) {
this.usermeta_ = other.usermeta_;
this.bitField0_ = (this.bitField0_ & ~0x00000100);
} else {
ensureUsermetaIsMutable();
this.usermeta_.addAll(other.usermeta_);
}
onChanged();
}
} else {
if (!other.usermeta_.isEmpty()) {
if (this.usermetaBuilder_.isEmpty()) {
this.usermetaBuilder_.dispose();
this.usermetaBuilder_ = null;
this.usermeta_ = other.usermeta_;
this.bitField0_ = (this.bitField0_ & ~0x00000100);
this.usermetaBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUsermetaFieldBuilder()
: null;
} else {
this.usermetaBuilder_
.addAllMessages(other.usermeta_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasValue()) {
return false;
}
for (int i = 0; i < getUsermetaCount(); i++) {
if (!getUsermeta(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.value_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.contentType_ = input.readBytes();
break;
}
case 26: {
this.bitField0_ |= 0x00000004;
this.charset_ = input.readBytes();
break;
}
case 34: {
this.bitField0_ |= 0x00000008;
this.contentEncoding_ = input.readBytes();
break;
}
case 42: {
this.bitField0_ |= 0x00000010;
this.vtag_ = input.readBytes();
break;
}
case 50: {
RawProtoBufRiakclient.RpbLink.Builder subBuilder = RawProtoBufRiakclient.RpbLink
.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addLinks(subBuilder.buildPartial());
break;
}
case 56: {
this.bitField0_ |= 0x00000040;
this.lastMod_ = input.readUInt32();
break;
}
case 64: {
this.bitField0_ |= 0x00000080;
this.lastModUsecs_ = input.readUInt32();
break;
}
case 74: {
RawProtoBufRiakclient.RpbPair.Builder subBuilder = RawProtoBufRiakclient.RpbPair
.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addUsermeta(subBuilder.buildPartial());
break;
}
}
}
}
private int bitField0_;
// required bytes value = 1;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasValue() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getValue() {
return this.value_;
}
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.value_ = value;
onChanged();
return this;
}
public Builder clearValue() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
// optional bytes content_type = 2;
private com.google.protobuf.ByteString contentType_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasContentType() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getContentType() {
return this.contentType_;
}
public Builder setContentType(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.contentType_ = value;
onChanged();
return this;
}
public Builder clearContentType() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.contentType_ = getDefaultInstance().getContentType();
onChanged();
return this;
}
// optional bytes charset = 3;
private com.google.protobuf.ByteString charset_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasCharset() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getCharset() {
return this.charset_;
}
public Builder setCharset(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.charset_ = value;
onChanged();
return this;
}
public Builder clearCharset() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.charset_ = getDefaultInstance().getCharset();
onChanged();
return this;
}
// optional bytes content_encoding = 4;
private com.google.protobuf.ByteString contentEncoding_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasContentEncoding() {
return ((this.bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getContentEncoding() {
return this.contentEncoding_;
}
public Builder setContentEncoding(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000008;
this.contentEncoding_ = value;
onChanged();
return this;
}
public Builder clearContentEncoding() {
this.bitField0_ = (this.bitField0_ & ~0x00000008);
this.contentEncoding_ = getDefaultInstance()
.getContentEncoding();
onChanged();
return this;
}
// optional bytes vtag = 5;
private com.google.protobuf.ByteString vtag_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasVtag() {
return ((this.bitField0_ & 0x00000010) == 0x00000010);
}
public com.google.protobuf.ByteString getVtag() {
return this.vtag_;
}
public Builder setVtag(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000010;
this.vtag_ = value;
onChanged();
return this;
}
public Builder clearVtag() {
this.bitField0_ = (this.bitField0_ & ~0x00000010);
this.vtag_ = getDefaultInstance().getVtag();
onChanged();
return this;
}
// repeated .RpbLink links = 6;
private java.util.List<RawProtoBufRiakclient.RpbLink> links_ = java.util.Collections
.emptyList();
private void ensureLinksIsMutable() {
if (!((this.bitField0_ & 0x00000020) == 0x00000020)) {
this.links_ = new java.util.ArrayList<RawProtoBufRiakclient.RpbLink>(
this.links_);
this.bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbLink, RawProtoBufRiakclient.RpbLink.Builder, RawProtoBufRiakclient.RpbLinkOrBuilder> linksBuilder_;
public java.util.List<RawProtoBufRiakclient.RpbLink> getLinksList() {
if (this.linksBuilder_ == null) {
return java.util.Collections.unmodifiableList(this.links_);
} else {
return this.linksBuilder_.getMessageList();
}
}
public int getLinksCount() {
if (this.linksBuilder_ == null) {
return this.links_.size();
} else {
return this.linksBuilder_.getCount();
}
}
public RawProtoBufRiakclient.RpbLink getLinks(int index) {
if (this.linksBuilder_ == null) {
return this.links_.get(index);
} else {
return this.linksBuilder_.getMessage(index);
}
}
public Builder setLinks(int index, RawProtoBufRiakclient.RpbLink value) {
if (this.linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
this.links_.set(index, value);
onChanged();
} else {
this.linksBuilder_.setMessage(index, value);
}
return this;
}
public Builder setLinks(int index,
RawProtoBufRiakclient.RpbLink.Builder builderForValue) {
if (this.linksBuilder_ == null) {
ensureLinksIsMutable();
this.links_.set(index, builderForValue.build());
onChanged();
} else {
this.linksBuilder_.setMessage(index,
builderForValue.build());
}
return this;
}
public Builder addLinks(RawProtoBufRiakclient.RpbLink value) {
if (this.linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
this.links_.add(value);
onChanged();
} else {
this.linksBuilder_.addMessage(value);
}
return this;
}
public Builder addLinks(int index, RawProtoBufRiakclient.RpbLink value) {
if (this.linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
this.links_.add(index, value);
onChanged();
} else {
this.linksBuilder_.addMessage(index, value);
}
return this;
}
public Builder addLinks(RawProtoBufRiakclient.RpbLink.Builder builderForValue) {
if (this.linksBuilder_ == null) {
ensureLinksIsMutable();
this.links_.add(builderForValue.build());
onChanged();
} else {
this.linksBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addLinks(int index,
RawProtoBufRiakclient.RpbLink.Builder builderForValue) {
if (this.linksBuilder_ == null) {
ensureLinksIsMutable();
this.links_.add(index, builderForValue.build());
onChanged();
} else {
this.linksBuilder_.addMessage(index,
builderForValue.build());
}
return this;
}
public Builder addAllLinks(
java.lang.Iterable<? extends RawProtoBufRiakclient.RpbLink> values) {
if (this.linksBuilder_ == null) {
ensureLinksIsMutable();
super.addAll(values, this.links_);
onChanged();
} else {
this.linksBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearLinks() {
if (this.linksBuilder_ == null) {
this.links_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000020);
onChanged();
} else {
this.linksBuilder_.clear();
}
return this;
}
public Builder removeLinks(int index) {
if (this.linksBuilder_ == null) {
ensureLinksIsMutable();
this.links_.remove(index);
onChanged();
} else {
this.linksBuilder_.remove(index);
}
return this;
}
public RawProtoBufRiakclient.RpbLink.Builder getLinksBuilder(int index) {
return getLinksFieldBuilder().getBuilder(index);
}
public RawProtoBufRiakclient.RpbLinkOrBuilder getLinksOrBuilder(int index) {
if (this.linksBuilder_ == null) {
return this.links_.get(index);
} else {
return this.linksBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends RawProtoBufRiakclient.RpbLinkOrBuilder> getLinksOrBuilderList() {
if (this.linksBuilder_ != null) {
return this.linksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(this.links_);
}
}
public RawProtoBufRiakclient.RpbLink.Builder addLinksBuilder() {
return getLinksFieldBuilder().addBuilder(
RawProtoBufRiakclient.RpbLink.getDefaultInstance());
}
public RawProtoBufRiakclient.RpbLink.Builder addLinksBuilder(int index) {
return getLinksFieldBuilder().addBuilder(index,
RawProtoBufRiakclient.RpbLink.getDefaultInstance());
}
public java.util.List<RawProtoBufRiakclient.RpbLink.Builder> getLinksBuilderList() {
return getLinksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbLink, RawProtoBufRiakclient.RpbLink.Builder, RawProtoBufRiakclient.RpbLinkOrBuilder> getLinksFieldBuilder() {
if (this.linksBuilder_ == null) {
this.linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbLink, RawProtoBufRiakclient.RpbLink.Builder, RawProtoBufRiakclient.RpbLinkOrBuilder>(
this.links_,
((this.bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(), isClean());
this.links_ = null;
}
return this.linksBuilder_;
}
// optional uint32 last_mod = 7;
private int lastMod_;
public boolean hasLastMod() {
return ((this.bitField0_ & 0x00000040) == 0x00000040);
}
public int getLastMod() {
return this.lastMod_;
}
public Builder setLastMod(int value) {
this.bitField0_ |= 0x00000040;
this.lastMod_ = value;
onChanged();
return this;
}
public Builder clearLastMod() {
this.bitField0_ = (this.bitField0_ & ~0x00000040);
this.lastMod_ = 0;
onChanged();
return this;
}
// optional uint32 last_mod_usecs = 8;
private int lastModUsecs_;
public boolean hasLastModUsecs() {
return ((this.bitField0_ & 0x00000080) == 0x00000080);
}
public int getLastModUsecs() {
return this.lastModUsecs_;
}
public Builder setLastModUsecs(int value) {
this.bitField0_ |= 0x00000080;
this.lastModUsecs_ = value;
onChanged();
return this;
}
public Builder clearLastModUsecs() {
this.bitField0_ = (this.bitField0_ & ~0x00000080);
this.lastModUsecs_ = 0;
onChanged();
return this;
}
// repeated .RpbPair usermeta = 9;
private java.util.List<RawProtoBufRiakclient.RpbPair> usermeta_ = java.util.Collections
.emptyList();
private void ensureUsermetaIsMutable() {
if (!((this.bitField0_ & 0x00000100) == 0x00000100)) {
this.usermeta_ = new java.util.ArrayList<RawProtoBufRiakclient.RpbPair>(
this.usermeta_);
this.bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbPair, RawProtoBufRiakclient.RpbPair.Builder, RawProtoBufRiakclient.RpbPairOrBuilder> usermetaBuilder_;
public java.util.List<RawProtoBufRiakclient.RpbPair> getUsermetaList() {
if (this.usermetaBuilder_ == null) {
return java.util.Collections
.unmodifiableList(this.usermeta_);
} else {
return this.usermetaBuilder_.getMessageList();
}
}
public int getUsermetaCount() {
if (this.usermetaBuilder_ == null) {
return this.usermeta_.size();
} else {
return this.usermetaBuilder_.getCount();
}
}
public RawProtoBufRiakclient.RpbPair getUsermeta(int index) {
if (this.usermetaBuilder_ == null) {
return this.usermeta_.get(index);
} else {
return this.usermetaBuilder_.getMessage(index);
}
}
public Builder setUsermeta(int index, RawProtoBufRiakclient.RpbPair value) {
if (this.usermetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsermetaIsMutable();
this.usermeta_.set(index, value);
onChanged();
} else {
this.usermetaBuilder_.setMessage(index, value);
}
return this;
}
public Builder setUsermeta(int index,
RawProtoBufRiakclient.RpbPair.Builder builderForValue) {
if (this.usermetaBuilder_ == null) {
ensureUsermetaIsMutable();
this.usermeta_.set(index, builderForValue.build());
onChanged();
} else {
this.usermetaBuilder_.setMessage(index,
builderForValue.build());
}
return this;
}
public Builder addUsermeta(RawProtoBufRiakclient.RpbPair value) {
if (this.usermetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsermetaIsMutable();
this.usermeta_.add(value);
onChanged();
} else {
this.usermetaBuilder_.addMessage(value);
}
return this;
}
public Builder addUsermeta(int index, RawProtoBufRiakclient.RpbPair value) {
if (this.usermetaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUsermetaIsMutable();
this.usermeta_.add(index, value);
onChanged();
} else {
this.usermetaBuilder_.addMessage(index, value);
}
return this;
}
public Builder addUsermeta(
RawProtoBufRiakclient.RpbPair.Builder builderForValue) {
if (this.usermetaBuilder_ == null) {
ensureUsermetaIsMutable();
this.usermeta_.add(builderForValue.build());
onChanged();
} else {
this.usermetaBuilder_.addMessage(builderForValue.build());
}
return this;
}
public Builder addUsermeta(int index,
RawProtoBufRiakclient.RpbPair.Builder builderForValue) {
if (this.usermetaBuilder_ == null) {
ensureUsermetaIsMutable();
this.usermeta_.add(index, builderForValue.build());
onChanged();
} else {
this.usermetaBuilder_.addMessage(index,
builderForValue.build());
}
return this;
}
public Builder addAllUsermeta(
java.lang.Iterable<? extends RawProtoBufRiakclient.RpbPair> values) {
if (this.usermetaBuilder_ == null) {
ensureUsermetaIsMutable();
super.addAll(values, this.usermeta_);
onChanged();
} else {
this.usermetaBuilder_.addAllMessages(values);
}
return this;
}
public Builder clearUsermeta() {
if (this.usermetaBuilder_ == null) {
this.usermeta_ = java.util.Collections.emptyList();
this.bitField0_ = (this.bitField0_ & ~0x00000100);
onChanged();
} else {
this.usermetaBuilder_.clear();
}
return this;
}
public Builder removeUsermeta(int index) {
if (this.usermetaBuilder_ == null) {
ensureUsermetaIsMutable();
this.usermeta_.remove(index);
onChanged();
} else {
this.usermetaBuilder_.remove(index);
}
return this;
}
public RawProtoBufRiakclient.RpbPair.Builder getUsermetaBuilder(int index) {
return getUsermetaFieldBuilder().getBuilder(index);
}
public RawProtoBufRiakclient.RpbPairOrBuilder getUsermetaOrBuilder(int index) {
if (this.usermetaBuilder_ == null) {
return this.usermeta_.get(index);
} else {
return this.usermetaBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List<? extends RawProtoBufRiakclient.RpbPairOrBuilder> getUsermetaOrBuilderList() {
if (this.usermetaBuilder_ != null) {
return this.usermetaBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections
.unmodifiableList(this.usermeta_);
}
}
public RawProtoBufRiakclient.RpbPair.Builder addUsermetaBuilder() {
return getUsermetaFieldBuilder().addBuilder(
RawProtoBufRiakclient.RpbPair.getDefaultInstance());
}
public RawProtoBufRiakclient.RpbPair.Builder addUsermetaBuilder(int index) {
return getUsermetaFieldBuilder().addBuilder(index,
RawProtoBufRiakclient.RpbPair.getDefaultInstance());
}
public java.util.List<RawProtoBufRiakclient.RpbPair.Builder> getUsermetaBuilderList() {
return getUsermetaFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbPair, RawProtoBufRiakclient.RpbPair.Builder, RawProtoBufRiakclient.RpbPairOrBuilder> getUsermetaFieldBuilder() {
if (this.usermetaBuilder_ == null) {
this.usermetaBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<RawProtoBufRiakclient.RpbPair, RawProtoBufRiakclient.RpbPair.Builder, RawProtoBufRiakclient.RpbPairOrBuilder>(
this.usermeta_,
((this.bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(), isClean());
this.usermeta_ = null;
}
return this.usermetaBuilder_;
}
// @@protoc_insertion_point(builder_scope:RpbContent)
}
static {
defaultInstance = new RpbContent(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbContent)
}
public interface RpbPairOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// required bytes key = 1;
boolean hasKey();
com.google.protobuf.ByteString getKey();
// optional bytes value = 2;
boolean hasValue();
com.google.protobuf.ByteString getValue();
}
public static final class RpbPair extends
com.google.protobuf.GeneratedMessage implements RpbPairOrBuilder {
// Use RpbPair.newBuilder() to construct.
private RpbPair(Builder builder) {
super(builder);
}
private RpbPair(boolean noInit) {
}
private static final RpbPair defaultInstance;
public static RpbPair getDefaultInstance() {
return defaultInstance;
}
public RpbPair getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbPair_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbPair_fieldAccessorTable;
}
private int bitField0_;
// required bytes key = 1;
public static final int KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString key_;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
// optional bytes value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString value_;
public boolean hasValue() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getValue() {
return this.value_;
}
private void initFields() {
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.value_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
if (!hasKey()) {
this.memoizedIsInitialized = 0;
return false;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.key_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.value_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.key_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.value_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbPair parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbPair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbPair parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbPair prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbPairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbPair_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbPair_fieldAccessorTable;
}
// Construct using Riakclient.RpbPair.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.value_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbPair.getDescriptor();
}
public RawProtoBufRiakclient.RpbPair getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbPair.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbPair build() {
RawProtoBufRiakclient.RpbPair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbPair buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbPair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbPair buildPartial() {
RawProtoBufRiakclient.RpbPair result = new RawProtoBufRiakclient.RpbPair(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = this.key_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = this.value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbPair) {
return mergeFrom((RawProtoBufRiakclient.RpbPair) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbPair other) {
if (other == RawProtoBufRiakclient.RpbPair.getDefaultInstance()) {
return this;
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.key_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.value_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// required bytes key = 1;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.key_ = value;
onChanged();
return this;
}
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
// optional bytes value = 2;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasValue() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getValue() {
return this.value_;
}
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.value_ = value;
onChanged();
return this;
}
public Builder clearValue() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbPair)
}
static {
defaultInstance = new RpbPair(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbPair)
}
public interface RpbLinkOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// optional bytes bucket = 1;
boolean hasBucket();
com.google.protobuf.ByteString getBucket();
// optional bytes key = 2;
boolean hasKey();
com.google.protobuf.ByteString getKey();
// optional bytes tag = 3;
boolean hasTag();
com.google.protobuf.ByteString getTag();
}
public static final class RpbLink extends
com.google.protobuf.GeneratedMessage implements RpbLinkOrBuilder {
// Use RpbLink.newBuilder() to construct.
private RpbLink(Builder builder) {
super(builder);
}
private RpbLink(boolean noInit) {
}
private static final RpbLink defaultInstance;
public static RpbLink getDefaultInstance() {
return defaultInstance;
}
public RpbLink getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbLink_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbLink_fieldAccessorTable;
}
private int bitField0_;
// optional bytes bucket = 1;
public static final int BUCKET_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bucket_;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
// optional bytes key = 2;
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
// optional bytes tag = 3;
public static final int TAG_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString tag_;
public boolean hasTag() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getTag() {
return this.tag_;
}
private void initFields() {
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.tag_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, this.tag_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
1, this.bucket_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
2, this.key_);
}
if (((this.bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(
3, this.tag_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbLink parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbLink parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbLink parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbLink prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbLinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbLink_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbLink_fieldAccessorTable;
}
// Construct using Riakclient.RpbLink.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.bucket_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.key_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.tag_ = com.google.protobuf.ByteString.EMPTY;
this.bitField0_ = (this.bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbLink.getDescriptor();
}
public RawProtoBufRiakclient.RpbLink getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbLink.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbLink build() {
RawProtoBufRiakclient.RpbLink result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbLink buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbLink result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbLink buildPartial() {
RawProtoBufRiakclient.RpbLink result = new RawProtoBufRiakclient.RpbLink(this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.bucket_ = this.bucket_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.key_ = this.key_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.tag_ = this.tag_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbLink) {
return mergeFrom((RawProtoBufRiakclient.RpbLink) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbLink other) {
if (other == RawProtoBufRiakclient.RpbLink.getDefaultInstance()) {
return this;
}
if (other.hasBucket()) {
setBucket(other.getBucket());
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasTag()) {
setTag(other.getTag());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
this.bitField0_ |= 0x00000001;
this.bucket_ = input.readBytes();
break;
}
case 18: {
this.bitField0_ |= 0x00000002;
this.key_ = input.readBytes();
break;
}
case 26: {
this.bitField0_ |= 0x00000004;
this.tag_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// optional bytes bucket = 1;
private com.google.protobuf.ByteString bucket_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasBucket() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getBucket() {
return this.bucket_;
}
public Builder setBucket(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000001;
this.bucket_ = value;
onChanged();
return this;
}
public Builder clearBucket() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
// optional bytes key = 2;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getKey() {
return this.key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000002;
this.key_ = value;
onChanged();
return this;
}
public Builder clearKey() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
// optional bytes tag = 3;
private com.google.protobuf.ByteString tag_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasTag() {
return ((this.bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getTag() {
return this.tag_;
}
public Builder setTag(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
this.bitField0_ |= 0x00000004;
this.tag_ = value;
onChanged();
return this;
}
public Builder clearTag() {
this.bitField0_ = (this.bitField0_ & ~0x00000004);
this.tag_ = getDefaultInstance().getTag();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbLink)
}
static {
defaultInstance = new RpbLink(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbLink)
}
public interface RpbBucketPropsOrBuilder extends
com.google.protobuf.MessageOrBuilder {
// optional uint32 n_val = 1;
boolean hasNVal();
int getNVal();
// optional bool allow_mult = 2;
boolean hasAllowMult();
boolean getAllowMult();
}
public static final class RpbBucketProps extends
com.google.protobuf.GeneratedMessage implements
RpbBucketPropsOrBuilder {
// Use RpbBucketProps.newBuilder() to construct.
private RpbBucketProps(Builder builder) {
super(builder);
}
private RpbBucketProps(boolean noInit) {
}
private static final RpbBucketProps defaultInstance;
public static RpbBucketProps getDefaultInstance() {
return defaultInstance;
}
public RpbBucketProps getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbBucketProps_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbBucketProps_fieldAccessorTable;
}
private int bitField0_;
// optional uint32 n_val = 1;
public static final int N_VAL_FIELD_NUMBER = 1;
private int nVal_;
public boolean hasNVal() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public int getNVal() {
return this.nVal_;
}
// optional bool allow_mult = 2;
public static final int ALLOW_MULT_FIELD_NUMBER = 2;
private boolean allowMult_;
public boolean hasAllowMult() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getAllowMult() {
return this.allowMult_;
}
private void initFields() {
this.nVal_ = 0;
this.allowMult_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = this.memoizedIsInitialized;
if (isInitialized != -1) {
return isInitialized == 1;
}
this.memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, this.nVal_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, this.allowMult_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = this.memoizedSerializedSize;
if (size != -1) {
return size;
}
size = 0;
if (((this.bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, this.nVal_);
}
if (((this.bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(
2, this.allowMult_);
}
size += getUnknownFields().getSerializedSize();
this.memoizedSerializedSize = size;
return size;
}
@java.lang.Override
protected Object writeReplace() throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(
java.io.InputStream input) throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbBucketProps parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static RawProtoBufRiakclient.RpbBucketProps parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder(RawProtoBufRiakclient.RpbBucketProps prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return newBuilder(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
RawProtoBufRiakclient.RpbBucketPropsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return RawProtoBufRiakclient.internal_static_RpbBucketProps_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return RawProtoBufRiakclient.internal_static_RpbBucketProps_fieldAccessorTable;
}
// Construct using Riakclient.RpbBucketProps.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
this.nVal_ = 0;
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.allowMult_ = false;
this.bitField0_ = (this.bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return RawProtoBufRiakclient.RpbBucketProps.getDescriptor();
}
public RawProtoBufRiakclient.RpbBucketProps getDefaultInstanceForType() {
return RawProtoBufRiakclient.RpbBucketProps.getDefaultInstance();
}
public RawProtoBufRiakclient.RpbBucketProps build() {
RawProtoBufRiakclient.RpbBucketProps result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
private RawProtoBufRiakclient.RpbBucketProps buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
RawProtoBufRiakclient.RpbBucketProps result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result)
.asInvalidProtocolBufferException();
}
return result;
}
public RawProtoBufRiakclient.RpbBucketProps buildPartial() {
RawProtoBufRiakclient.RpbBucketProps result = new RawProtoBufRiakclient.RpbBucketProps(
this);
int from_bitField0_ = this.bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.nVal_ = this.nVal_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.allowMult_ = this.allowMult_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof RawProtoBufRiakclient.RpbBucketProps) {
return mergeFrom((RawProtoBufRiakclient.RpbBucketProps) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(RawProtoBufRiakclient.RpbBucketProps other) {
if (other == RawProtoBufRiakclient.RpbBucketProps.getDefaultInstance()) {
return this;
}
if (other.hasNVal()) {
setNVal(other.getNVal());
}
if (other.hasAllowMult()) {
setAllowMult(other.getAllowMult());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 8: {
this.bitField0_ |= 0x00000001;
this.nVal_ = input.readUInt32();
break;
}
case 16: {
this.bitField0_ |= 0x00000002;
this.allowMult_ = input.readBool();
break;
}
}
}
}
private int bitField0_;
// optional uint32 n_val = 1;
private int nVal_;
public boolean hasNVal() {
return ((this.bitField0_ & 0x00000001) == 0x00000001);
}
public int getNVal() {
return this.nVal_;
}
public Builder setNVal(int value) {
this.bitField0_ |= 0x00000001;
this.nVal_ = value;
onChanged();
return this;
}
public Builder clearNVal() {
this.bitField0_ = (this.bitField0_ & ~0x00000001);
this.nVal_ = 0;
onChanged();
return this;
}
// optional bool allow_mult = 2;
private boolean allowMult_;
public boolean hasAllowMult() {
return ((this.bitField0_ & 0x00000002) == 0x00000002);
}
public boolean getAllowMult() {
return this.allowMult_;
}
public Builder setAllowMult(boolean value) {
this.bitField0_ |= 0x00000002;
this.allowMult_ = value;
onChanged();
return this;
}
public Builder clearAllowMult() {
this.bitField0_ = (this.bitField0_ & ~0x00000002);
this.allowMult_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RpbBucketProps)
}
static {
defaultInstance = new RpbBucketProps(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:RpbBucketProps)
}
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbErrorResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbErrorResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetClientIdResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetClientIdResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbSetClientIdReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbSetClientIdReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetServerInfoResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetServerInfoResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbPutReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbPutReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbPutResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbPutResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbDelReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbDelReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbListBucketsResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListBucketsResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbListKeysReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListKeysReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbListKeysResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbListKeysResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetBucketReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetBucketReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbGetBucketResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbGetBucketResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbSetBucketReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbSetBucketReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbMapRedReq_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbMapRedReq_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbMapRedResp_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbMapRedResp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbContent_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbContent_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbPair_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbPair_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbLink_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbLink_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor internal_static_RpbBucketProps_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RpbBucketProps_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\020riakclient.proto\"/\n\014RpbErrorResp\022\016\n\006er"
+ "rmsg\030\001 \002(\014\022\017\n\007errcode\030\002 \002(\r\"\'\n\022RpbGetCli"
+ "entIdResp\022\021\n\tclient_id\030\001 \002(\014\"&\n\021RpbSetCl"
+ "ientIdReq\022\021\n\tclient_id\030\001 \002(\014\"<\n\024RpbGetSe"
+ "rverInfoResp\022\014\n\004node\030\001 \001(\014\022\026\n\016server_ver"
+ "sion\030\002 \001(\014\"j\n\tRpbGetReq\022\016\n\006bucket\030\001 \002(\014\022"
+ "\013\n\003key\030\002 \002(\014\022\t\n\001r\030\003 \001(\r\022\n\n\002pr\030\004 \001(\r\022\024\n\014b"
+ "asic_quorum\030\005 \001(\010\022\023\n\013notfound_ok\030\006 \001(\010\":"
+ "\n\nRpbGetResp\022\034\n\007content\030\001 \003(\0132\013.RpbConte"
+ "nt\022\016\n\006vclock\030\002 \001(\014\"\216\001\n\tRpbPutReq\022\016\n\006buck",
"et\030\001 \002(\014\022\013\n\003key\030\002 \001(\014\022\016\n\006vclock\030\003 \001(\014\022\034\n"
+ "\007content\030\004 \002(\0132\013.RpbContent\022\t\n\001w\030\005 \001(\r\022\n"
+ "\n\002dw\030\006 \001(\r\022\023\n\013return_body\030\007 \001(\010\022\n\n\002pw\030\010 "
+ "\001(\r\"G\n\nRpbPutResp\022\034\n\007content\030\001 \003(\0132\013.Rpb"
+ "Content\022\016\n\006vclock\030\002 \001(\014\022\013\n\003key\030\003 \001(\014\"4\n\t"
+ "RpbDelReq\022\016\n\006bucket\030\001 \002(\014\022\013\n\003key\030\002 \002(\014\022\n"
+ "\n\002rw\030\003 \001(\r\"%\n\022RpbListBucketsResp\022\017\n\007buck"
+ "ets\030\001 \003(\014\" \n\016RpbListKeysReq\022\016\n\006bucket\030\001 "
+ "\002(\014\"-\n\017RpbListKeysResp\022\014\n\004keys\030\001 \003(\014\022\014\n\004"
+ "done\030\002 \001(\010\"!\n\017RpbGetBucketReq\022\016\n\006bucket\030",
"\001 \002(\014\"2\n\020RpbGetBucketResp\022\036\n\005props\030\001 \002(\013"
+ "2\017.RpbBucketProps\"A\n\017RpbSetBucketReq\022\016\n\006"
+ "bucket\030\001 \002(\014\022\036\n\005props\030\002 \002(\0132\017.RpbBucketP"
+ "rops\"5\n\014RpbMapRedReq\022\017\n\007request\030\001 \002(\014\022\024\n"
+ "\014content_type\030\002 \002(\014\">\n\rRpbMapRedResp\022\r\n\005"
+ "phase\030\001 \001(\r\022\020\n\010response\030\002 \001(\014\022\014\n\004done\030\003 "
+ "\001(\010\"\311\001\n\nRpbContent\022\r\n\005value\030\001 \002(\014\022\024\n\014con"
+ "tent_type\030\002 \001(\014\022\017\n\007charset\030\003 \001(\014\022\030\n\020cont"
+ "ent_encoding\030\004 \001(\014\022\014\n\004vtag\030\005 \001(\014\022\027\n\005link"
+ "s\030\006 \003(\0132\010.RpbLink\022\020\n\010last_mod\030\007 \001(\r\022\026\n\016l",
"ast_mod_usecs\030\010 \001(\r\022\032\n\010usermeta\030\t \003(\0132\010."
+ "RpbPair\"%\n\007RpbPair\022\013\n\003key\030\001 \002(\014\022\r\n\005value"
+ "\030\002 \001(\014\"3\n\007RpbLink\022\016\n\006bucket\030\001 \001(\014\022\013\n\003key"
+ "\030\002 \001(\014\022\013\n\003tag\030\003 \001(\014\"3\n\016RpbBucketProps\022\r\n"
+ "\005n_val\030\001 \001(\r\022\022\n\nallow_mult\030\002 \001(\010" };
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@Override
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_RpbErrorResp_descriptor = getDescriptor()
.getMessageTypes().get(0);
internal_static_RpbErrorResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbErrorResp_descriptor,
new java.lang.String[] { "Errmsg", "Errcode", },
RawProtoBufRiakclient.RpbErrorResp.class,
RawProtoBufRiakclient.RpbErrorResp.Builder.class);
internal_static_RpbGetClientIdResp_descriptor = getDescriptor()
.getMessageTypes().get(1);
internal_static_RpbGetClientIdResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbGetClientIdResp_descriptor,
new java.lang.String[] { "ClientId", },
RawProtoBufRiakclient.RpbGetClientIdResp.class,
RawProtoBufRiakclient.RpbGetClientIdResp.Builder.class);
internal_static_RpbSetClientIdReq_descriptor = getDescriptor()
.getMessageTypes().get(2);
internal_static_RpbSetClientIdReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbSetClientIdReq_descriptor,
new java.lang.String[] { "ClientId", },
RawProtoBufRiakclient.RpbSetClientIdReq.class,
RawProtoBufRiakclient.RpbSetClientIdReq.Builder.class);
internal_static_RpbGetServerInfoResp_descriptor = getDescriptor()
.getMessageTypes().get(3);
internal_static_RpbGetServerInfoResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbGetServerInfoResp_descriptor,
new java.lang.String[] { "Node", "ServerVersion", },
RawProtoBufRiakclient.RpbGetServerInfoResp.class,
RawProtoBufRiakclient.RpbGetServerInfoResp.Builder.class);
internal_static_RpbGetReq_descriptor = getDescriptor()
.getMessageTypes().get(4);
internal_static_RpbGetReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbGetReq_descriptor,
new java.lang.String[] { "Bucket", "Key", "R", "Pr",
"BasicQuorum", "NotfoundOk", },
RawProtoBufRiakclient.RpbGetReq.class,
RawProtoBufRiakclient.RpbGetReq.Builder.class);
internal_static_RpbGetResp_descriptor = getDescriptor()
.getMessageTypes().get(5);
internal_static_RpbGetResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbGetResp_descriptor,
new java.lang.String[] { "Content", "Vclock", },
RawProtoBufRiakclient.RpbGetResp.class,
RawProtoBufRiakclient.RpbGetResp.Builder.class);
internal_static_RpbPutReq_descriptor = getDescriptor()
.getMessageTypes().get(6);
internal_static_RpbPutReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbPutReq_descriptor,
new java.lang.String[] { "Bucket", "Key", "Vclock",
"Content", "W", "Dw", "ReturnBody", "Pw", },
RawProtoBufRiakclient.RpbPutReq.class,
RawProtoBufRiakclient.RpbPutReq.Builder.class);
internal_static_RpbPutResp_descriptor = getDescriptor()
.getMessageTypes().get(7);
internal_static_RpbPutResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbPutResp_descriptor,
new java.lang.String[] { "Content", "Vclock", "Key", },
RawProtoBufRiakclient.RpbPutResp.class,
RawProtoBufRiakclient.RpbPutResp.Builder.class);
internal_static_RpbDelReq_descriptor = getDescriptor()
.getMessageTypes().get(8);
internal_static_RpbDelReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbDelReq_descriptor,
new java.lang.String[] { "Bucket", "Key", "Rw", },
RawProtoBufRiakclient.RpbDelReq.class,
RawProtoBufRiakclient.RpbDelReq.Builder.class);
internal_static_RpbListBucketsResp_descriptor = getDescriptor()
.getMessageTypes().get(9);
internal_static_RpbListBucketsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbListBucketsResp_descriptor,
new java.lang.String[] { "Buckets", },
RawProtoBufRiakclient.RpbListBucketsResp.class,
RawProtoBufRiakclient.RpbListBucketsResp.Builder.class);
internal_static_RpbListKeysReq_descriptor = getDescriptor()
.getMessageTypes().get(10);
internal_static_RpbListKeysReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbListKeysReq_descriptor,
new java.lang.String[] { "Bucket", },
RawProtoBufRiakclient.RpbListKeysReq.class,
RawProtoBufRiakclient.RpbListKeysReq.Builder.class);
internal_static_RpbListKeysResp_descriptor = getDescriptor()
.getMessageTypes().get(11);
internal_static_RpbListKeysResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbListKeysResp_descriptor,
new java.lang.String[] { "Keys", "Done", },
RawProtoBufRiakclient.RpbListKeysResp.class,
RawProtoBufRiakclient.RpbListKeysResp.Builder.class);
internal_static_RpbGetBucketReq_descriptor = getDescriptor()
.getMessageTypes().get(12);
internal_static_RpbGetBucketReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbGetBucketReq_descriptor,
new java.lang.String[] { "Bucket", },
RawProtoBufRiakclient.RpbGetBucketReq.class,
RawProtoBufRiakclient.RpbGetBucketReq.Builder.class);
internal_static_RpbGetBucketResp_descriptor = getDescriptor()
.getMessageTypes().get(13);
internal_static_RpbGetBucketResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbGetBucketResp_descriptor,
new java.lang.String[] { "Props", },
RawProtoBufRiakclient.RpbGetBucketResp.class,
RawProtoBufRiakclient.RpbGetBucketResp.Builder.class);
internal_static_RpbSetBucketReq_descriptor = getDescriptor()
.getMessageTypes().get(14);
internal_static_RpbSetBucketReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbSetBucketReq_descriptor,
new java.lang.String[] { "Bucket", "Props", },
RawProtoBufRiakclient.RpbSetBucketReq.class,
RawProtoBufRiakclient.RpbSetBucketReq.Builder.class);
internal_static_RpbMapRedReq_descriptor = getDescriptor()
.getMessageTypes().get(15);
internal_static_RpbMapRedReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbMapRedReq_descriptor,
new java.lang.String[] { "Request", "ContentType", },
RawProtoBufRiakclient.RpbMapRedReq.class,
RawProtoBufRiakclient.RpbMapRedReq.Builder.class);
internal_static_RpbMapRedResp_descriptor = getDescriptor()
.getMessageTypes().get(16);
internal_static_RpbMapRedResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbMapRedResp_descriptor,
new java.lang.String[] { "Phase", "Response", "Done", },
RawProtoBufRiakclient.RpbMapRedResp.class,
RawProtoBufRiakclient.RpbMapRedResp.Builder.class);
internal_static_RpbContent_descriptor = getDescriptor()
.getMessageTypes().get(17);
internal_static_RpbContent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbContent_descriptor,
new java.lang.String[] { "Value", "ContentType",
"Charset", "ContentEncoding", "Vtag", "Links",
"LastMod", "LastModUsecs", "Usermeta", },
RawProtoBufRiakclient.RpbContent.class,
RawProtoBufRiakclient.RpbContent.Builder.class);
internal_static_RpbPair_descriptor = getDescriptor()
.getMessageTypes().get(18);
internal_static_RpbPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbPair_descriptor,
new java.lang.String[] { "Key", "Value", },
RawProtoBufRiakclient.RpbPair.class,
RawProtoBufRiakclient.RpbPair.Builder.class);
internal_static_RpbLink_descriptor = getDescriptor()
.getMessageTypes().get(19);
internal_static_RpbLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbLink_descriptor,
new java.lang.String[] { "Bucket", "Key", "Tag", },
RawProtoBufRiakclient.RpbLink.class,
RawProtoBufRiakclient.RpbLink.Builder.class);
internal_static_RpbBucketProps_descriptor = getDescriptor()
.getMessageTypes().get(20);
internal_static_RpbBucketProps_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RpbBucketProps_descriptor,
new java.lang.String[] { "NVal", "AllowMult", },
RawProtoBufRiakclient.RpbBucketProps.class,
RawProtoBufRiakclient.RpbBucketProps.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {},
assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}